From: Liu Yu Date: Wed, 20 Jan 2010 08:03:43 +0000 Subject: [PATCH 2/3] kvmppc/e500: Add PVR/PIR init for E500 Message-Id: <1263974624-25053-3-git-send-email-yu.liu@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kvm-ppc@vger.kernel.org Signed-off-by: Liu Yu --- arch/powerpc/kvm/e500.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kvm/e500.c b/arch/powerpc/kvm/e500.c index 64949ee..fd3683d 100644 --- a/arch/powerpc/kvm/e500.c +++ b/arch/powerpc/kvm/e500.c @@ -60,6 +60,10 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) kvmppc_e500_tlb_setup(vcpu_e500); + /* Registers init */ + vcpu->arch.pvr = mfspr(SPRN_PVR); + vcpu->vcpu_id = mfspr(SPRN_PIR); + return 0; } -- 1.6.4