forked from patmagauran/i915ovmfPkg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vm-additions.xml
34 lines (31 loc) · 1.4 KB
/
vm-additions.xml
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
<domain xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' type='kvm'>
<devices>
<!-- Output using SPICE with MESA EGL -->
<graphics type="spice">
<listen type="none"/>
<gl enable="yes"/>
</graphics>
<video>
<model type="none"/>
</video>
<!-- virtual GPU passthrough -->
<hostdev mode='subsystem' type='mdev' managed='no' model='vfio-pci' display='on'>
<source>
<address uuid='1d7f1075-b787-4cbc-a48c-c91243c93224'/>
</source>
</hostdev>
</devices>
<!-- this goes at the bottom, before closing domain tag -->
<qemu:override>
<qemu:device alias="hostdev0">
<qemu:frontend>
<qemu:property name="romfile" type="string" value="/var/lib/libvirt/qemu/drivers/i915ovmf.rom"/> <!-- the rom we built goes here! -->
<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="xres" type="unsigned" value="1920"/> <!-- change resolution of the driver to what you want -->
<qemu:property name="yres" type="unsigned" value="1080"/>
</qemu:frontend>
</qemu:device>
</qemu:override>
</domain>