On Thursday 08 January 2009 05:39:32 Marcelo Tosatti wrote:
> On Wed, Jan 07, 2009 at 06:42:41PM +0800, Sheng Yang wrote:
> > Using kvm_set_irq to handle all interrupt injection.
> >
> > Signed-off-by: Sheng Yang
> > ---
> > include/linux/kvm_host.h |2 +-
> > virt/kvm/irq_comm.c | 79
On Wed, Jan 07, 2009 at 06:42:41PM +0800, Sheng Yang wrote:
> Using kvm_set_irq to handle all interrupt injection.
>
> Signed-off-by: Sheng Yang
> ---
> include/linux/kvm_host.h |2 +-
> virt/kvm/irq_comm.c | 79 +++--
> virt/kvm/kvm_main.c
Using kvm_set_irq to handle all interrupt injection.
Signed-off-by: Sheng Yang
---
include/linux/kvm_host.h |2 +-
virt/kvm/irq_comm.c | 79 +++--
virt/kvm/kvm_main.c | 79 +++---
3 files changed, 8
On Tuesday 30 December 2008 19:07:52 Avi Kivity wrote:
> Sheng Yang wrote:
> >>> + mutex_lock(&kvm->gsi_msg_lock);
> >>
> >> The lock is already taken here?
> >
> > Um? For gsi_msg_lock?
>
> Sorry, my mistake. Will have to get used to all those locks.
>
> Is there a way to avoid the lock? We're s
Sheng Yang wrote:
+ mutex_lock(&kvm->gsi_msg_lock);
The lock is already taken here?
Um? For gsi_msg_lock?
Sorry, my mistake. Will have to get used to all those locks.
Is there a way to avoid the lock? We're starting to complicate things...
This looks very messy. Wo
On Tuesday 30 December 2008 18:48:42 Avi Kivity wrote:
> Sheng Yang wrote:
> > Using kvm_set_irq to handle all interrupt injection.
> >
> >
> > /* This should be called with the kvm->lock mutex held */
> > -void kvm_set_irq(struct kvm *kvm, int irq_source_id, int irq, int level)
> > +void kvm_set_
Sheng Yang wrote:
Using kvm_set_irq to handle all interrupt injection.
/* This should be called with the kvm->lock mutex held */
-void kvm_set_irq(struct kvm *kvm, int irq_source_id, int irq, int level)
+void kvm_set_irq(struct kvm *kvm, int irq_source_id, u32 gsi, int level)
{
- unsi
Using kvm_set_irq to handle all interrupt injection.
Signed-off-by: Sheng Yang
---
include/linux/kvm_host.h |2 +-
virt/kvm/irq_comm.c | 98 +++---
virt/kvm/kvm_main.c | 77 +++-
3 files changed, 90 inserti