mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
163338ec28
The real Q35 machine puts the first USB controller set (EHCI+(UHCIx4)) on bus 0 slot 0x1D, and the 2nd USB controller set on bus 0 slot 0x1A, so let's attempt to make the virtual machine match that for controllers with auto-assigned addresses when possible. Three test cases were added to assure that the proper addresses are assigned - one with a single set of unaddressed USB controllers, one with 3 (to grab both preferred slots plus one more), and one with the order of the controller definitions reordered, to assure that the auto-assignment isn't mixed up by order.
48 lines
1.8 KiB
XML
48 lines
1.8 KiB
XML
<domain type='qemu'>
|
|
<name>q35-test</name>
|
|
<uuid>11dbdcdd-4c3b-482b-8903-9bdb8c0a2774</uuid>
|
|
<memory unit='KiB'>2097152</memory>
|
|
<currentMemory unit='KiB'>2097152</currentMemory>
|
|
<vcpu placement='static' cpuset='0-1'>2</vcpu>
|
|
<os>
|
|
<type arch='x86_64' machine='q35'>hvm</type>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/libexec/qemu-kvm</emulator>
|
|
<disk type='block' device='disk'>
|
|
<source dev='/dev/HostVG/QEMUGuest1'/>
|
|
<target dev='sda' bus='sata'/>
|
|
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
|
</disk>
|
|
<controller type='pci' index='0' model='pcie-root'/>
|
|
<controller type='pci' index='1' model='dmi-to-pci-bridge'>
|
|
<model name='i82801b11-bridge'/>
|
|
</controller>
|
|
<controller type='pci' index='2' model='pci-bridge'>
|
|
<model name='pci-bridge'/>
|
|
<target chassisNr='56'/>
|
|
</controller>
|
|
<controller type='usb' index='0' model='ich9-uhci1'/>
|
|
<controller type='usb' index='0' model='ich9-uhci2'/>
|
|
<controller type='usb' index='0' model='ich9-uhci3'/>
|
|
<controller type='usb' index='1' model='ich9-uhci1'/>
|
|
<controller type='usb' index='2' model='ich9-uhci3'/>
|
|
<controller type='usb' index='0' model='ich9-ehci1'/>
|
|
<controller type='usb' index='2' model='ich9-ehci1'/>
|
|
<controller type='usb' index='1' model='ich9-uhci3'/>
|
|
<controller type='usb' index='1' model='ich9-uhci2'/>
|
|
<controller type='usb' index='1' model='ich9-ehci1'/>
|
|
<controller type='usb' index='2' model='ich9-uhci2'/>
|
|
<controller type='usb' index='2' model='ich9-uhci1'/>
|
|
<video>
|
|
<model type='qxl' ram='65536' vram='32768' vgamem='8192' heads='1'/>
|
|
</video>
|
|
<memballoon model='none'/>
|
|
</devices>
|
|
</domain>
|