diff options
author | James Hogan <james.hogan@imgtec.com> | 2016-11-28 23:04:52 +0000 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2017-02-03 15:21:11 +0000 |
commit | 1880afd6057f34586919715e8ffe9c5858f4a326 (patch) | |
tree | 25fff058093cb8d7efddefe0b31558b15c7f3374 /kernel/taskstats.c | |
parent | 91737ea205856c41183c2530fdb6b407ceeb3836 (diff) | |
download | linux-1880afd6057f34586919715e8ffe9c5858f4a326.tar.bz2 |
KVM: MIPS/T&E: Add lockless GVA access helpers
Add helpers to allow for lockless direct access to the GVA space, by
changing the VCPU mode to READING_SHADOW_PAGE_TABLES for the duration of
the access. This allows asynchronous TLB flush requests in future
patches to safely trigger either a TLB flush before the direct GVA space
access, or a delay until the in-progress lockless direct access is
complete.
The kvm_trap_emul_gva_lockless_begin() and
kvm_trap_emul_gva_lockless_end() helpers take care of guarding the
direct GVA accesses, and kvm_trap_emul_gva_fault() tries to handle a
uaccess fault resulting from a flush having taken place.
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 'kernel/taskstats.c')
0 files changed, 0 insertions, 0 deletions