Automatically add multifunction address parameter when needed

Also check for use of duplicate addresses before passing such XML to
libvirt.  And fix tests (of course).
This commit is contained in:
Martin Kletzander
2013-09-02 16:56:53 +02:00
parent 57aab5de17
commit 70fae14635
2 changed files with 25 additions and 2 deletions

View File

@@ -46,7 +46,7 @@
</controller>
<controller type="usb" index="0" model="ich9-uhci1">
<master startport="0"/>
<address type="pci" domain="0" bus="0" slot="4" function="0"/>
<address type="pci" domain="0" bus="0" slot="4" function="0" multifunction="on"/>
</controller>
<controller type="usb" index="0" model="ich9-uhci2">
<master startport="2"/>
@@ -134,7 +134,7 @@
</controller>
<controller type="usb" index="0" model="ich9-uhci1">
<master startport="0"/>
<address type="pci" domain="0" bus="0" slot="4" function="0"/>
<address type="pci" domain="0" bus="0" slot="4" function="0" multifunction="on"/>
</controller>
<controller type="usb" index="0" model="ich9-uhci2">
<master startport="2"/>