Received: from eggs.gnu.org ([2001:4830:134:3::10]:54136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEgje-0006IC-De for qemu-devel@nongnu.org; Wed, 28 Aug 2013 10:28:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VEgjV-0003t3-P2 for qemu-devel@nongnu.org; Wed, 28 Aug 2013 10:28:38 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:39550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VEgjV-0003r4-FD for qemu-devel@nongnu.org; Wed, 28 Aug 2013 10:28:29 -0400 Received: from gw.ac.upc.edu (gw.ac.upc.es [147.83.30.3]) by roura.ac.upc.es (8.13.8/8.13.8) with ESMTP id r7SESQt8000704 for ; Wed, 28 Aug 2013 16:28:26 +0200 Received: from localhost (unknown [132.68.56.53]) by gw.ac.upc.edu (Postfix) with ESMTP id 138B56B01C8 for ; Wed, 28 Aug 2013 16:28:25 +0200 (CEST) From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= Date: Wed, 28 Aug 2013 17:28:24 +0300 Message-ID: <87sixtsxdj.fsf@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] Direct guest device access from nested guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I want to get the following setup, but don't know how (or if it's even possible): * A guest VM with two AHCI controllers, with one device each. One of the AHCI controllers provides the VM's disk ("system"), while the other provides another disk ("nested") and uses a different emulation driver in QEMU (ahci2): host$ qemu-system-x86_64 -enable-kvm \ -drive id=system,file=system.img,if=none \ -device ahci,id=ahci \ -device ide-drive,drive=system,bus=ahci.0 \ -drive id=nested,file=nested.img,if=none \ -device ahci2,id=ahci2 \ -device ide-drive,drive=nested,bus=ahci2.0 * A nested guest VM using the guest's (its host) AHCI2 controller. I've tried assigning the AHCI2 device to the nested guest using "pci-assign" and "vfio", but without any luck. The culprit of the problem seems to be I cannot get the nested guest to have an IOMMU. Is it possible to give a nested guest direct access to a device on the guest? (more specifically, an AHCI controller). Thanks a lot, Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth