summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/kvm_para.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-07-29 12:47:50 (GMT)
committerAvi Kivity <avi@redhat.com>2010-10-24 08:50:46 (GMT)
commitfad93fe1d452960eb838109222cc949eb77f2859 (patch)
tree927f014698698a27ad6aad5f4132dd3b42879793 /arch/powerpc/include/asm/kvm_para.h
parent5c6cedf488a1144ac4f683f3ea1a642533d1dcd2 (diff)
downloadlinux-fsl-qoriq-fad93fe1d452960eb838109222cc949eb77f2859.tar.xz
KVM: PPC: Add PV guest scratch registers
While running in hooked code we need to store register contents out because we must not clobber any registers. So let's add some fields to the shared page we can just happily write to. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_para.h')
-rw-r--r--arch/powerpc/include/asm/kvm_para.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_para.h b/arch/powerpc/include/asm/kvm_para.h
index 4577e7b..5be00c9 100644
--- a/arch/powerpc/include/asm/kvm_para.h
+++ b/arch/powerpc/include/asm/kvm_para.h
@@ -24,6 +24,9 @@
#include <linux/of.h>
struct kvm_vcpu_arch_shared {
+ __u64 scratch1;
+ __u64 scratch2;
+ __u64 scratch3;
__u64 critical; /* Guest may not get interrupts if == r1 */
__u64 sprg0;
__u64 sprg1;