mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 23:55:23 +00:00
877bc08947
In the past we automatically added a USB controller and assigned
it a PCI address (0:0:1.2) even on machines without a PCI bus.
This didn't break machines with no PCI bus because the command
line for it is just '-usb', with no mention of the PCI bus.
The implicit IDE controller (reserved address 0:0:1.1) has
no command line at all.
Commit b33eb0dc
removed the ability to reserve PCI addresses
on machines without a PCI bus. This made them stop working,
since there would always be the implicit USB controller.
Skip the reservation of addresses for these controllers when
there is no PCI bus, instead of failing.
35 lines
1.0 KiB
XML
35 lines
1.0 KiB
XML
<domain type='qemu'>
|
|
<name>test</name>
|
|
<memory>219100</memory>
|
|
<currentMemory>219100</currentMemory>
|
|
<os>
|
|
<type arch='s390x' machine='s390-virtio'>hvm</type>
|
|
</os>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-s390x</emulator>
|
|
<disk type='block' device='disk'>
|
|
<source dev='/dev/HostVG/QEMUGuest1'/>
|
|
<target dev='hda' bus='virtio'/>
|
|
<boot order='1'/>
|
|
</disk>
|
|
<console type='pty'>
|
|
<target type='virtio'/>
|
|
</console>
|
|
<controller type='usb' index='0'>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
|
|
</controller>
|
|
<controller type='ide' index='0'>
|
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
|
|
</controller>
|
|
<memballoon model='virtio'>
|
|
</memballoon>
|
|
<rng model='virtio'>
|
|
<backend model='random'>/dev/hwrng</backend>
|
|
</rng>
|
|
</devices>
|
|
</domain>
|