x86: Fix allowed IA32_VMX_VMCS_ENUM values
PATCH 1/1 x86: Fix allowed IA32_VMX_VMCS_ENUM values
From: Nadav Amit <[email protected]>
According to the SDM, IA32_VMX_VMCS_ENUM indicates to software the highest index value used in the encoding of any field supported by the
processor: Bits 9:1 contain the highest index value used for any VMCS encoding.
--- x86/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
x86/vmx.c +1 -1
@@ -1470,7 +1470,7 @@ static void test_vmx_caps(void) val =rdmsr (MSR_IA32_VMX_VMCS_ENUM );report ("MSR_IA32_VMX_VMCS_ENUM" , - (val &0x3e ) >=0x2a && + (val &0x1fe ) >=0x2a && (val &0xfffffffffffffc01Ull ) ==0 ); val =rdmsr (MSR_IA32_VMX_EPT_VPID_CAP );
Signature · 1 line
2.17.1
Quoted 9 lines · On Mon, Apr 15, 2019 at 03:21:04PM -0700, [email protected] wrote:
From: Nadav Amit <[email protected]>
According to the SDM,
IA32_VMX_VMCS_ENUMindicates to software the highest index value used in the encoding of any field supported by the
processor: Bits 9:1 contain the highest index value used for any VMCS encoding.Signed-off-by Nadav Amit <[email protected]>---
Quoted 18 lines · On 16/04/19 00:21, [email protected] wrote:
From: Nadav Amit <[email protected]>
According to the SDM,
IA32_VMX_VMCS_ENUMindicates to software the highest index value used in the encoding of any field supported by the
processor: Bits 9:1 contain the highest index value used for any VMCS encoding.Signed-off-by Nadav Amit <[email protected]>--- x86/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)x86/vmx.c +0
-0
x86/vmx.c static void test_vmx_caps(void) · line 1476
Quoted 8 lines
x86/vmx.c +1
-1@@ -1470,7 +1470,7 @@ static void test_vmx_caps(void) val =rdmsr (MSR_IA32_VMX_VMCS_ENUM );report ("MSR_IA32_VMX_VMCS_ENUM" , - (val &0x3e ) >=0x2a && + (val &0x1fe ) >=0x2a && (val &0xfffffffffffffc01Ull ) ==0 ); val =rdmsr (MSR_IA32_VMX_EPT_VPID_CAP );
Queued, thanks.
Paolo