]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
MIPS: Add some missing guest CP0 accessors & defs
authorJames Hogan <james.hogan@imgtec.com>
Tue, 14 Mar 2017 10:15:12 +0000 (10:15 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Tue, 28 Mar 2017 13:49:26 +0000 (14:49 +0100)
commiteb0bab386622ecd5626462dc9eeeab082ac8b717
treeada6da325f3e4d58c7e7a1e11d7ad915e541c429
parenta929bdc52be658fd622c2d0f9fdf1d333aea34fd
MIPS: Add some missing guest CP0 accessors & defs

Add some missing guest accessors and register field definitions for KVM
for MIPS VZ to make use of.

Guest CP0_LLAddr register accessors and definitions for the LLB field
allow KVM to clear the guest LLB to cancel in-progress LL/SC atomics on
restore, and to emulate accesses by the guest to the CP0_LLAddr
register.

Bitwise modifiers and definitions for the guest CP0_Wired and
CP0_Config1 registers allow KVM to modify fields within the CP0_Wired
and CP0_Config1 registers.

Finally a definition for the CP0_Config5.SBRI bit allows KVM to
initialise and allow modification of the guest version of the SBRI bit.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: 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
arch/mips/include/asm/mipsregs.h