Re: [PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-20 Thread Alexander Graf
On 20.02.2012, at 16:39, Scott Wood wrote: > On Mon, Feb 20, 2012 at 12:49:46PM +0100, Alexander Graf wrote: >> >> On 17.02.2012, at 22:55, Scott Wood wrote: >> >>> On 02/17/2012 11:13 AM, Alexander Graf wrote: case BOOKE_IRQPRIO_EXTERNAL: +#ifdef CONFIG_KVM_E500MC + case BOO

Re: [PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-20 Thread Scott Wood
On Mon, Feb 20, 2012 at 12:49:46PM +0100, Alexander Graf wrote: > > On 17.02.2012, at 22:55, Scott Wood wrote: > > > On 02/17/2012 11:13 AM, Alexander Graf wrote: > >>case BOOKE_IRQPRIO_EXTERNAL: > >> +#ifdef CONFIG_KVM_E500MC > >> + case BOOKE_IRQPRIO_DBELL: > >> +#endif > > > > This isn't

Re: [PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-20 Thread Alexander Graf
On 17.02.2012, at 22:55, Scott Wood wrote: > On 02/17/2012 11:13 AM, Alexander Graf wrote: >> When one vcpu wants to kick another, it can issue a special IPI instruction >> called msgsnd. This patch emulates this instruction, its clearing counterpart >> and the infrastructure required to actually

Re: [PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-17 Thread Scott Wood
On 02/17/2012 03:55 PM, Scott Wood wrote: > Should this be a kvm_make_request instead (with a separate > pending_doorbell bool in vcpu that msgclr can act on), considering > earlier discussion of phasing out atomics on pending_exceptions, in > favor of requests? Ignore the bit about msgclr -- it a

Re: [PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-17 Thread Scott Wood
On 02/17/2012 11:13 AM, Alexander Graf wrote: > When one vcpu wants to kick another, it can issue a special IPI instruction > called msgsnd. This patch emulates this instruction, its clearing counterpart > and the infrastructure required to actually trigger that interrupt inside > a guest vcpu. >

[PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-17 Thread Alexander Graf
When one vcpu wants to kick another, it can issue a special IPI instruction called msgsnd. This patch emulates this instruction, its clearing counterpart and the infrastructure required to actually trigger that interrupt inside a guest vcpu. With this patch, SMP guests on e500mc work. Signed-off-

[PATCH 16/30] KVM: PPC: e500mc: Add doorbell emulation support

2012-02-17 Thread Alexander Graf
When one vcpu wants to kick another, it can issue a special IPI instruction called msgsnd. This patch emulates this instruction, its clearing counterpart and the infrastructure required to actually trigger that interrupt inside a guest vcpu. With this patch, SMP guests on e500mc work. Signed-off-