Ok, that sounds interesting! I'd rather see some raw mechanism that 'perf kvm'
could use instead of having to require yet another library (which generally
dampens adoption of a tool). So i think we can work from there.
Btw., have you considered using Qemu's command name (task->comm[]) as the
symbolic name? That way we could see the guest name in 'top' on the host - a
nice touch.
The sockets are named based on UUID and you'll have to connect to a guestI think just exposing the UUID in that lazy case would be adequate? It creates
and ask it for it's name. Some guests don't have names so we'll have to
come up with a clever way to describe a nameless VM.
pressure for VM launchers to use better symbolic names.
Hm, this sucks for multiple reasons. Firstly, perf isnt a tool thatI.e.:A guest is not a KVM concept. It's a qemu concept so it needs to be
- Easy default reference to guest instances, and a way for tools to
reference them symbolically as well in the multi-guest case. Preferably
something trustable and kernel-provided - not some indirect information
like a PID file created by libvirt-manager or so.
something provided by qemu. The other caveat is that you won't see guests
created by libvirt because we're implementing this in terms of a default QMP
device and libvirt will disable defaults. This is desired behaviour.
libvirt wants to be in complete control and doesn't want a tool like perf
interacting with a guest directly.
'interacts', it's an observation tool: just like 'top' is an observation tool.
We want to enable developers to see all activities on the system - regardless
of who started the VM or who started the process. Imagine if we had a way to
hide tasks to hide from 'top'. It would be rather awful.
Secondly, it tells us that the concept is fragile if it doesnt automatically
enumerate all guests, regardless of how they were created.
Full system enumeration is generally best left to the kernel, as it can offer
coherent access.
Ingo