commit | 491dd5b8a4926393308172da80c73faf242a4057 | [log] [tgz] |
---|---|---|
author | Alexander Graf <agraf@suse.de> | Mon Aug 13 14:40:29 2012 +0200 |
committer | Alexander Graf <agraf@suse.de> | Fri Oct 05 23:38:47 2012 +0200 |
tree | 6bc81a63a2b93225c9b87c23c87f885e1bd327cb | |
parent | 6df8d3fc58dde84fc82a9ec2581440e54dfd3d14 [diff] [blame] |
KVM: PPC: 44x: Initialize PVR We need to make sure that vcpu->arch.pvr is initialized to a sane value, so let's just take the host PVR. Signed-off-by: Alexander Graf <agraf@suse.de>
diff --git a/arch/powerpc/kvm/44x.c b/arch/powerpc/kvm/44x.c index 50e7dbc..3d7fd21 100644 --- a/arch/powerpc/kvm/44x.c +++ b/arch/powerpc/kvm/44x.c
@@ -83,6 +83,7 @@ vcpu_44x->shadow_refs[i].gtlb_index = -1; vcpu->arch.cpu_type = KVM_CPU_440; + vcpu->arch.pvr = mfspr(SPRN_PVR); return 0; }