On 18 May 2022, at 01:14, Christopher Clark <christopher.w.clark@...> wrote:
On Tue, May 10, 2022 at 8:35 AM Bertrand Marquis <bertrand.marquis@...> wrote:
Remove the pci node from the qemu device tree when runqemu is used with xen-qemuboot.
Linux is ending up in an infinite loop when trying to access PCI configuration space when running on top of Xen on arm32. As we do not need or support any of the devices on PCI on arm32 at the moment, just remove the node from the device tree generated by qemu.
The problem does not appear at the moment without Xen and it is unclear why it is with Xen. This will be investigated but in the meantime provide a working configuration for users.
Thanks for this - my review is from inspecting the patch applied; I have yet to test it but there's no need to hold this back with positive reports now from Bruce and Bertrand.
Reviewed-by: Christopher Clark <christopher.w.clark@...>
Thanks and I agree.
This is an hack but I think it is better at the moment to have something running and I will create a task on my side to investigate this in the future.
+ # On Qemu Arm32, Dom0 accessing PCI config space ends up in an + # infinite loop. Remove pci node from the device tree + if [ "${MACHINE}" = "qemuarm" ]; then + write_lop_rm_pci "${B}/lop-rm-pci.dts" + LOP_MODULE_ARGS="${LOP_MODULE_ARGS} -i ${B}/lop-rm-pci.dts" + fi + if [ -z "${QB_XEN_DOMAIN_MODULES}" ]; then bbwarn "No domain modules: please set QB_XEN_DOMAIN_MODULES" fi -- 2.25.1