Skip to content

Commit c6b177a

Browse files
Qiangcybonzini
authored andcommitted
KVM: nVMX: Fix the update value of nested load IA32_PERF_GLOBAL_CTRL control
A minor fix for the update of VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL field in exit_ctls_high. Fixes: 03a8871 ("KVM: nVMX: Expose load IA32_PERF_GLOBAL_CTRL VM-{Entry,Exit} control") Signed-off-by: Chenyi Qiang <[email protected]> Reviewed-by: Xiaoyao Li <[email protected]> Message-Id: <[email protected]> Reviewed-by: Jim Mattson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent f658866 commit c6b177a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/vmx/nested.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4676,7 +4676,7 @@ void nested_vmx_pmu_entry_exit_ctls_update(struct kvm_vcpu *vcpu)
46764676
vmx->nested.msrs.entry_ctls_high &=
46774677
~VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL;
46784678
vmx->nested.msrs.exit_ctls_high &=
4679-
~VM_ENTRY_LOAD_IA32_PERF_GLOBAL_CTRL;
4679+
~VM_EXIT_LOAD_IA32_PERF_GLOBAL_CTRL;
46804680
}
46814681
}
46824682

0 commit comments

Comments
 (0)