We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c77008 commit 60d90e1Copy full SHA for 60d90e1
arch/arm64/kvm/hyp/pgtable.c
@@ -523,7 +523,7 @@ static int hyp_unmap_walker(const struct kvm_pgtable_visit_ctx *ctx,
523
524
kvm_clear_pte(ctx->ptep);
525
dsb(ishst);
526
- __tlbi_level(vae2is, __TLBI_VADDR(ctx->addr, 0), ctx->level);
+ __tlbi_level(vae2is, __TLBI_VADDR(ctx->addr, 0), 0);
527
} else {
528
if (ctx->end - ctx->addr < granule)
529
return -EINVAL;
@@ -861,10 +861,12 @@ static void stage2_unmap_put_pte(const struct kvm_pgtable_visit_ctx *ctx,
861
if (kvm_pte_valid(ctx->old)) {
862
863
864
- if (!stage2_unmap_defer_tlb_flush(pgt) ||
865
- kvm_pte_table(ctx->old, ctx->level)) {
866
- kvm_call_hyp(__kvm_tlb_flush_vmid_ipa, mmu,
867
- ctx->addr, ctx->level);
+ if (kvm_pte_table(ctx->old, ctx->level)) {
+ kvm_call_hyp(__kvm_tlb_flush_vmid_ipa, mmu, ctx->addr,
+ 0);
+ } else if (!stage2_unmap_defer_tlb_flush(pgt)) {
868
869
+ ctx->level);
870
}
871
872
0 commit comments