On 22.11.2011, at 10:55, Liu Yu <yu.liu@xxxxxxxxxxxxx> wrote: > Previously, only primary vcpu get enabled paravirt. Please fix it the other way around. Thd hypercall is CPU local and should stay that way, so we have to call it on each vcpu inside the guest. Alex > > Signed-off-by: Liu Yu <yu.liu@xxxxxxxxxxxxx> > --- > arch/powerpc/kvm/powerpc.c | 9 +++++++-- > 1 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c > index 73508e7..a727064 100644 > --- a/arch/powerpc/kvm/powerpc.c > +++ b/arch/powerpc/kvm/powerpc.c > @@ -78,8 +78,13 @@ int kvmppc_kvm_pv(struct kvm_vcpu *vcpu) > switch (nr) { > case HC_VENDOR_KVM | KVM_HC_PPC_MAP_MAGIC_PAGE: > { > - vcpu->arch.magic_page_pa = param1; > - vcpu->arch.magic_page_ea = param2; > + struct kvm *kvm = vcpu->kvm; > + struct kvm_vcpu *v; > + > + kvm_for_each_vcpu(r, v, kvm) { > + v->arch.magic_page_pa = param1; > + v->arch.magic_page_ea = param2; > + } > > r2 = KVM_MAGIC_FEAT_SR | KVM_MAGIC_FEAT_MAS0_TO_SPRG7; > > -- > 1.6.4 > > -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html