Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 491dd5b8 authored by Alexander Graf's avatar Alexander Graf
Browse files

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: default avatarAlexander Graf <agraf@suse.de>
parent 6df8d3fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
}