All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent KHERBACHE <vincent.kherbache@inria.fr>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Get a vm fd using kvm API's ioctls
Date: Wed, 05 Feb 2014 16:51:00 +0100	[thread overview]
Message-ID: <52F25DE4.8000503@inria.fr> (raw)

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)

                 reply	other threads:[~2014-02-05 15:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52F25DE4.8000503@inria.fr \
    --to=vincent.kherbache@inria.fr \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.