OSDN Git Service

KVM: PPC: Book3S HV: Move HPT guest TLB flushing to C code
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 29 Apr 2019 09:00:40 +0000 (19:00 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 30 Apr 2019 09:32:01 +0000 (19:32 +1000)
commit2940ba0c48bf18e15e85cbb0f26c0e88e1211587
tree314b4cb4da889bfeb6c653a534bf2afe63689e1a
parent7ae9bda7edf3dac56c9abaeec264ac08d399a1ff
KVM: PPC: Book3S HV: Move HPT guest TLB flushing to C code

This replaces assembler code in book3s_hv_rmhandlers.S that checks
the kvm->arch.need_tlb_flush cpumask and optionally does a TLB flush
with C code in book3s_hv_builtin.c.  Note that unlike the radix
version, the hash version doesn't do an explicit ERAT invalidation
because we will invalidate and load up the SLB before entering the
guest, and that will invalidate the ERAT.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/include/asm/kvm_ppc.h
arch/powerpc/kvm/book3s_hv_builtin.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S