diff options
author | James Hogan <james.hogan@imgtec.com> | 2016-11-28 16:38:01 +0000 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2017-02-03 15:19:02 +0000 |
commit | 7170bdc777556dad87f92e6a73a6cc557bf3290e (patch) | |
tree | 1a5cfc93d2ee14cb099d872f5ebe00cdc0c65211 /arch/mips/mm | |
parent | 722b45443146f425453525d3c2270ff2733f5dc4 (diff) | |
download | linux-stable-7170bdc777556dad87f92e6a73a6cc557bf3290e.tar.gz linux-stable-7170bdc777556dad87f92e6a73a6cc557bf3290e.tar.bz2 linux-stable-7170bdc777556dad87f92e6a73a6cc557bf3290e.zip |
MIPS: Add return errors to protected cache ops
The protected cache ops contain no out of line fixup code to return an
error code in the event of a fault, with the cache op being skipped in
that case. For KVM however we'd like to detect this case as page
faulting will be disabled so it could happen during normal operation if
the GVA page tables were flushed, and need to be handled by the caller.
Add the out-of-line fixup code to load the error value -EFAULT into the
return variable, and adapt the protected cache line functions to pass
the error back to the caller.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Diffstat (limited to 'arch/mips/mm')
0 files changed, 0 insertions, 0 deletions