diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index a85797d1858d9e652be2fbd834b0679a31778fb0..2c07fa96ae1f4173a9927e2e8a24415f68717450 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -9985,6 +9985,7 @@ int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) fx_init(vcpu); vcpu->arch.maxphyaddr = cpuid_query_maxphyaddr(vcpu); + vcpu->arch.cr3_lm_rsvd_bits = rsvd_bits(cpuid_maxphyaddr(vcpu), 63); vcpu->arch.pat = MSR_IA32_CR_PAT_DEFAULT;