Patch#1: hw/arm: Close unreleased out_fault_fd
Issue: When a VM is started with `the arm-smmuv3-accel`, loading hisi_zip and
rebooting VM repeatly. After thousands of times, the QEMU core dumps occur.
Analysis: The iommufd-pgfault fd is not released when the guest OS reboot. As a
result, the number of fd increases by one each time the guest OS reboot.
When the number of fd reaches the upper limit, fd cannot be allocated,
and QEMU core dumps occur.
Patch#2: pci: avoid the info qtree crash caused by arm-smmuv3-accel
Issue: When a VM is started with `the arm-smmuv3-accel`, Run `info qtree` on
the QEMU monitor, QEMU core dumps occur.
Analysis: The function pcibus_dev_print casts the arm-smmuv3-accel device into
a PCI device, and during the process of checking the configuration space, it
encounters a null pointer dereference, leading to a core dump. Now, the
arm-smmuv3-accel needs to be detected and skipped in pcibus_dev_print.
Avoid the info qtree crash caused by arm-smmuv3-accel for now.
Jinqian Yang (1):
hw/arm: Close unreleased out_fault_fd
jinyihua (1):
pci: avoid the info qtree crash caused by arm-smmuv3-accel
hw/arm/smmu-common.c | 1 +
hw/pci/pci-hmp-cmds.c | 3 +++
2 files changed, 4 insertions(+)
--
2.33.0