From e246ada6b0720af0b42e19736910756c92b95c45 Mon Sep 17 00:00:00 2001 From: Tw Date: Thu, 25 Nov 2021 09:50:40 +0800 Subject: [PATCH] hv: fix core type error when launch RTVM use atom core When CPUID executes with EAX set to 1AH, the processor returns information about hybrid capabilities. This information is percpu related, and should be obtained directly from the physical cpu. Tracked-On: #6899 Signed-off-by: Tw --- hypervisor/arch/x86/guest/vcpuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/guest/vcpuid.c b/hypervisor/arch/x86/guest/vcpuid.c index 58820d67f..01a89228d 100644 --- a/hypervisor/arch/x86/guest/vcpuid.c +++ b/hypervisor/arch/x86/guest/vcpuid.c @@ -492,7 +492,7 @@ static int32_t set_vcpuid_extended_function(struct acrn_vm *vm) static inline bool is_percpu_related(uint32_t leaf) { - return ((leaf == 0x1U) || (leaf == 0xbU) || (leaf == 0xdU) || (leaf == 0x19U) || (leaf == 0x80000001U) || (leaf == 0x2U)); + return ((leaf == 0x1U) || (leaf == 0xbU) || (leaf == 0xdU) || (leaf == 0x19U) || (leaf == 0x80000001U) || (leaf == 0x2U) || (leaf == 0x1aU)); } int32_t set_vcpuid_entries(struct acrn_vm *vm)