summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/kvm_para.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-08-03 00:29:27 (GMT)
committerAvi Kivity <avi@redhat.com>2010-10-24 08:52:11 (GMT)
commitdf1bfa25d81f9451715ccbbb67551e0f792ceec8 (patch)
treec0a214d5acd8f152e53b11f5972d9c19fe413641 /arch/powerpc/include/asm/kvm_para.h
parent8e8651783ff2458f31098be7c2abacf2fcab054a (diff)
downloadlinux-fsl-qoriq-df1bfa25d81f9451715ccbbb67551e0f792ceec8.tar.xz
KVM: PPC: Put segment registers in shared page
Now that the actual mtsr doesn't do anything anymore, we can move the sr contents over to the shared page, so a guest can directly read and write its sr contents from guest context. Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_para.h')
-rw-r--r--arch/powerpc/include/asm/kvm_para.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kvm_para.h b/arch/powerpc/include/asm/kvm_para.h
index 43c1b22..d79fd09 100644
--- a/arch/powerpc/include/asm/kvm_para.h
+++ b/arch/powerpc/include/asm/kvm_para.h
@@ -38,6 +38,7 @@ struct kvm_vcpu_arch_shared {
__u64 msr;
__u32 dsisr;
__u32 int_pending; /* Tells the guest if we have an interrupt */
+ __u32 sr[16];
};
#define KVM_SC_MAGIC_R0 0x4b564d21 /* "KVM!" */