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/kvm/powerpc.c | |
parent | 8e8651783ff2458f31098be7c2abacf2fcab054a (diff) | |
download | lwn-df1bfa25d81f9451715ccbbb67551e0f792ceec8.tar.gz lwn-df1bfa25d81f9451715ccbbb67551e0f792ceec8.zip |
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/kvm/powerpc.c')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 496d7a5200dc..028891c0baff 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c @@ -66,7 +66,7 @@ int kvmppc_kvm_pv(struct kvm_vcpu *vcpu) vcpu->arch.magic_page_pa = param1; vcpu->arch.magic_page_ea = param2; - r2 = 0; + r2 = KVM_MAGIC_FEAT_SR; r = HC_EV_SUCCESS; break; |