master
yurialek 5 years ago
parent 38f74f17c5
commit 93d22e4173

@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## 2019/03/22
### Added
- [scritps](/scripts)
- [virsh-network.xml](/scripts/virsh-network.xml)
- [windows.xml](/scripts/windows.xml)
- [Wiki](https://gitlab.com/YuriAlek/vfio/wikis/home)
- [libvirt](https://gitlab.com/YuriAlek/vfio/wikis/Libvirt)
### Changed
- [README.md](/README.md)
- [Wiki](https://gitlab.com/YuriAlek/vfio/wikis/home)
- [Home](https://gitlab.com/YuriAlek/vfio/wikis/Home)
- [Install](https://gitlab.com/YuriAlek/vfio/wikis/Install)
- [Troubleshoot](https://gitlab.com/YuriAlek/vfio/wikis/Troubleshoot)
- [Use](https://gitlab.com/YuriAlek/vfio/wikis/Use)
## 2019/01/29
Minor changes in the scripts and new pages in the wiki.
### Added

@ -1,15 +1,15 @@
# Single GPU passthrough
## Last Update
2019/01/02
2019/03/22
## Table of Contents
1. [Start here](#start-here)
1. [What is this](#what-this-is)
1. [Wiki](#wiki)
1. [Branches](#branches)
1. [Known problems](#known-problems)
1. [TODO](#todo)
- [Start here](#start-here)
- [What is this](#what-this-is)
- [Wiki](#wiki)
- [Branches](#branches)
- [Known problems](#known-problems)
- [TODO](#todo)
## Start here
- [How to use the script for Windows VMs](https://gitlab.com/YuriAlek/vfio/wikis/Use/#windows).
@ -41,8 +41,6 @@ Windows 10 Pro 1709 works for me, but 1803 does not (may be the UEFI). [I have r
## TODO
- [ ] Audio.
- [ ] `smb.conf` and `dnsmasq.conf` using the `config` file.
- [ ] CPU pinning.
- [ ] Performance tunning for QEMU.
- [ ] Find a way to restore the GPU without `nvidia-xconfig --query-gpu-info`.
- [ ] [Automation][3].
- [ ] Don't kill X server, [shifter and xpra may be the solution][5]. Also [uswsusp (userspace software suspend)][6]. [Source][7]

@ -0,0 +1,13 @@
<network ipv6='yes'>
<name>virt1</name>
<uuid>046a1f8f-e46c-4517-8f8e-6c793a8b57a2</uuid>
<bridge name='virbr1' stp='on' delay='0'/>
<mac address='52:54:00:db:9d:9b'/>
<domain name='virt1'/>
<ip address='10.10.10.1' netmask='255.255.255.0'>
<dhcp>
<range start='10.10.10.128' end='10.10.10.254'/>
</dhcp>
</ip>
</network>

@ -0,0 +1,141 @@
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>win10</name>
<uuid>49a79759-dfa2-4670-a6f6-eab2d6794abd</uuid>
<memory unit='KiB'>12582910</memory>
<currentMemory unit='KiB'>12582910</currentMemory>
<vcpu placement='static' cpuset='0-12'>12</vcpu>
<iothreads>1</iothreads>
<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'/>
<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'/>
<emulatorpin cpuset='0-6'/>
<iothreadpin iothread='1' cpuset='0-1'/>
</cputune>
<numatune>
<memory mode='strict' nodeset='0'/>
</numatune>
<os>
<type arch='x86_64' machine='pc-i440fx-3.1'>hvm</type>
<loader readonly='yes' type='pflash'>/usr/share/ovmf/x64/OVMF_CODE.fd</loader>
<nvram>/var/lib/libvirt/qemu/nvram/win10_VARS.fd</nvram>
<boot dev='cdrom'/>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<hyperv>
<relaxed state='on'/>
<vapic state='on'/>
<spinlocks state='on' retries='8191'/>
<vendor_id state='on' value='123456789ab'/>
</hyperv>
<kvm>
<hidden state='on'/>
</kvm>
<vmport state='off'/>
</features>
<cpu mode='host-model' check='partial'>
<model fallback='allow'/>
<topology sockets='1' cores='6' threads='2'/>
<cache level='3' mode='emulate'/>
<feature name='ht'/>
<feature name='xsaves'/>
<feature name='cmp_legacy'/>
<feature name='extapic'/>
<feature name='skinit'/>
<feature name='wdt'/>
<feature name='tce'/>
<feature policy='require' name='topoext'/>
<feature name='perfctr_core'/>
<feature name='perfctr_nb'/>
<feature name='invtsc'/>
<numa>
<cell id='0' cpus='0-11' memory='12582912' unit='KiB'/>
</numa>
</cpu>
<clock offset='localtime'>
<timer name='rtc' tickpolicy='catchup'/>
<timer name='pit' tickpolicy='delay'/>
<timer name='hpet' present='no'/>
<timer name='hypervclock' present='yes'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<pm>
<suspend-to-mem enabled='no'/>
<suspend-to-disk enabled='no'/>
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/windows.raw'/>
<target dev='sda' bus='scsi'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/windows10.iso'/>
<target dev='hda' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/virtio-win.iso'/>
<target dev='hdb' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<controller type='usb' index='0' model='qemu-xhci' ports='15'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</controller>
<controller type='scsi' index='0' model='virtio-scsi'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</controller>
<controller type='pci' index='0' model='pci-root'/>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='network'>
<mac address='50:50:50:48:5a:fc'/>
<source network='virt1'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
</interface>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
</source>
<rom file='/GK104_80.04.C3.00.0F-MODED.rom'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x06' slot='0x00' function='0x1'/>
</source>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000' bus='0x07' slot='0x00' function='0x3'/>
</source>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</hostdev>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</memballoon>
</devices>
</domain>
Loading…
Cancel
Save