Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1
+1
arch/powerpc/kvm/44x.c
··· 83 83 vcpu_44x->shadow_refs[i].gtlb_index = -1; 84 84 85 85 vcpu->arch.cpu_type = KVM_CPU_440; 86 + vcpu->arch.pvr = mfspr(SPRN_PVR); 86 87 87 88 return 0; 88 89 }