mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 18:44:44 +08:00
KVM: x86/mmu: Drop kvm_mmu_extended_role.cr4_la57 hack
Drop kvm_mmu_extended_role.cr4_la57 now that mmu_role doesn't mask off level, which already incorporates the guest's CR4.LA57 for a shadow MMU by querying is_la57_mode(). Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
a102a674e4
commit
8053f924ca
@ -300,7 +300,6 @@ union kvm_mmu_extended_role {
|
|||||||
unsigned int cr4_pke:1;
|
unsigned int cr4_pke:1;
|
||||||
unsigned int cr4_smap:1;
|
unsigned int cr4_smap:1;
|
||||||
unsigned int cr4_smep:1;
|
unsigned int cr4_smep:1;
|
||||||
unsigned int cr4_la57:1;
|
|
||||||
unsigned int maxphyaddr:6;
|
unsigned int maxphyaddr:6;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -4873,7 +4873,6 @@ static union kvm_mmu_extended_role kvm_calc_mmu_role_ext(struct kvm_vcpu *vcpu)
|
|||||||
ext.cr4_smap = !!kvm_read_cr4_bits(vcpu, X86_CR4_SMAP);
|
ext.cr4_smap = !!kvm_read_cr4_bits(vcpu, X86_CR4_SMAP);
|
||||||
ext.cr4_pse = !!is_pse(vcpu);
|
ext.cr4_pse = !!is_pse(vcpu);
|
||||||
ext.cr4_pke = !!kvm_read_cr4_bits(vcpu, X86_CR4_PKE);
|
ext.cr4_pke = !!kvm_read_cr4_bits(vcpu, X86_CR4_PKE);
|
||||||
ext.cr4_la57 = !!kvm_read_cr4_bits(vcpu, X86_CR4_LA57);
|
|
||||||
ext.maxphyaddr = cpuid_maxphyaddr(vcpu);
|
ext.maxphyaddr = cpuid_maxphyaddr(vcpu);
|
||||||
|
|
||||||
ext.valid = 1;
|
ext.valid = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user