Message ID | 1325639448-9494-7-git-send-email-agraf@suse.de |
---|---|
State | New, archived |
Headers | show |
On 01/04/2012 03:10 AM, Alexander Graf wrote: > From: Scott Wood <scottwood@freescale.com> > > The hardcoded behavior prevents proper SMP support. > > QEMU shall specify the vcpu's PIR as the vcpu id. s/QEMU/userspace/
On 08.01.2012, at 14:14, Avi Kivity wrote: > On 01/04/2012 03:10 AM, Alexander Graf wrote: >> From: Scott Wood <scottwood@freescale.com> >> >> The hardcoded behavior prevents proper SMP support. >> >> QEMU shall specify the vcpu's PIR as the vcpu id. > > s/QEMU/userspace/ This is a pull request, not a review request. While I'm open to suggestions on ABI corrections, I'd rather not go in and randomly change other people's commit descriptions :). Alex -- To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 01/08/2012 04:53 PM, Alexander Graf wrote: > On 08.01.2012, at 14:14, Avi Kivity wrote: > > > On 01/04/2012 03:10 AM, Alexander Graf wrote: > >> From: Scott Wood <scottwood@freescale.com> > >> > >> The hardcoded behavior prevents proper SMP support. > >> > >> QEMU shall specify the vcpu's PIR as the vcpu id. > > > > s/QEMU/userspace/ > > This is a pull request, not a review request. You get it for free, when you ask me to pull. > While I'm open to suggestions on ABI corrections, I'd rather not go in and randomly change other people's commit descriptions :). If it's the only change, okay, otherwise please do change it. And keep it in mind for the future.
diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm/booke.c index bb6c988..b642200 100644 --- a/arch/powerpc/kvm/booke.c +++ b/arch/powerpc/kvm/booke.c @@ -761,7 +761,7 @@ static void get_sregs_arch206(struct kvm_vcpu *vcpu, { sregs->u.e.features |= KVM_SREGS_E_ARCH206; - sregs->u.e.pir = 0; + sregs->u.e.pir = vcpu->vcpu_id; sregs->u.e.mcsrr0 = vcpu->arch.mcsrr0; sregs->u.e.mcsrr1 = vcpu->arch.mcsrr1; sregs->u.e.decar = vcpu->arch.decar; @@ -774,7 +774,7 @@ static int set_sregs_arch206(struct kvm_vcpu *vcpu, if (!(sregs->u.e.features & KVM_SREGS_E_ARCH206)) return 0; - if (sregs->u.e.pir != 0) + if (sregs->u.e.pir != vcpu->vcpu_id) return -EINVAL; vcpu->arch.mcsrr0 = sregs->u.e.mcsrr0; diff --git a/arch/powerpc/kvm/e500.c b/arch/powerpc/kvm/e500.c index f17d7e7..ac3c4bf 100644 --- a/arch/powerpc/kvm/e500.c +++ b/arch/powerpc/kvm/e500.c @@ -71,9 +71,6 @@ int kvmppc_core_vcpu_setup(struct kvm_vcpu *vcpu) vcpu->arch.pvr = mfspr(SPRN_PVR); vcpu_e500->svr = mfspr(SPRN_SVR); - /* Since booke kvm only support one core, update all vcpus' PIR to 0 */ - vcpu->vcpu_id = 0; - vcpu->arch.cpu_type = KVM_CPU_E500V2; return 0;