You can access the protocol directly if you don't want a library dependency.
qemu-system-x86_64 -name Fedora,process=qemu-Fedora
Does exactly that. We don't make this default based on the element of
least surprise. Many users expect to be able to do killall
qemu-system-x86 and if we did this by default, that wouldn't work.
Yup.
Perf does interact with a guest though because it queries a guest to
read it's file system.
I understand the point you're making though. If instead of doing a pull
interface where the host queries the guest for files, if the guest
pushed a small set of files at startup which the host cached, then you
could potentially unconditionally expose a "read-only" socket that only
exposed limited information.
I don't see why qemu can't offer coherent access. The limitation today
is intentional and if it's overly restrictive, we can figure out a means
to change it.
Regards,
Anthony Liguori
--