USB controller configuration (#861)

* Add USB controller configuration

* Update README with USB controller configuration info

* Rename USB controller parameter to usb_controller

* Code style fixup
This commit is contained in:
David Scaife
2018-03-18 19:25:01 +11:00
committed by Dmitry Vasilets
parent c3e46a1f23
commit 60e93d4925
6 changed files with 58 additions and 0 deletions

View File

@@ -128,6 +128,7 @@
<device path='/dev/tpm0'/>
</backend>
</tpm>
<controller type='usb' model='nec-xhci' ports="4" />
</devices>
<qemu:commandline>

View File

@@ -64,6 +64,7 @@ describe 'templates/domain' do
domain.random(model: 'random')
domain.pci(bus: '0x06', slot: '0x12', function: '0x5')
domain.pci(bus: '0x03', slot: '0x00', function: '0x0')
domain.usb_controller(model: 'nec-xhci', ports: '4')
domain.usb(bus: '1', device: '2', vendor: '0x1234', product: '0xabcd')
domain.redirdev(type: 'tcp', host: 'localhost', port: '4000')
domain.redirfilter(class: '0x0b', vendor: '0x08e6',