qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ARI and igb emulation


From: Akihiko Odaki
Subject: Re: ARI and igb emulation
Date: Wed, 28 Jun 2023 21:45:34 +0900
User-agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

Adding CC.

On 2023/06/28 21:24, Akihiko Odaki wrote:
On 2023/06/27 23:32, Ani Sinha wrote:
Hi :
I am proposing a patch in QEMU [1] which may or may not break ARI but I wanted to give my best shot in making sure I am not breaking anything with ARI enabled. I see that your igb emulation code enables ARI with its SRIOV emulation. I ran the qtest and avocado tests that are mentioned in [2] and they both pass. Is there anything else/any tweaks that I should be doing to make sure I am not breaking ARI with igb?

Thanks for information,
Ani

1. https://lists.gnu.org/archive/html/qemu-devel/2023-06/msg05478.html
2. https://www.qemu.org/docs/master/system/devices/igb.html



This indeed resulted in the following error message with igb:
qemu-system-aarch64: PCI: slot 16 is not valid for igbvf, parent device only allows plugging into slot 0.

To reproduce the issue, add the following to QEMU command line:
-device pcie-root-port,id=p -device igb,bus=p

And enable 7 virtual functions on the guest. For Linux, see:
https://docs.kernel.org/PCI/pci-iov-howto.html

You may only enforce the slot number restriction only for devices without ARI. The slot number is assumed as 0 when ARI is enabled if I understand correctly.

Regards,
Akihiko Odaki



reply via email to

[Prev in Thread] Current Thread [Next in Thread]