-
- Downloads
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>
Showing
- arch/powerpc/include/asm/kvm_host.h 24 additions, 1 deletionarch/powerpc/include/asm/kvm_host.h
- arch/powerpc/include/asm/reg.h 17 additions, 0 deletionsarch/powerpc/include/asm/reg.h
- arch/powerpc/include/uapi/asm/kvm.h 1 addition, 0 deletionsarch/powerpc/include/uapi/asm/kvm.h
- arch/powerpc/kernel/asm-offsets.c 23 additions, 0 deletionsarch/powerpc/kernel/asm-offsets.c
- arch/powerpc/kvm/book3s_hv.c 151 additions, 2 deletionsarch/powerpc/kvm/book3s_hv.c
- arch/powerpc/kvm/book3s_hv_rmhandlers.S 145 additions, 0 deletionsarch/powerpc/kvm/book3s_hv_rmhandlers.S
Loading
Please register or sign in to comment