From 67c06564f7534e6ed5d842bbe53842d7e1fb2a71 Mon Sep 17 00:00:00 2001 From: Liang Yi Date: Mon, 9 Aug 2021 14:27:47 +0800 Subject: [PATCH] hv: mask off LA57 in cpuid Mask off support of 57-bit linear addresses and five-level paging. ICX-D has LA57 but ACRN doesn't support 5-level paging yet. Tracked-On: #6357 Signed-off-by: Liang Yi Signed-off-by: Li, Fei1 --- hypervisor/arch/x86/guest/vcpuid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hypervisor/arch/x86/guest/vcpuid.c b/hypervisor/arch/x86/guest/vcpuid.c index 1c6eb615d..bc19d0481 100644 --- a/hypervisor/arch/x86/guest/vcpuid.c +++ b/hypervisor/arch/x86/guest/vcpuid.c @@ -121,6 +121,9 @@ static void init_vcpuid_entry(uint32_t leaf, uint32_t subleaf, entry->ebx &= ~(CPUID_EBX_PQM | CPUID_EBX_PQE); + /* mask LA57 */ + entry->ecx &= ~CPUID_ECX_LA57; + /* mask SGX and SGX_LC */ entry->ebx &= ~CPUID_EBX_SGX; entry->ecx &= ~CPUID_ECX_SGX_LC;