* [Qemu-devel] Get a vm fd using kvm API's ioctls
@ 2014-02-05 15:51 Vincent KHERBACHE
0 siblings, 0 replies; only message in thread
From: Vincent KHERBACHE @ 2014-02-05 15:51 UTC (permalink / raw)
To: qemu-devel
Hi all,
I'm trying to get the dirty bitmap of a specific VM, using
KVM_GET_DIRTY_LOG ioctl.
For this purpose, I should be able to get the file descriptor of an
existing VM by doing something like :
kvm_fd = open("/dev/kvm")
...
b = ioctl(KVM_GET_DIRTY_LOG, vm_fd)
I also can see, from the API documentation
(https://www.kernel.org/doc/Documentation/virtual/kvm/api.txt), that
there is the following restriction concerning VM ioctls :
"Only run VM ioctls from the same process (address space) that was used
to create the VM."
Is there a way to get the fd of a running VM (created from an other
process), or maybe a better/easier manner to get the dirty bitmap ?
Any help would be welcome.
Thanks,
--
Vincent KHERBACHE
PhD student at INRIA Sophia Antipolis (FRANCE)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-05 15:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 15:51 [Qemu-devel] Get a vm fd using kvm API's ioctls Vincent KHERBACHE
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).