mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
qemuDomainDefAddDefaultDevices: Handle defaults for all ARM arches together
Most machine types are avaliable in all arches by qemu. This is also true for the 'versatilepb' machine type example in the tests. Move all the ARM architectures together so that they are handled in sync. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
0d33631671
commit
1dd0744b29
@ -4189,14 +4189,15 @@ qemuDomainDefAddDefaultDevices(virQEMUDriver *driver,
|
||||
break;
|
||||
|
||||
case VIR_ARCH_ARMV6L:
|
||||
case VIR_ARCH_ARMV7L:
|
||||
case VIR_ARCH_ARMV7B:
|
||||
case VIR_ARCH_AARCH64:
|
||||
if (STREQ(def->os.machine, "versatilepb"))
|
||||
addPCIRoot = true;
|
||||
break;
|
||||
|
||||
case VIR_ARCH_ARMV7L:
|
||||
case VIR_ARCH_AARCH64:
|
||||
if (qemuDomainIsARMVirt(def))
|
||||
addPCIeRoot = true;
|
||||
|
||||
break;
|
||||
|
||||
case VIR_ARCH_PPC64:
|
||||
@ -4253,7 +4254,6 @@ qemuDomainDefAddDefaultDevices(virQEMUDriver *driver,
|
||||
addPCIRoot = true;
|
||||
break;
|
||||
|
||||
case VIR_ARCH_ARMV7B:
|
||||
case VIR_ARCH_CRIS:
|
||||
case VIR_ARCH_ITANIUM:
|
||||
case VIR_ARCH_LM32:
|
||||
|
@ -15,6 +15,7 @@
|
||||
<on_crash>destroy</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-system-aarch64</emulator>
|
||||
<controller type='pci' index='0' model='pci-root'/>
|
||||
<audio id='1' type='none'/>
|
||||
<memballoon model='none'/>
|
||||
</devices>
|
||||
|
@ -15,6 +15,7 @@
|
||||
<on_crash>destroy</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-system-aarch64</emulator>
|
||||
<controller type='pci' index='0' model='pci-root'/>
|
||||
<audio id='1' type='none'/>
|
||||
<memballoon model='none'/>
|
||||
</devices>
|
||||
|
@ -17,6 +17,7 @@
|
||||
<on_crash>destroy</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-system-armv7l</emulator>
|
||||
<controller type='pci' index='0' model='pci-root'/>
|
||||
<audio id='1' type='none'/>
|
||||
<memballoon model='none'/>
|
||||
</devices>
|
||||
|
@ -17,6 +17,7 @@
|
||||
<on_crash>destroy</on_crash>
|
||||
<devices>
|
||||
<emulator>/usr/bin/qemu-system-armv7l</emulator>
|
||||
<controller type='pci' index='0' model='pci-root'/>
|
||||
<audio id='1' type='none'/>
|
||||
<memballoon model='none'/>
|
||||
</devices>
|
||||
|
Loading…
Reference in New Issue
Block a user