mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Nested VMX: Clear bit 31 of IA32_VMX_BASIC MSR
The bit 31 of revision_id will set to 1 if vmcs shadowing enabled. And according intel SDM, the bit 31 of IA32_VMX_BASIC MSR is always 0. So we cannot set low 32 bit of IA32_VMX_BASIC to revision_id directly. Must clear the bit 31 to 0. Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
ef0ea8c2bb
commit
f3a4eb9253
1 file changed
+1
-1
@@ -1826,7 +1826,7 @@ int nvmx_msr_read_intercept(unsigned int msr, u64 *msr_content)
|
||||
switch (msr) {
|
||||
case MSR_IA32_VMX_BASIC:
|
||||
data = (host_data & (~0ul << 32)) |
|
||||
((v->arch.hvm_vmx.vmcs)->vmcs_revision_id);
|
||||
(v->arch.hvm_vmx.vmcs->vmcs_revision_id & 0x7fffffff);
|
||||
break;
|
||||
case MSR_IA32_VMX_PINBASED_CTLS:
|
||||
case MSR_IA32_VMX_TRUE_PINBASED_CTLS:
|
||||
|
||||