]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Context-switch new POWER8 SPRs
authorMichael Neuling <mikey@neuling.org>
Wed, 8 Jan 2014 10:25:21 +0000 (21:25 +1100)
committerAlexander Graf <agraf@suse.de>
Mon, 27 Jan 2014 15:01:00 +0000 (16:01 +0100)
commitb92cb2bde0df4277dcb591c29e30b83b1769a1ea
tree739892c411d395a7e4181bc2dc58c54d851d595f
parentd1d60db0dc7d8fe00b236fca963d5e68911cad53
KVM: PPC: Book3S HV: Context-switch new POWER8 SPRs

This adds fields to the struct kvm_vcpu_arch to store the new
guest-accessible SPRs on POWER8, adds code to the get/set_one_reg
functions to allow userspace to access this state, and adds code to
the guest entry and exit to context-switch these SPRs between host
and guest.

Note that DPDES (Directed Privileged Doorbell Exception State) is
shared between threads on a core; hence we store it in struct
kvmppc_vcore and have the master thread save and restore it.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_host.h
arch/powerpc/include/asm/reg.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