feat: FAST looking glass! TONS of time on this jesus christ
This commit is contained in:
parent
d094ec0247
commit
ff4eccfb99
8 changed files with 331 additions and 72 deletions
100
win10.xml
100
win10.xml
|
@ -1,4 +1,4 @@
|
|||
<domain type="kvm">
|
||||
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
|
||||
<name>win10</name>
|
||||
<uuid>d5c9ecd5-418d-491a-a4f9-6b7c4a4df28d</uuid>
|
||||
<metadata>
|
||||
|
@ -6,13 +6,13 @@
|
|||
<libosinfo:os id="http://microsoft.com/win/10"/>
|
||||
</libosinfo:libosinfo>
|
||||
</metadata>
|
||||
<memory unit="KiB">16777216</memory>
|
||||
<currentMemory unit="KiB">16777216</currentMemory>
|
||||
<memory unit="KiB">25165824</memory>
|
||||
<currentMemory unit="KiB">25165824</currentMemory>
|
||||
<memoryBacking>
|
||||
<source type="memfd"/>
|
||||
<access mode="shared"/>
|
||||
</memoryBacking>
|
||||
<vcpu placement="static">8</vcpu>
|
||||
<vcpu placement="static">14</vcpu>
|
||||
<cputune>
|
||||
<vcpupin vcpu="0" cpuset="0"/>
|
||||
<vcpupin vcpu="1" cpuset="1"/>
|
||||
|
@ -22,12 +22,18 @@
|
|||
<vcpupin vcpu="5" cpuset="5"/>
|
||||
<vcpupin vcpu="6" cpuset="6"/>
|
||||
<vcpupin vcpu="7" cpuset="7"/>
|
||||
<vcpupin vcpu="8" cpuset="8"/>
|
||||
<vcpupin vcpu="9" cpuset="9"/>
|
||||
<vcpupin vcpu="10" cpuset="10"/>
|
||||
<vcpupin vcpu="11" cpuset="11"/>
|
||||
<vcpupin vcpu="12" cpuset="12"/>
|
||||
<vcpupin vcpu="13" cpuset="13"/>
|
||||
</cputune>
|
||||
<os>
|
||||
<type arch="x86_64" machine="pc-q35-9.2">hvm</type>
|
||||
<loader readonly="yes" type="pflash" format="raw">/run/libvirt/nix-ovmf/OVMF_CODE.fd</loader>
|
||||
<nvram template="/run/libvirt/nix-ovmf/OVMF_VARS.fd" templateFormat="raw" format="raw">/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
|
||||
<bootmenu enable="yes"/>
|
||||
<bootmenu enable="no"/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/>
|
||||
|
@ -49,10 +55,15 @@
|
|||
<tlbflush state="on"/>
|
||||
<ipi state="on"/>
|
||||
</hyperv>
|
||||
<kvm>
|
||||
<hidden state="on"/>
|
||||
</kvm>
|
||||
<vmport state="off"/>
|
||||
<ioapic driver="kvm"/>
|
||||
</features>
|
||||
<cpu mode="host-passthrough" check="none" migratable="on">
|
||||
<topology sockets="1" dies="1" clusters="1" cores="4" threads="2"/>
|
||||
<topology sockets="1" dies="1" clusters="1" cores="7" threads="2"/>
|
||||
<maxphysaddr mode="passthrough" limit="40"/>
|
||||
<feature policy="require" name="topoext"/>
|
||||
</cpu>
|
||||
<clock offset="localtime">
|
||||
|
@ -83,22 +94,6 @@
|
|||
<target dev="vdb" bus="virtio"/>
|
||||
<address type="pci" domain="0x0000" bus="0x08" slot="0x00" function="0x0"/>
|
||||
</disk>
|
||||
<disk type="file" device="cdrom">
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source file="/home/evar/Downloads/Win10_22H2_English_x64v1.iso"/>
|
||||
<target dev="sdb" bus="sata"/>
|
||||
<readonly/>
|
||||
<boot order="2"/>
|
||||
<address type="drive" controller="0" bus="0" target="0" unit="1"/>
|
||||
</disk>
|
||||
<disk type="file" device="cdrom">
|
||||
<driver name="qemu" type="raw"/>
|
||||
<source file="/home/evar/Downloads/virtio-win-0.1.266.iso"/>
|
||||
<target dev="sdc" bus="sata"/>
|
||||
<readonly/>
|
||||
<boot order="3"/>
|
||||
<address type="drive" controller="0" bus="0" target="0" unit="2"/>
|
||||
</disk>
|
||||
<controller type="usb" index="0" model="qemu-xhci" ports="15">
|
||||
<address type="pci" domain="0x0000" bus="0x02" slot="0x00" function="0x0"/>
|
||||
</controller>
|
||||
|
@ -191,23 +186,23 @@
|
|||
<filesystem type="mount" accessmode="passthrough">
|
||||
<driver type="virtiofs"/>
|
||||
<binary path="/run/current-system/sw/bin/virtiofsd"/>
|
||||
<source dir="/home/evar/Virtio Shared"/>
|
||||
<source dir="/home/evar/Virtio Shared/"/>
|
||||
<target dir="Virtio Shared"/>
|
||||
<address type="pci" domain="0x0000" bus="0x0b" slot="0x00" function="0x0"/>
|
||||
<address type="pci" domain="0x0000" bus="0x0c" slot="0x00" function="0x0"/>
|
||||
</filesystem>
|
||||
<interface type="bridge">
|
||||
<mac address="52:54:00:ef:ae:20"/>
|
||||
<source bridge="winvm0"/>
|
||||
<model type="virtio"/>
|
||||
<link state="up"/>
|
||||
<address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
|
||||
</interface>
|
||||
<interface type="network">
|
||||
<mac address="52:54:00:15:1c:97"/>
|
||||
<source network="default"/>
|
||||
<model type="virtio"/>
|
||||
<address type="pci" domain="0x0000" bus="0x0a" slot="0x00" function="0x0"/>
|
||||
</interface>
|
||||
<interface type="bridge">
|
||||
<mac address="52:54:00:33:7d:5e"/>
|
||||
<source bridge="winvm0"/>
|
||||
<model type="virtio"/>
|
||||
<link state="up"/>
|
||||
<address type="pci" domain="0x0000" bus="0x0b" slot="0x00" function="0x0"/>
|
||||
</interface>
|
||||
<serial type="pty">
|
||||
<target type="isa-serial" port="0">
|
||||
<model name="isa-serial"/>
|
||||
|
@ -216,6 +211,9 @@
|
|||
<console type="pty">
|
||||
<target type="serial" port="0"/>
|
||||
</console>
|
||||
<console type="pty">
|
||||
<target type="virtio" port="1"/>
|
||||
</console>
|
||||
<channel type="unix">
|
||||
<target type="virtio" name="org.qemu.guest_agent.0"/>
|
||||
<address type="virtio-serial" controller="0" bus="0" port="2"/>
|
||||
|
@ -224,6 +222,12 @@
|
|||
<target type="virtio" name="com.redhat.spice.0"/>
|
||||
<address type="virtio-serial" controller="0" bus="0" port="1"/>
|
||||
</channel>
|
||||
<input type="mouse" bus="virtio">
|
||||
<address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
|
||||
</input>
|
||||
<input type="keyboard" bus="virtio">
|
||||
<address type="pci" domain="0x0000" bus="0x09" slot="0x00" function="0x0"/>
|
||||
</input>
|
||||
<input type="mouse" bus="ps2"/>
|
||||
<input type="keyboard" bus="ps2"/>
|
||||
<graphics type="spice" port="-1" autoport="no">
|
||||
|
@ -232,14 +236,12 @@
|
|||
<gl enable="no"/>
|
||||
</graphics>
|
||||
<sound model="ich9">
|
||||
<audio id="1"/>
|
||||
<address type="pci" domain="0x0000" bus="0x00" slot="0x1b" function="0x0"/>
|
||||
</sound>
|
||||
<audio id="1" type="none"/>
|
||||
<audio id="1" type="spice"/>
|
||||
<video>
|
||||
<model type="virtio" heads="1" primary="yes">
|
||||
<acceleration accel3d="no"/>
|
||||
</model>
|
||||
<address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
|
||||
<model type="none"/>
|
||||
</video>
|
||||
<hostdev mode="subsystem" type="pci" managed="yes">
|
||||
<source>
|
||||
|
@ -255,24 +257,18 @@
|
|||
</hostdev>
|
||||
<hostdev mode="subsystem" type="usb" managed="yes">
|
||||
<source>
|
||||
<vendor id="0x320f"/>
|
||||
<product id="0x5088"/>
|
||||
<vendor id="0x256c"/>
|
||||
<product id="0x006b"/>
|
||||
</source>
|
||||
<address type="usb" bus="0" port="2"/>
|
||||
<address type="usb" bus="0" port="1"/>
|
||||
</hostdev>
|
||||
<watchdog model="itco" action="reset"/>
|
||||
<memballoon model="virtio">
|
||||
<address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
|
||||
</memballoon>
|
||||
<shmem name="looking-glass">
|
||||
<model type="ivshmem-plain"/>
|
||||
<size unit="M">64</size>
|
||||
<address type="pci" domain="0x0000" bus="0x10" slot="0x01" function="0x0"/>
|
||||
</shmem>
|
||||
<shmem name="scream">
|
||||
<model type="ivshmem-plain"/>
|
||||
<size unit="M">2</size>
|
||||
<address type="pci" domain="0x0000" bus="0x10" slot="0x02" function="0x0"/>
|
||||
</shmem>
|
||||
<memballoon model="none"/>
|
||||
</devices>
|
||||
<qemu:commandline>
|
||||
<qemu:arg value="-device"/>
|
||||
<qemu:arg value="{"driver":"ivshmem-plain","id":"shmem0","memdev":"looking-glass"}"/>
|
||||
<qemu:arg value="-object"/>
|
||||
<qemu:arg value="{"qom-type":"memory-backend-file","id":"looking-glass","mem-path":"/dev/kvmfr0","size":134217728,"share":true}"/>
|
||||
</qemu:commandline>
|
||||
</domain>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue