id = 1998 title = "acpihp does not work with some common guest kernels" state = "opened" created_at = "2023-11-22T19:32:07.015Z" closed_at = "n/a" labels = ["ACPI", "target: i386"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1998" host-os = "Fedora Linux 38" host-arch = "x86 64" qemu-version = "QEMU emulator version 7.2.6 (qemu-7.2.6-1.fc38)" guest-os = "Fedora 39" guest-arch = "x86 64" description = """for pc-q35 6.1, 7.2, any guest kernel with `ACPI: Core revision` < 20230331, can not hot plug the nvidia GPUs. So basically only guest kernel >= 6.5 can make it work so far. But majority of server kernels are still at 4.18, 5.x. I wonder if it possible to be fixed? I also don't know is this qemu bug? bios bug? or actually ACPIA's bug? journal -k report error like following: ``` Nov 11 17:53:00 VMTEST kernel: pci 0000:08:00.0: BAR 0: no space for [mem size 0x01000000] Nov 11 17:53:00 VMTEST kernel: pci 0000:08:00.0: BAR 0: failed to assign [mem size 0x01000000] Nov 11 17:53:00 VMTEST kernel: pci 0000:08:00.0: BAR 6: assigned [mem 0x81800000-0x8187ffff pref] Nov 11 17:53:00 VMTEST kernel: pci 0000:08:00.0: BAR 5: assigned [io 0xa000-0xa07f] Nov 11 17:53:00 VMTEST kernel: nvidia 0000:08:00.0: enabling device (0000 -> 0003) Nov 11 17:53:00 VMTEST kernel: NVRM: This PCI I/O region assigned to your NVIDIA device is invalid: NVRM: BAR0 is 0M @ 0x0 (PCI:0000:08:00.0) Nov 11 17:53:00 VMTEST kernel: nvidia: probe of 0000:08:00.0 failed with error -1 ```""" reproduce = """1. run the instance as I described above 2. in qemu monitor: device_add vfio-pci,host=0000:06:00.0,id=gpu0,bus=pci.8 3. login to the vm console then nvidia-smi to see the failure workaround: `ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off` to disable the acpihp then pciehp can make it work.""" additional = """"""