Skip to content
Commit 334006b7 authored by Xiaoyao Li's avatar Xiaoyao Li Committed by Sean Christopherson
Browse files

KVM: VMX: Use kvm_read_cr4() to get cr4 value



Directly use vcpu->arch.cr4 is not recommended since it gets stale value
if the cr4 is not available.

Use kvm_read_cr4() instead to ensure correct value.

Signed-off-by: default avatarXiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20230410125017.1305238-2-xiaoyao.li@intel.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent b9846a69
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment