blob: 267f09eac53c95b565663752f184523e50892043 (
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
40
41
42
43
44
45
46
47
48
49
|
qemu 8.1.0 breaks gvt-g + qemu-ui-gtk w gl=on (black screen, qemu: eglCreateImageKHR failed)
Description of problem:
As of 8.1.0, qemu-ui-gtk renders a black window with the error `qemu: eglCreateImageKHR failed` repeatedly appearing in the command line.
#
Steps to reproduce:
1. enable kernel modules, set parameters etc.
2. create vgpu
`echo "$GVT_GUID" > "/sys/devices/pci0000:00/0000:00:02.0/mdev_supported_types/i915-GVTg_V4_2/create"`
3. launch VM
4. wait
Instructions (a small part of which I wrote by trial and error) for the setup are on the [Arch Wiki](https://wiki.archlinux.org/title/Intel_GVT-g).
#
Additional information:
Windows is installed directly to a second SSD, I dual-boot it.
I've been using this exact VM, from libvirt, for almost two years.
relevant sections:
```
<hostdev mode="subsystem" type="mdev" managed="no" model="vfio-pci" display="off">
<source>
<address uuid="$GVT_GUID"/>
</source>
</hostdev>
</devices>
<qemu:commandline>
<qemu:arg value="-display"/>
<qemu:arg value="gtk,gl=on,zoom-to-fit=off"/>
<qemu:env name="DISPLAY" value=":0.0"/>
</qemu:commandline>
<qemu:override>
<qemu:device alias="hostdev0">
<qemu:frontend>
<qemu:property name="x-igd-opregion" type="bool" value="true"/>
<qemu:property name="driver" type="string" value="vfio-pci-nohotplug"/>
<qemu:property name="ramfb" type="bool" value="true"/>
<qemu:property name="display" type="string" value="on"/>
<qemu:property name="romfile" type="string" value="/home/user/VM/vbios_gvt_uefi.rom"/>
</qemu:frontend>
</qemu:device>
</qemu:override>
```
The patched vBIOS necessary to use DMA-BUF with OVMF is linked there too, but its [successors](https://github.com/patmagauran/i915ovmfPkg) doesn't work either.
#
|