Skip to content

Commit 8053f92

Browse files
Sean Christophersonbonzini
authored andcommitted
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>
1 parent a102a67 commit 8053f92

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ union kvm_mmu_extended_role {
300300
unsigned int cr4_pke:1;
301301
unsigned int cr4_smap:1;
302302
unsigned int cr4_smep:1;
303-
unsigned int cr4_la57:1;
304303
unsigned int maxphyaddr:6;
305304
};
306305
};

arch/x86/kvm/mmu/mmu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4873,7 +4873,6 @@ static union kvm_mmu_extended_role kvm_calc_mmu_role_ext(struct kvm_vcpu *vcpu)
48734873
ext.cr4_smap = !!kvm_read_cr4_bits(vcpu, X86_CR4_SMAP);
48744874
ext.cr4_pse = !!is_pse(vcpu);
48754875
ext.cr4_pke = !!kvm_read_cr4_bits(vcpu, X86_CR4_PKE);
4876-
ext.cr4_la57 = !!kvm_read_cr4_bits(vcpu, X86_CR4_LA57);
48774876
ext.maxphyaddr = cpuid_maxphyaddr(vcpu);
48784877

48794878
ext.valid = 1;

0 commit comments

Comments
 (0)