Advertisement
The_Moves

GamingMachine-VFIO

Jul 16th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.32 KB | None | 0 0
  1. <domain type='kvm' id='2'>
  2.   <name>GamingMachine</name>
  3.   <uuid>f6482aa8-1025-455a-a09c-026a69e5cc27</uuid>
  4.   <memory unit='KiB'>8388608</memory>
  5.   <currentMemory unit='KiB'>8388608</currentMemory>
  6.   <vcpu placement='static'>4</vcpu>
  7.   <cputune>
  8.     <vcpupin vcpu='0' cpuset='2'/>
  9.     <vcpupin vcpu='1' cpuset='8'/>
  10.     <vcpupin vcpu='2' cpuset='3'/>
  11.     <vcpupin vcpu='3' cpuset='9'/>
  12.   </cputune>
  13.   <resource>
  14.     <partition>/machine</partition>
  15.   </resource>
  16.   <os>
  17.     <type arch='x86_64' machine='pc-i440fx-2.2'>hvm</type>
  18.     <loader readonly='yes' type='pflash'>/usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
  19.     <nvram template='/usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd'>/var/lib/libvirt/qemu/nvram/GamingMachine_VARS.fd</nvram>
  20.     <bootmenu enable='yes'/>
  21.   </os>
  22.   <features>
  23.     <acpi/>
  24.     <apic/>
  25.     <pae/>
  26.     <kvm>
  27.       <hidden state='on'/>
  28.     </kvm>
  29.   </features>
  30.   <cpu mode='host-passthrough'>
  31.     <topology sockets='1' cores='2' threads='2'/>
  32.   </cpu>
  33.   <clock offset='utc'/>
  34.   <on_poweroff>destroy</on_poweroff>
  35.   <on_reboot>restart</on_reboot>
  36.   <on_crash>destroy</on_crash>
  37.   <pm>
  38.     <suspend-to-mem enabled='no'/>
  39.     <suspend-to-disk enabled='no'/>
  40.   </pm>
  41.   <devices>
  42.     <emulator>/usr/bin/qemu-system-x86_64</emulator>
  43.     <disk type='file' device='disk'>
  44.       <driver name='qemu' type='raw'/>
  45.       <source file='/home/bdavis/virtual_machines/disks/GamesD1.img'/>
  46.       <backingStore/>
  47.       <target dev='vda' bus='virtio'/>
  48.       <alias name='virtio-disk0'/>
  49.       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
  50.     </disk>
  51.     <disk type='file' device='disk'>
  52.       <driver name='qemu' type='raw'/>
  53.       <source file='/home/bdavis/virtual_machines/disks/GamingMachineOS.img'/>
  54.       <backingStore/>
  55.       <target dev='vdb' bus='virtio'/>
  56.       <boot order='1'/>
  57.       <alias name='virtio-disk1'/>
  58.       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  59.     </disk>
  60.     <disk type='file' device='disk'>
  61.       <driver name='qemu' type='raw'/>
  62.       <source file='/home/bdavis/virtual_machines/slowdisks/GamesD2.img'/>
  63.       <backingStore/>
  64.       <target dev='vdc' bus='virtio'/>
  65.       <alias name='virtio-disk2'/>
  66.       <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
  67.     </disk>
  68.     <disk type='block' device='cdrom'>
  69.       <driver name='qemu' type='raw'/>
  70.       <backingStore/>
  71.       <target dev='hda' bus='ide'/>
  72.       <readonly/>
  73.       <alias name='ide0-0-0'/>
  74.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  75.     </disk>
  76.     <controller type='scsi' index='0' model='virtio-scsi'>
  77.       <alias name='scsi0'/>
  78.       <address type='pci' domain='0x0000' bus='0x00' slot='0x13' function='0x0'/>
  79.     </controller>
  80.     <controller type='usb' index='0'>
  81.       <alias name='usb0'/>
  82.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
  83.     </controller>
  84.     <controller type='pci' index='0' model='pci-root'>
  85.       <alias name='pci.0'/>
  86.     </controller>
  87.     <controller type='pci' index='1' model='pci-bridge'>
  88.       <alias name='pci.1'/>
  89.       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  90.     </controller>
  91.     <controller type='pci' index='2' model='pci-bridge'>
  92.       <alias name='pci.2'/>
  93.       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  94.     </controller>
  95.     <controller type='virtio-serial' index='0'>
  96.       <alias name='virtio-serial0'/>
  97.       <address type='pci' domain='0x0000' bus='0x00' slot='0x0d' function='0x0'/>
  98.     </controller>
  99.     <controller type='ide' index='0'>
  100.       <alias name='ide0'/>
  101.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  102.     </controller>
  103.     <hostdev mode='subsystem' type='scsi' managed='no'>
  104.       <source>
  105.         <adapter name='scsi_host4'/>
  106.         <address bus='0' target='0' unit='0'/>
  107.       </source>
  108.       <readonly/>
  109.       <alias name='hostdev0'/>
  110.       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
  111.     </hostdev>
  112.     <hostdev mode='subsystem' type='pci' managed='yes'>
  113.       <driver name='vfio'/>
  114.       <source>
  115.         <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
  116.       </source>
  117.       <alias name='hostdev1'/>
  118.       <address type='pci' domain='0x0000' bus='0x00' slot='0x0f' function='0x0'/>
  119.     </hostdev>
  120.     <hostdev mode='subsystem' type='pci' managed='yes'>
  121.       <driver name='vfio'/>
  122.       <source>
  123.         <address domain='0x0000' bus='0x04' slot='0x00' function='0x1'/>
  124.       </source>
  125.       <alias name='hostdev2'/>
  126.       <address type='pci' domain='0x0000' bus='0x00' slot='0x10' function='0x0'/>
  127.     </hostdev>
  128.     <hostdev mode='subsystem' type='pci' managed='yes'>
  129.       <driver name='vfio'/>
  130.       <source>
  131.         <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
  132.       </source>
  133.       <alias name='hostdev3'/>
  134.       <address type='pci' domain='0x0000' bus='0x00' slot='0x11' function='0x0'/>
  135.     </hostdev>
  136.     <hostdev mode='subsystem' type='pci' managed='yes'>
  137.       <driver name='vfio'/>
  138.       <source>
  139.         <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
  140.       </source>
  141.       <alias name='hostdev4'/>
  142.       <address type='pci' domain='0x0000' bus='0x00' slot='0x12' function='0x0'/>
  143.     </hostdev>
  144.     <hostdev mode='subsystem' type='pci' managed='yes'>
  145.       <driver name='vfio'/>
  146.       <source>
  147.         <address domain='0x0000' bus='0x02' slot='0x00' function='0x1'/>
  148.       </source>
  149.       <alias name='hostdev5'/>
  150.       <address type='pci' domain='0x0000' bus='0x00' slot='0x14' function='0x0'/>
  151.     </hostdev>
  152.     <hostdev mode='subsystem' type='pci' managed='yes'>
  153.       <driver name='vfio'/>
  154.       <source>
  155.         <address domain='0x0000' bus='0x00' slot='0x1d' function='0x0'/>
  156.       </source>
  157.       <alias name='hostdev6'/>
  158.       <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
  159.     </hostdev>
  160.     <hostdev mode='subsystem' type='pci' managed='yes'>
  161.       <driver name='vfio'/>
  162.       <source>
  163.         <address domain='0x0000' bus='0x00' slot='0x1d' function='0x1'/>
  164.       </source>
  165.       <alias name='hostdev7'/>
  166.       <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
  167.     </hostdev>
  168.     <hostdev mode='subsystem' type='pci' managed='yes'>
  169.       <driver name='vfio'/>
  170.       <source>
  171.         <address domain='0x0000' bus='0x00' slot='0x1d' function='0x2'/>
  172.       </source>
  173.       <alias name='hostdev8'/>
  174.       <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/>
  175.     </hostdev>
  176.     <hostdev mode='subsystem' type='pci' managed='yes'>
  177.       <driver name='vfio'/>
  178.       <source>
  179.         <address domain='0x0000' bus='0x00' slot='0x1d' function='0x7'/>
  180.       </source>
  181.       <alias name='hostdev9'/>
  182.       <address type='pci' domain='0x0000' bus='0x00' slot='0x0c' function='0x0'/>
  183.     </hostdev>
  184.     <memballoon model='virtio'>
  185.       <alias name='balloon0'/>
  186.       <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
  187.     </memballoon>
  188.   </devices>
  189.   <seclabel type='dynamic' model='selinux' relabel='yes'>
  190.     <label>system_u:system_r:svirt_t:s0:c384,c564</label>
  191.     <imagelabel>system_u:object_r:svirt_image_t:s0:c384,c564</imagelabel>
  192.   </seclabel>
  193. </domain>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement