mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 03:21:19 +00:00
qemu: command: Replace caps check for QEMU_CAPS_MACH_VIRT_GIC_VERSION by arch check
QEMU_CAPS_MACH_VIRT_GIC_VERSION is always asserted for VIR_ARCH_AARCH64. Note that this patch is a direct conversion of the logic originally residing in the capabilities code. A better coversion would be (based on whether it is available for just AARCH64 or also ARM) to base it on the guest architecture. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
f2212f4c2a
commit
d81db7f7b2
@ -6636,8 +6636,7 @@ qemuAppendDomainFeaturesMachineParam(virBuffer *buf,
|
|||||||
virBufferAsprintf(buf, ",smm=%s", virTristateSwitchTypeToString(smm));
|
virBufferAsprintf(buf, ",smm=%s", virTristateSwitchTypeToString(smm));
|
||||||
|
|
||||||
if (def->features[VIR_DOMAIN_FEATURE_GIC] == VIR_TRISTATE_SWITCH_ON) {
|
if (def->features[VIR_DOMAIN_FEATURE_GIC] == VIR_TRISTATE_SWITCH_ON) {
|
||||||
bool hasGICVersionOption = virQEMUCapsGet(qemuCaps,
|
bool hasGICVersionOption = virQEMUCapsGetArch(qemuCaps) == VIR_ARCH_AARCH64;
|
||||||
QEMU_CAPS_MACH_VIRT_GIC_VERSION);
|
|
||||||
|
|
||||||
switch ((virGICVersion) def->gic_version) {
|
switch ((virGICVersion) def->gic_version) {
|
||||||
case VIR_GIC_VERSION_2:
|
case VIR_GIC_VERSION_2:
|
||||||
|
Loading…
Reference in New Issue
Block a user