|
@@ -3687,6 +3687,7 @@ int kvm_init_shadow_mmu(struct kvm_vcpu *vcpu, struct kvm_mmu *context)
|
|
|
else
|
|
|
r = paging32_init_context(vcpu, context);
|
|
|
|
|
|
+ vcpu->arch.mmu.base_role.nxe = is_nx(vcpu);
|
|
|
vcpu->arch.mmu.base_role.cr4_pae = !!is_pae(vcpu);
|
|
|
vcpu->arch.mmu.base_role.cr0_wp = is_write_protection(vcpu);
|
|
|
vcpu->arch.mmu.base_role.smep_andnot_wp
|