summary refs log tree commit diff stats
path: root/gitlab/issues_text/target_missing/host_missing/accel_missing/2732
blob: b640373be90fc9224d7cd3b5e56406f1861ed4b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Segmentation fault with PCI GPU
Description of problem:
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.
Steps to 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 information:
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	    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
```