diff options
author | Alexander Graf <agraf@suse.de> | 2010-08-03 02:29:27 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:52:11 +0200 |
commit | df1bfa25d81f9451715ccbbb67551e0f792ceec8 (patch) | |
tree | c0a214d5acd8f152e53b11f5972d9c19fe413641 /arch/powerpc/include/asm/kvm_para.h | |
parent | 8e8651783ff2458f31098be7c2abacf2fcab054a (diff) | |
download | op-kernel-dev-df1bfa25d81f9451715ccbbb67551e0f792ceec8.zip op-kernel-dev-df1bfa25d81f9451715ccbbb67551e0f792ceec8.tar.gz |
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.h | 1 |
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!" */ |