OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6df8d3f
)
KVM: PPC: 44x: Initialize PVR
author
Alexander Graf
<agraf@suse.de>
Mon, 13 Aug 2012 12:40:29 +0000
(14:40 +0200)
committer
Alexander Graf
<agraf@suse.de>
Fri, 5 Oct 2012 21:38:47 +0000
(23:38 +0200)
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>
arch/powerpc/kvm/44x.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kvm/44x.c
b/arch/powerpc/kvm/44x.c
index
50e7dbc
..
3d7fd21
100644
(file)
--- a/
arch/powerpc/kvm/44x.c
+++ b/
arch/powerpc/kvm/44x.c
@@
-83,6
+83,7
@@
int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu)
vcpu_44x->shadow_refs[i].gtlb_index = -1;
vcpu->arch.cpu_type = KVM_CPU_440;
+ vcpu->arch.pvr = mfspr(SPRN_PVR);
return 0;
}