-
Notifications
You must be signed in to change notification settings - Fork 0
/
win.xml
139 lines (121 loc) · 4.85 KB
/
win.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="UTF-8"?>
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
<name>gamingvm</name>
<uuid>01bd2ed1-b465-4eba-b6e4-47c6ac8171c6</uuid>
<memory unit="GB">10</memory>
<currentMemory unit="GB">10</currentMemory>
<memoryBacking>
<locked />
</memoryBacking>
<cputune>
<vcpupin vcpu="0" cpuset="0"/>
<vcpupin vcpu="1" cpuset="1"/>
<vcpupin vcpu="2" cpuset="2"/>
<vcpupin vcpu="3" cpuset="3"/>
<vcpupin vcpu="4" cpuset="4"/>
<vcpupin vcpu="5" cpuset="5"/>
<emulatorpin cpuset="0-5"/>
</cputune>
<vcpu placement="static">6</vcpu>
<cpu mode="host-passthrough">
<topology sockets="1" cores="3" threads="2" />
</cpu>
<os>
<type arch="x86_64" machine="q35">hvm</type>
<!-- <loader>/usr/share/seabios/bios.bin</loader> -->
<loader>/usr/share/qemu/bios.bin</loader>
<bootmenu enable="yes" />
</os>
<features>
<hyperv>
<relaxed state="on" />
<vapic state="on" />
<spinlocks state="on" retries="8191" />
</hyperv>
<acpi />
</features>
<clock offset="localtime">
<timer name="hypervclock" present="yes" />
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<!-- suspend stuff that doesn't work -->
<pm>
<suspend-to-mem enabled='yes'/>
<suspend-to-disk enabled='yes'/>
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<emulator>/opt/qemu-test/bin/qemu-system-x86_64</emulator>
<sound model='ich6'/>
<controller type="usb" index="0" />
<controller type="usb" index="1" />
<!-- <controller type="usb" index="2" /> -->
<!-- <controller type="usb" index="3" /> -->
<controller type="sata" index="0" />
<controller type="pci" index="0" model="pcie-root" />
<controller type="pci" index="1" model="dmi-to-pci-bridge" />
<controller type="pci" index="2" model="pci-bridge" />
<memballoon model="none" />
<!-- storage disk, physical drive -->
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/sda'/>
<!-- <target dev='vdb' bus='virtio'/> -->
<target dev="vdc" bus="sata" />
</disk>
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/sdb'/>
<!-- <target dev='vdb' bus='virtio'/> -->
<target dev="vdb" bus="sata" />
<boot order='1'/>
</disk>
<!-- the network device -->
<interface type='direct'>
<!-- <source dev='eno1' mode='passthrough'/> -->
<source dev='enp5s0' mode='passthrough'/>
<model type='e1000'/>
<!-- <source dev='enp7s0' mode='bridge'/> -->
<!-- <mac address='52:54:00:a0:41:92'/> -->
</interface>
<!-- the usb controller -->
<hostdev mode='subsystem' type='pci' managed='yes'>
<driver name='vfio'/>
<source>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
</source>
</hostdev>
<!-- for quemu-agent -->
<!-- <channel type='unix'> -->
<!-- <source mode='bind'/> -->
<!-- <target type='virtio' name='org.qemu.guest_agent.0'/> -->
<!-- </channel> -->
<!-- <interface type='bridge'> -->
<!-- <mac address='52:54:00:a0:41:92'/> -->
<!-- <!-- <source bridge='br0'/> --> -->
<!-- <source bridge='virbr0'/> -->
<!-- <model type='virtio'/> -->
<!-- <model type='rtl8139'/> -->
<!-- </interface> -->
</devices>
<qemu:commandline>
<!-- microphone delay fix attempt -->
<!-- commented out because it doesn't work, and causes audio to cracle (supposedly) -->
<!-- <qemu:env name='QEMU_AUDIO_TIMER_PERIOD' value='200'/> -->
<qemu:env name='QEMU_PA_SAMPLES' value='4096'/>
<qemu:env name='PULSE_LATENCY_MSEC' value='30'/>
<qemu:env name="QEMU_AUDIO_DRV" value="pa" />
<!-- <qemu:env name='QEMU_AUDIO_DAC_FIXED_FREQ' value='48000'/> -->
<!-- <qemu:env name='QEMU_AUDIO_ADC_FIXED_FREQ' value='48000'/> -->
<!-- <qemu:env name='QEMU_PA_SERVER' value='/run/user/1000/pulse/native'/> -->
<qemu:arg value="-device" />
<qemu:arg value="ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1" />
<!-- the display -->
<qemu:arg value="-device" />
<qemu:arg value="vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on" />
<qemu:arg value="-cpu" />
<qemu:arg value="host" />
</qemu:commandline>
</domain>