qemu/core-cpu-common-Fix-the-wrong-ifdef-__aarch64__.patch
Fei Xu f9d45693eb QEMU update to version 6.2.0-71(master)
-vhost-user-blk: fix the resize crash
 -plugins: make qemu_plugin_user_exit's locking order consistent with fork_start's
 -linux-user: fix strace build w/out munlockall
 -ui: fix crash on serial reset, during init
 -qga/win/vss: requester_freeze changes
 -migration: fix populate_vfio_info
 -block/rbd: workaround for ceph issue #53784
 -target/i386: add FZRM, FSRS, FSRC
 -i386: Add new CPU model SapphireRapids
 -core/cpu-common: Fix the wrong '#ifdef __aarch64__'

Signed-off-by: Fei Xu <xufei30@huawei.com>
2023-04-22 21:43:51 +08:00

33 lines
1.0 KiB
Diff

From a6f84e8f2c1fef8ca8f48f81e2e6a1b823d9a90e Mon Sep 17 00:00:00 2001
From: Kunkun Jiang <jiangkunkun@huawei.com>
Date: Fri, 21 Apr 2023 14:53:46 +0800
Subject: [PATCH] core/cpu-common: Fix the wrong '#ifdef __aarch64__'
commit c3f86c199885 ("arm/virt: Correct timing of executing
cpu_synchronize_post_init for hot-plugged cpus") used the
wrong '#ifdef __aarch64__'. It should be '#ifndef __aarch64__'.
Fixes: c3f86c199885 ("arm/virt: Correct timing of executing
cpu_synchronize_post_init for hot-plugged cpus")
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
---
hw/core/cpu-common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c
index 2213840260..92d15f2f49 100644
--- a/hw/core/cpu-common.c
+++ b/hw/core/cpu-common.c
@@ -206,7 +206,7 @@ static void cpu_common_realizefn(DeviceState *dev, Error **errp)
}
}
-#ifdef __aarch64__
+#ifndef __aarch64__
if (dev->hotplugged) {
cpu_synchronize_post_init(cpu);
cpu_resume(cpu);
--
2.27.0