From: Michael Neuling Date: Wed, 8 Jan 2014 10:25:21 +0000 (+1100) Subject: KVM: PPC: Book3S HV: Context-switch new POWER8 SPRs X-Git-Tag: v3.14-rc1~26^2^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b005255e12a311d2c87ea70a7c7b192b2187c22c;p=pandora-kernel.git 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 Signed-off-by: Paul Mackerras Signed-off-by: Alexander Graf --- Reading git-diff-tree failed