mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
qemu: Use qemuDomainMachineIsVirt() more
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
ed99660446
commit
5290d4fdaf
@ -5842,12 +5842,7 @@ virQEMUCapsFillDomainFeatureGICCaps(virQEMUCapsPtr qemuCaps,
|
||||
virDomainCapsFeatureGICPtr gic = &domCaps->gic;
|
||||
virGICVersion version;
|
||||
|
||||
if (domCaps->arch != VIR_ARCH_ARMV7L &&
|
||||
domCaps->arch != VIR_ARCH_AARCH64)
|
||||
return 0;
|
||||
|
||||
if (STRNEQ(domCaps->machine, "virt") &&
|
||||
!STRPREFIX(domCaps->machine, "virt-"))
|
||||
if (!qemuDomainMachineIsVirt(domCaps->machine, domCaps->arch))
|
||||
return 0;
|
||||
|
||||
for (version = VIR_GIC_VERSION_LAST - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user