Allow setting of PCI domain (#927)

This commit is contained in:
Quinten Johnson
2020-05-10 05:40:29 -05:00
committed by GitHub
parent 618c8b251d
commit 7e966febbd
6 changed files with 19 additions and 11 deletions

View File

@@ -110,7 +110,7 @@
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0000'
<address domain='0x0001'
bus='0x03'
slot='0x00'
function='0x0'/>

View File

@@ -64,7 +64,7 @@ describe 'templates/domain' do
source_path: '/tmp/foo')
domain.random(model: 'random')
domain.pci(bus: '0x06', slot: '0x12', function: '0x5')
domain.pci(bus: '0x03', slot: '0x00', function: '0x0')
domain.pci(domain: '0x0001', 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')