]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Add new POWER9 guest-accessible SPRs
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 18 Nov 2016 02:11:42 +0000 (13:11 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Wed, 23 Nov 2016 22:24:23 +0000 (09:24 +1100)
commitf4aa5cd96567646f35d85d9dd2b3d68796fd395d
tree6147ebf857ac4c8ff7439c0f2d038745ea6763be
parent942f6fbfee114f9a28742101fa1e3350918c14e8
KVM: PPC: Book3S HV: Add new POWER9 guest-accessible SPRs

This adds code to handle two new guest-accessible special-purpose
registers on POWER9: TIDR (thread ID register) and PSSCR (processor
stop status and control register).  They are context-switched
between host and guest, and the guest values can be read and set
via the one_reg interface.

The PSSCR contains some fields which are guest-accessible and some
which are only accessible in hypervisor mode.  We only allow the
guest-accessible fields to be read or set by userspace.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Documentation/virtual/kvm/api.txt
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/uapi/asm/kvm.h
arch/powerpc/kernel/asm-offsets.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_hv_rmhandlers.S