Skip to content

Commit a5c870d

Browse files
Marc Zyngieroupton
authored andcommitted
KVM: arm64: Drop useless struct s2_mmu in __kvm_at_s1e2()
__kvm_at_s1e2() contains the definition of an s2_mmu for the current context, but doesn't make any use of it. Drop it. Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20241023145345.1613824-5-maz@kernel.org Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
1 parent 4ecda4c commit a5c870d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

arch/arm64/kvm/at.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -992,12 +992,9 @@ void __kvm_at_s1e2(struct kvm_vcpu *vcpu, u32 op, u64 vaddr)
992992
* switching context behind everybody's back, disable interrupts...
993993
*/
994994
scoped_guard(write_lock_irqsave, &vcpu->kvm->mmu_lock) {
995-
struct kvm_s2_mmu *mmu;
996995
u64 val, hcr;
997996
bool fail;
998997

999-
mmu = &vcpu->kvm->arch.mmu;
1000-
1001998
val = hcr = read_sysreg(hcr_el2);
1002999
val &= ~HCR_TGE;
10031000
val |= HCR_VM;

0 commit comments

Comments
 (0)