From: Peter Xu <peterx@redhat.com>
To: fassl <superfassl@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Nested PCI passthrough
Date: Sun, 22 Jan 2017 11:10:51 +0800 [thread overview]
Message-ID: <20170122031051.GE13810@pxdev.xzpeter.org> (raw)
In-Reply-To: <1484968585.26205.2.camel@gmail.com>
On Sat, Jan 21, 2017 at 04:16:25AM +0100, fassl wrote:
> Hello,
>
> i am trying to pass through a graphic card to a guest within a guest.
> So far i can see a text console within the target vm which says
> "radeon: ring 0 test failed", so it times out in radeon_vce_ring_test
> function. I am using qemu 2.8.50 at revision
> 0f6bcf68a99efdc531b209551f2b760b0bdcc554.
>
> The relevant lowermost host arguments are:
> -machine pc-q35-2.8,accel=kvm,kernel-irqchip=split
> -device intel-iommu,intremap=on,eim=on
>
> If i dont set the x-vga flag for the passed through device in the
> lowermost host the VM within the VM does not reset(?) the device during
> shutdown and the screen freezes. If i do, the screen goes black and no
> signal is going to the screen anymore and i can restart the target VM
> without the whole machine freezing. (one has to set
> CONFIG_VFIO_PCI_VGA=y in the kernel of the first VM, or call
> pci_register_vga to get this)
>
> Also with irqchip=split the first vm cannot shutdown gracefully and
> crashes during shutdown.
>
> I also can see some IRTE vector and trigger mode inconsistencies, can
> they cause this?
This should not be related. Even you don't passthrough devices, they
should be possibly there as well as long as you are running Linux
inside guest (of course, you should have enabled IOMMU_DEBUG).
-- peterx
prev parent reply other threads:[~2017-01-22 3:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-21 3:16 [Qemu-devel] Nested PCI passthrough fassl
2017-01-21 8:41 ` Alex Williamson
2017-01-22 3:10 ` Peter Xu [this message]
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=20170122031051.GE13810@pxdev.xzpeter.org \
--to=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=superfassl@gmail.com \
/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 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).