Received: from [140.186.70.92] (port=38308 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWvx5-0008RD-OB for qemu-devel@nongnu.org; Thu, 08 Jul 2010 14:36:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWvx4-0007y2-IZ for qemu-devel@nongnu.org; Thu, 08 Jul 2010 14:36:03 -0400 Received: from sj-iport-6.cisco.com ([171.71.176.117]:20644) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWvx4-0007xj-ET for qemu-devel@nongnu.org; Thu, 08 Jul 2010 14:36:02 -0400 Received: from xbh-sjc-231.amer.cisco.com (xbh-sjc-231.cisco.com [128.107.191.100]) by sj-core-1.cisco.com (8.13.8/8.14.3) with ESMTP id o68IZxEm023949 for ; Thu, 8 Jul 2010 18:35:59 GMT From: Etienne Martineau Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 08 Jul 2010 11:30:27 -0700 Message-Id: <1278613827.11064.277.camel@etienne-desktop> Mime-Version: 1.0 Subject: [Qemu-devel] Passthrough and mmio overhead? List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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