qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Passthrough and mmio overhead?
@ 2010-07-08 18:30 Etienne Martineau
  0 siblings, 0 replies; only message in thread
From: Etienne Martineau @ 2010-07-08 18:30 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: Etienne Martineau (etmartin)

Hi all,

My current understanding of Qemu-kvm is such that whenever Guest VM
establish a passthrough to a pci devices, the following happens:

Setup:
- vt-d setup
- Host mmap the device's BAR via /sysfs.
- Host maintain a 'ptr' to that mmap'ed area.
- Host create a mmio slot for the Guest.
- The mmio slot 'address' is part of the Guest VM pci addr space.

Runtime:
- Guest access the mmio slot and pagefault to the host
- Host resolve the offset, dereference 'ptr' and gets the value
- Host resume the pagefault and return the value to the guest

Now the question is that if Guest vm keeps doing MMIO, will it keep page
faulting on the host?

Thanks,
Etienne

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-08 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-08 18:30 [Qemu-devel] Passthrough and mmio overhead? Etienne Martineau

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).