mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemuDomainAssignPCIAddresses: Assign extension addresses when auto-assigning PCI address
Assigning a PCI address needs to also assign any extension addresses right away. Otherwise they'd be assigned only after subsequent format->parse cycle and thus be potentially missing on first run after defining the VM and thus could change. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -21,7 +21,9 @@
|
||||
<controller type='pci' index='1' model='pci-bridge'>
|
||||
<model name='pci-bridge'/>
|
||||
<target chassisNr='1'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
|
||||
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'>
|
||||
<zpci uid='0x0002' fid='0x00000001'/>
|
||||
</address>
|
||||
</controller>
|
||||
<audio id='1' type='none'/>
|
||||
<hostdev mode='subsystem' type='pci' managed='no'>
|
||||
|
||||
Reference in New Issue
Block a user