summaryrefslogtreecommitdiffstats
path: root/mm/init-mm.c
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2016-12-16 16:57:00 +0100
committerJames Hogan <james.hogan@imgtec.com>2017-02-03 16:20:55 +0100
commita31b50d741bd85a127d5ef2c21c0788041bc41a9 (patch)
treee67fc587b0eb2d038b20f3b9b67be6a5bdf868b5 /mm/init-mm.c
parentKVM: MIPS/TLB: Generalise host TLB invalidate to kernel ASID (diff)
downloadlinux-a31b50d741bd85a127d5ef2c21c0788041bc41a9.tar.xz
linux-a31b50d741bd85a127d5ef2c21c0788041bc41a9.zip
KVM: MIPS/MMU: Invalidate GVA PTs on ASID changes
Implement invalidation of large ranges of virtual addresses from GVA page tables in response to a guest ASID change (immediately for guest kernel page table, lazily for guest user page table). We iterate through a range of page tables invalidating entries and freeing fully invalidated tables. To minimise overhead the exact ranges invalidated depends on the flags argument to kvm_mips_flush_gva_pt(), which also allows it to be used in future KVM_CAP_SYNC_MMU patches in response to GPA changes, which unlike guest TLB mapping changes affects guest KSeg0 mappings. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: "Radim Krčmář" <rkrcmar@redhat.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Cc: kvm@vger.kernel.org
Diffstat (limited to 'mm/init-mm.c')
0 files changed, 0 insertions, 0 deletions