lkml.org 
[lkml]   [2010]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 23/38] KVM: PPC: Add PVR/PIR init for E500
    Date
    From: Liu Yu <yu.liu@freescale.com>

    commit 513579e3a391a3874c478a8493080822069976e8 change the way
    we emulate PVR/PIR,
    which left PVR/PIR uninitialized on E500, and make guest puzzled.

    Signed-off-by: Liu Yu <yu.liu@freescale.com>
    Acked-by: Alexander Graf <agraf@suse.de>
    Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
    ---
    arch/powerpc/kvm/e500.c | 6 ++++++
    1 files changed, 6 insertions(+), 0 deletions(-)

    diff --git a/arch/powerpc/kvm/e500.c b/arch/powerpc/kvm/e500.c
    index 64949ee..efa1198 100644
    --- a/arch/powerpc/kvm/e500.c
    +++ b/arch/powerpc/kvm/e500.c
    @@ -60,6 +60,12 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu)

    kvmppc_e500_tlb_setup(vcpu_e500);

    + /* Registers init */
    + vcpu->arch.pvr = mfspr(SPRN_PVR);
    +
    + /* Since booke kvm only support one core, update all vcpus' PIR to 0 */
    + vcpu->vcpu_id = 0;
    +
    return 0;
    }

    --
    1.6.5.3


    \
     
     \ /
      Last update: 2010-02-16 11:43    [W:6.558 / U:0.804 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site