[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug 1920013] Re: Unable to pass-through PCIe devices from a ppc64le hos
From: |
Thomas Huth |
Subject: |
[Bug 1920013] Re: Unable to pass-through PCIe devices from a ppc64le host to an x86_64 guest |
Date: |
Fri, 14 May 2021 18:52:19 -0000 |
The QEMU project is currently moving its bug tracking to another system.
For this we need to know which bugs are still valid and which could be
closed already. Thus we are setting the bug state to "Incomplete" now.
If the bug has already been fixed in the latest upstream version of QEMU,
then please close this ticket as "Fix released".
If it is not fixed yet and you think that this bug report here is still
valid, then you have two options:
1) If you already have an account on gitlab.com, please open a new ticket
for this problem in our new tracker here:
https://gitlab.com/qemu-project/qemu/-/issues
and then close this ticket here on Launchpad (or let it expire auto-
matically after 60 days). Please mention the URL of this bug ticket on
Launchpad in the new ticket on GitLab.
2) If you don't have an account on gitlab.com and don't intend to get
one, but still would like to keep this ticket opened, then please switch
the state back to "New" or "Confirmed" within the next 60 days (other-
wise it will get closed as "Expired"). We will then eventually migrate
the ticket automatically to the new system (but you won't be the reporter
of the bug in the new system and thus you won't get notified on changes
anymore).
Thank you and sorry for the inconvenience.
** Changed in: qemu
Status: New => Incomplete
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1920013
Title:
Unable to pass-through PCIe devices from a ppc64le host to an x86_64
guest
Status in QEMU:
Incomplete
Bug description:
Attempting to pass through a PCIe device from a ppc64le host to an
x86_64 guest with QEMU v5.2.0-3031-g571d413b5d (built from git master)
fails with the following error:
include/exec/memory.h:43:IOMMU_MEMORY_REGION: Object 0x10438eb00
is not an instance of type qemu:iommu-memory-region
To reproduce this issue, simply run the following command on a POWER9
system:
qemu-system-x86_64 -machine q35 -device vfio-pci,host=$DBSF
Where $DBSF is a domain:bus:slot.function PCIe device address.
This also fails with QEMU 3.1.0 (from Debian Buster), so I assume this
has never worked. Helpfully, the error message it prints seems to
indicate where the problem is:
hw/vfio/spapr.c:147:vfio_spapr_create_window: Object 0x164473510
is not an instance of type qemu:iommu-memory-region
My kernel (Linux v5.8.0 plus some small unrelated patches) is built
with the page size set to 4k, so this issue shouldn't be due to a page
size mismatch. And as I stated earlier, my host arch is ppc64le, so it
shouldn't be an endianness issue, either.
I assume this should be possible (in theory) since I've seen reports
of others getting PCIe passthrough working with aarch64 guests on
x86_64 hosts, but of course that (passthrough to weird guest arch on
x86) is somewhat the opposite of what I'm trying to do (passthrough to
x86 on weird host arch) so I don't know for sure. If it is possible,
I'm willing to develop a fix myself, but I'm almost completely
unfamiliar with QEMU's internals so if anyone has any advice on where
to start I'd greatly appreciate it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1920013/+subscriptions
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug 1920013] Re: Unable to pass-through PCIe devices from a ppc64le host to an x86_64 guest,
Thomas Huth <=