From: "Lluís Vilanova" <vilanova@ac.upc.edu>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Direct guest device access from nested guest
Date: Wed, 28 Aug 2013 17:28:24 +0300 [thread overview]
Message-ID: <87sixtsxdj.fsf@fimbulvetr.bsc.es> (raw)
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
next reply other threads:[~2013-08-28 14:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-28 14:28 Lluís Vilanova [this message]
2013-08-28 16:48 ` Direct guest device access from nested guest Jan Kiszka
2013-08-28 16:48 ` [Qemu-devel] " Jan Kiszka
2013-08-28 18:12 ` Lluís Vilanova
2013-08-28 18:12 ` [Qemu-devel] " Lluís Vilanova
2013-08-28 18:18 ` Jan Kiszka
2013-08-28 18:18 ` [Qemu-devel] " Jan Kiszka
2013-08-28 19:18 ` Lluís Vilanova
2013-08-29 22:55 ` Aaron Fabbri
2013-08-29 22:55 ` [Qemu-devel] " Aaron Fabbri
2013-08-29 22:58 ` Fwd: " Aaron Fabbri
2013-08-29 22:58 ` [Qemu-devel] Fwd: " Aaron Fabbri
2013-08-30 5:27 ` [Qemu-devel] " Muli Ben-Yehuda
2013-08-30 5:27 ` Muli Ben-Yehuda
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=87sixtsxdj.fsf@fimbulvetr.bsc.es \
--to=vilanova@ac.upc.edu \
--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.