Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:pci-passthrough [2017/12/25 21:41]
shaddi
software:pci-passthrough [2021/02/24 23:49] (current)
Line 18: Line 18:
   <memory unit='​KiB'>​8192000</​memory>​   <memory unit='​KiB'>​8192000</​memory>​
   <​currentMemory unit='​KiB'>​8192000</​currentMemory>​   <​currentMemory unit='​KiB'>​8192000</​currentMemory>​
 +  <​memoryBacking>​
 +    <​hugepages/>​
 +  </​memoryBacking>​
   <vcpu placement='​static'>​4</​vcpu>​   <vcpu placement='​static'>​4</​vcpu>​
   <os>   <os>
Line 28: Line 31:
     <​apic/>​     <​apic/>​
     <​hyperv>​     <​hyperv>​
 +      <relaxed state='​on'/>​
 +      <vapic state='​on'/>​
 +      <​spinlocks state='​on'​ retries='​8191'/>​
       <​vendor_id state='​on'​ value='​1234567890ab'/>​       <​vendor_id state='​on'​ value='​1234567890ab'/>​
     </​hyperv>​     </​hyperv>​
Line 34: Line 40:
     </​kvm>​     </​kvm>​
   </​features>​   </​features>​
-  <cpu mode='​host-passthrough'/>​+  <cpu mode='​host-passthrough'>​ 
 +    <​topology sockets='​1'​ cores='​4'​ threads='​1'/
 +  </cpu>
   <clock offset='​localtime'>​   <clock offset='​localtime'>​
     <timer name='​rtc'​ tickpolicy='​catchup'/>​     <timer name='​rtc'​ tickpolicy='​catchup'/>​
     <timer name='​pit'​ tickpolicy='​delay'/>​     <timer name='​pit'​ tickpolicy='​delay'/>​
     <timer name='​hpet'​ present='​no'/>​     <timer name='​hpet'​ present='​no'/>​
 +    <timer name='​kvmclock'​ present='​yes'/>​
     <timer name='​hypervclock'​ present='​yes'/>​     <timer name='​hypervclock'​ present='​yes'/>​
   </​clock>​   </​clock>​
Line 111: Line 120:
       <address type='​pci'​ domain='​0x0000'​ bus='​0x00'​ slot='​0x08'​ function='​0x0'/>​       <address type='​pci'​ domain='​0x0000'​ bus='​0x00'​ slot='​0x08'​ function='​0x0'/>​
     </​hostdev>​     </​hostdev>​
-    <​memballoon model='​virtio'+    <​memballoon model='​none'/>
-      <address type='​pci'​ domain='​0x0000'​ bus='​0x00'​ slot='​0x06'​ function='​0x0'/>​ +
-    </memballoon>+
   </​devices>​   </​devices>​
 </​domain>​ </​domain>​
 +</​code>​
 +
 +Setting vfio module to "​catch"​ GPU on boot. Dont forget to blacklist nvidia* drivers.
 +
 +/​etc/​modprobe.d/​vfio.conf:​
 +<​code>​
 + ​options vfio-pci ids=10de:​1b81,​10de:​10f0 disable_vga=1
 </​code>​ </​code>​
  
 Lot of info on https://​rokups.github.io/#​!pages/​gaming-vm-performance.md Lot of info on https://​rokups.github.io/#​!pages/​gaming-vm-performance.md
 +https://​www.redhat.com/​archives/​vfio-users/​2017-February/​msg00010.html
software/pci-passthrough.1514234495.txt.gz · Last modified: 2021/02/24 23:49 (external edit)
Back to top
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0