diff options
author | Alexander Graf <agraf@suse.de> | 2010-04-20 02:49:51 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 12:19:03 +0300 |
commit | 6355644190f67326f5a16d0269c3e612fcfd6889 (patch) | |
tree | e1d6ce169651fac7d80eb22c1b95a13995d22893 /arch | |
parent | ac21467182e562a71d8b4e098ea054e42700c0ff (diff) | |
download | linux-3.10-6355644190f67326f5a16d0269c3e612fcfd6889.tar.gz linux-3.10-6355644190f67326f5a16d0269c3e612fcfd6889.tar.bz2 linux-3.10-6355644190f67326f5a16d0269c3e612fcfd6889.zip |
KVM: PPC: Set VSID_PR also for Book3S_64
Book3S_64 didn't set VSID_PR when we're in PR=1. This lead to pretty bad
behavior when searching for the shadow segment, as part of the code relied
on VSID_PR being set.
This patch fixes booting Book3S_64 guests.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kvm/book3s_64_mmu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s_64_mmu.c b/arch/powerpc/kvm/book3s_64_mmu.c index 612de6e4d74..4025ea26b3c 100644 --- a/arch/powerpc/kvm/book3s_64_mmu.c +++ b/arch/powerpc/kvm/book3s_64_mmu.c @@ -473,6 +473,9 @@ static int kvmppc_mmu_book3s_64_esid_to_vsid(struct kvm_vcpu *vcpu, ulong esid, break; } + if (vcpu->arch.msr & MSR_PR) + *vsid |= VSID_PR; + return 0; } |