From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?G=E1bor_P=C9K?= Subject: PIO/MMIO access from guest Date: Fri, 15 Feb 2013 18:10:00 +0100 Message-ID: <511E6BE8.6080904@crysys.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from shamir.crysys.hit.bme.hu ([152.66.249.135]:55704 "EHLO shamir.crysys.hit.bme.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754683Ab3BORak (ORCPT ); Fri, 15 Feb 2013 12:30:40 -0500 Received: from ip10-105-55.crysys.hit.bme.hu ([10.105.1.55] helo=localhost ident=amavis) by shamir.crysys.hit.bme.hu with esmtp (Exim 4.72) (envelope-from ) id 1U6Ond-0003O3-LI for kvm@vger.kernel.org; Fri, 15 Feb 2013 18:10:13 +0100 Received: from shamir.crysys.hit.bme.hu ([10.105.1.254]) by localhost (seeve.etl.hu [10.105.1.55]) (amavisd-new, port 10023) with ESMTP id u634qpVyvn1W for ; Fri, 15 Feb 2013 18:10:08 +0100 (CET) Received: from [10.105.0.95] by shamir.crysys.hit.bme.hu with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1U6OnX-0003KK-TK for kvm@vger.kernel.org; Fri, 15 Feb 2013 18:10:07 +0100 Sender: kvm-owner@vger.kernel.org List-ID: Hi all, I would like to access the configuration registers of my passthrough device from an unmodified guest under KVM via MMIO/PIO directly. Is there any option to configure the guest in this way? I know that you can do this with the ioports=[''] option in case of Xen, but I could not find any such option until now for KVM. I also read that [+] PIO can be passed directly via VMCS I/O bitmaps [+] MMIO can be passed directly via mapping device BARs to guest [+] Some PIO/MMIO accesses must be trapped (PCI config space) Can I do this with some configurations without recompiling the kernel? Thank you! -gabor