<domain type='kvm' ns="http://libvirt.org/schemas/domain/qemu/1.0">
	<name>vm-dpdk1</name>
	<memory unit='MiB'>4096</memory>
	<currentMemory unit='MiB'>4096</currentMemory>
         <memoryBacking>
    		<hugepages>
      			<page size='1' unit='G' nodeset='0'/>
    		</hugepages>
  	</memoryBacking>
	<vcpu>2</vcpu>
	<os>
		<type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
		<!--boot dev='cdrom'/-->
		<boot dev='hd'/>
	</os>
	<clock offset='utc'>
		<timer name='rtc' tickpolicy='catchup'/>
		<timer name='pit' tickpolicy='delay'/>
		<timer name='hpet' present='no'/>
	</clock>
	<on_poweroff>destroy</on_poweroff>
	<on_crash>destroy</on_crash>
	<devices>
		<emulator>/usr/bin/kvm-spice</emulator>
		<disk type='file' device='disk'>
			<source file='/home/rvbduser/linux-vm/vm1.qcow2'/>
			<target dev='vda' bus='virtio'/>
			<driver name='qemu' type='qcow2'/>
			<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
		</disk>
    <interface type="bridge">
      <source bridge="virbr0" />
      <model type="virtio" />
      <driver name="vhost" queues="8"/>
      <alias name="primary" />
      <address type="pci" domain="0x0000" bus="0x0" slot="3" function="0x0"/>
    </interface>
<!--
  <interface type="bridge">
     <source bridge='br0'/>
     <virtualport type='openvswitch'>
       <parameters interfaceid='a67a1ead-167f-4a24-abd1-6f012316a2f3'/>
     </virtualport>
  </interface>

  <interface type="bridge">
     <source bridge='br1'/>
     <virtualport type='openvswitch'>
       <parameters interfaceid='90e15521-9133-4fc0-a097-5921919d4955'/>
     </virtualport>
  </interface>
-->
   <interface type='vhostuser'>
                <source type='unix'
                        path='/var/run/openvswitch/vhostuser0'
                        mode='client'/>
                <model type='virtio'/>
		<!--
		<driver queues='4'>
                	<host mrg_rxbuf='on' />
  		</driver>
                -->
                <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
   
   </interface>
<!--
   <interface type='vhostuser'>
                <source type='unix'
                        path='/tmp/dpdkvhostuserclient0'
                        mode='client'/>
                <model type='virtio'/>
		<driver queues='4'>
                	<host mrg_rxbuf='on' />
  		</driver>
                <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
   
   </interface>
-->

   <interface type='vhostuser'>
                <source type='unix'
                        path='/var/run/openvswitch/vhostuser1'
                        mode='client'/>
                <model type='virtio'/>
		<!--
		<driver queues='4'/>
                -->
                <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> 
   </interface>

		<input type='mouse' bus='ps2'/>
		<input type='keyboard' bus='ps2'/>
		<graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
		<serial type='pty'>
			<target port='0'/>
		</serial>
		<console type='pty'>
			<target type='serial' port='0'/>
		</console>
		<memballoon model='virtio'>
			<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
		</memballoon>
	</devices>
	<qemu:commandline>
		<qemu:arg value='-redir'/>
		<qemu:arg value='tcp:11112::22'/>
	</qemu:commandline>
</domain>
