32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
|
|
From 3650de04c4dc99416b7a2d4edd283217657e77c5 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Xu Yandong <xuyandong2@huawei.com>
|
||
|
|
Date: Wed, 20 May 2020 02:33:27 -0400
|
||
|
|
Subject: [PATCH] cpu/aarch64: enable host-model cpu for AArch64 architecture
|
||
|
|
|
||
|
|
The 'host-model' cpu is support by kunpeng-v virtualization
|
||
|
|
suit, skip hypervisor host-model externsion checking on AArch64
|
||
|
|
architecture.
|
||
|
|
|
||
|
|
Signed-off-by: Xu Yandong <xuyandong2@huawei.com>
|
||
|
|
Signed-off-by: lishusen <lishusen2@huawei.com>
|
||
|
|
---
|
||
|
|
src/qemu/qemu_command.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
|
||
|
|
index d54149ed2d..e3cf092828 100644
|
||
|
|
--- a/src/qemu/qemu_command.c
|
||
|
|
+++ b/src/qemu/qemu_command.c
|
||
|
|
@@ -6278,7 +6278,7 @@ qemuBuildCpuModelArgStr(virQEMUDriver *driver,
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
|
||
|
|
- if ((ARCH_IS_S390(def->os.arch) || ARCH_IS_ARM(def->os.arch)) &&
|
||
|
|
+ if (ARCH_IS_S390(def->os.arch) &&
|
||
|
|
cpu->features &&
|
||
|
|
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_QUERY_CPU_MODEL_EXPANSION)) {
|
||
|
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|