summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/2732.toml
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/issues/target_missing/host_missing/accel_missing/2732.toml')
-rw-r--r--gitlab/issues/target_missing/host_missing/accel_missing/2732.toml47
1 files changed, 47 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_missing/accel_missing/2732.toml b/gitlab/issues/target_missing/host_missing/accel_missing/2732.toml
new file mode 100644
index 000000000..5ee013a33
--- /dev/null
+++ b/gitlab/issues/target_missing/host_missing/accel_missing/2732.toml
@@ -0,0 +1,47 @@
+id = 2732
+title = "Segmentation fault with PCI GPU"
+state = "opened"
+created_at = "2024-12-19T23:33:07.275Z"
+closed_at = "n/a"
+labels = ["VFIO", "device: PCI", "workflow::Needs Info"]
+url = "https://gitlab.com/qemu-project/qemu/-/issues/2732"
+host-os = "Arch Linux"
+host-arch = "x64"
+qemu-version = "9.1.2"
+guest-os = "Windows 10"
+guest-arch = "x64"
+description = """Upon attempting to launch the virtual machine, Qemu crashes with Segfault. The issue only occurs it's launched with a passthrough GPU with the vfio driver. It is an Nvidia RTX 3060 GPU. The VM boots fine without the GPU PCI device added."""
+reproduce = """1. Create a VM with the GPU PCI device added
+2. Attempt to boot it
+3. virt-manager will display: "libvirt.libvirtError: internal error: QEMU unexpectedly closed the monitor""""
+additional = """GDB backtrace:
+```                                                                                                                                                                                            
+Thread 1 "qemu-system-x86" received signal SIGSEGV, Segmentation fault.
+Downloading 116.51 K source file /usr/src/debug/qemu/build/../qemu-9.1.2/system/memory.c
+memory_region_update_container_subregions () at ../qemu-9.1.2/system/memory.c:2616                                                                                                            
+2616\t    QTAILQ_FOREACH(other, &mr->subregions, subregions_link) {
+(gdb) bt
+#0  memory_region_update_container_subregions () at ../qemu-9.1.2/system/memory.c:2616
+#1  memory_region_add_subregion_common () at ../qemu-9.1.2/system/memory.c:2640
+#2  0x0000555555ade66a in memory_region_add_subregion_overlap () at ../qemu-9.1.2/system/memory.c:2657
+#3  vfio_probe_nvidia_bar0_quirk () at ../qemu-9.1.2/hw/vfio/pci-quirks.c:966
+#4  vfio_bar_quirk_setup () at ../qemu-9.1.2/hw/vfio/pci-quirks.c:1259
+#5  0x0000555555ae8212 in vfio_realize () at ../qemu-9.1.2/hw/vfio/pci.c:3133
+#6  0x000055555586c3ab in pci_qdev_realize () at ../qemu-9.1.2/hw/pci/pci.c:2097
+#7  0x0000555555b924f3 in device_set_realized () at ../qemu-9.1.2/hw/core/qdev.c:510
+#8  0x0000555555b9c37f in property_set_bool () at ../qemu-9.1.2/qom/object.c:2354
+#9  0x0000555555b9a21a in object_property_set () at ../qemu-9.1.2/qom/object.c:1463
+#10 0x0000555555b9abbf in object_property_set_qobject () at ../qemu-9.1.2/qom/qom-qobject.c:28
+#11 object_property_set_bool () at ../qemu-9.1.2/qom/object.c:1533
+#12 0x000055555594dafb in qdev_device_add_from_qdict () at ../qemu-9.1.2/system/qdev-monitor.c:719
+#13 0x00005555559586f1 in qemu_create_cli_devices () at ../qemu-9.1.2/system/vl.c:2664
+#14 qmp_x_exit_preconfig () at ../qemu-9.1.2/system/vl.c:2721
+#15 0x0000555555962396 in qemu_init () at ../qemu-9.1.2/system/vl.c:3766
+#16 0x00005555556d2abd in main () at ../qemu-9.1.2/system/main.c:47
+```
+
+dmesg:
+```
+[ 4846.200960] qemu-system-x86[26518]: segfault at b8 ip 00006149e75a64e6 sp 00007fff4c85fbe0 error 4 in qemu-system-x86_64[5c24e6,6149e7155000+72c000] likely on CPU 4 (core 4, socket 0)
+[ 4846.200968] Code: 2e 01 83 c0 01 89 05 0d cd 2e 01 48 8b 43 40 48 85 c0 74 16 ba 01 00 00 00 f0 0f c1 50 18 81 fa fe ff ff 7f 0f 87 c4 00 00 00 <49> 8b 84 24 b8 00 00 00 48 85 c0 74 55 8b 93 b0 00 00 00 eb 11 0f
+```"""