Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-29 Thread Alex Williamson
On Fri, 2012-06-29 at 09:09 -0600, Alex Williamson wrote: > On Thu, 2012-06-28 at 22:29 +0300, Michael S. Tsirkin wrote: > > On Tue, Jun 26, 2012 at 11:10:08PM -0600, Alex Williamson wrote: > > > diff --git a/Documentation/virtual/kvm/api.txt > > > b/Documentation/virtual/kvm/api.txt > > > index b

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-29 Thread Alex Williamson
On Thu, 2012-06-28 at 22:29 +0300, Michael S. Tsirkin wrote: > On Tue, Jun 26, 2012 at 11:10:08PM -0600, Alex Williamson wrote: > > diff --git a/Documentation/virtual/kvm/api.txt > > b/Documentation/virtual/kvm/api.txt > > index b216709..87a2558 100644 > > --- a/Documentation/virtual/kvm/api.txt >

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-28 Thread Michael S. Tsirkin
On Tue, Jun 26, 2012 at 11:10:08PM -0600, Alex Williamson wrote: > diff --git a/Documentation/virtual/kvm/api.txt > b/Documentation/virtual/kvm/api.txt > index b216709..87a2558 100644 > --- a/Documentation/virtual/kvm/api.txt > +++ b/Documentation/virtual/kvm/api.txt > @@ -1987,6 +1987,30 @@ inter

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-28 Thread Michael S. Tsirkin
On Thu, Jun 28, 2012 at 05:08:04PM +0300, Gleb Natapov wrote: > On Thu, Jun 28, 2012 at 04:11:40PM +0300, Michael S. Tsirkin wrote: > > On Wed, Jun 27, 2012 at 09:55:44PM -0600, Alex Williamson wrote: > > > On Wed, 2012-06-27 at 17:51 +0300, Gleb Natapov wrote: > > > > On Wed, Jun 27, 2012 at 08:29

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-28 Thread Gleb Natapov
On Thu, Jun 28, 2012 at 04:11:40PM +0300, Michael S. Tsirkin wrote: > On Wed, Jun 27, 2012 at 09:55:44PM -0600, Alex Williamson wrote: > > On Wed, 2012-06-27 at 17:51 +0300, Gleb Natapov wrote: > > > On Wed, Jun 27, 2012 at 08:29:04AM -0600, Alex Williamson wrote: > > > > On Wed, 2012-06-27 at 16:5

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-28 Thread Michael S. Tsirkin
On Wed, Jun 27, 2012 at 09:55:44PM -0600, Alex Williamson wrote: > On Wed, 2012-06-27 at 17:51 +0300, Gleb Natapov wrote: > > On Wed, Jun 27, 2012 at 08:29:04AM -0600, Alex Williamson wrote: > > > On Wed, 2012-06-27 at 16:58 +0300, Gleb Natapov wrote: > > > > On Tue, Jun 26, 2012 at 11:10:08PM -060

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-27 Thread Alex Williamson
On Wed, 2012-06-27 at 17:51 +0300, Gleb Natapov wrote: > On Wed, Jun 27, 2012 at 08:29:04AM -0600, Alex Williamson wrote: > > On Wed, 2012-06-27 at 16:58 +0300, Gleb Natapov wrote: > > > On Tue, Jun 26, 2012 at 11:10:08PM -0600, Alex Williamson wrote: > > > > This new ioctl enables an eventfd to be

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-27 Thread Michael S. Tsirkin
On Tue, Jun 26, 2012 at 11:10:08PM -0600, Alex Williamson wrote: > +static void eoifd_event(struct kvm_irq_ack_notifier *notifier) > +{ > + struct _eoifd *eoifd; > + > + eoifd = container_of(notifier, struct _eoifd, notifier); > + > + if (eoifd->source) > + kvm_set_irq(eoifd

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-27 Thread Gleb Natapov
On Wed, Jun 27, 2012 at 08:29:04AM -0600, Alex Williamson wrote: > On Wed, 2012-06-27 at 16:58 +0300, Gleb Natapov wrote: > > On Tue, Jun 26, 2012 at 11:10:08PM -0600, Alex Williamson wrote: > > > This new ioctl enables an eventfd to be triggered when an EOI is > > > written for a specified irqchip

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-27 Thread Alex Williamson
On Wed, 2012-06-27 at 16:58 +0300, Gleb Natapov wrote: > On Tue, Jun 26, 2012 at 11:10:08PM -0600, Alex Williamson wrote: > > This new ioctl enables an eventfd to be triggered when an EOI is > > written for a specified irqchip pin. By default this is a simple > > notification, but we can also tie

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-27 Thread Gleb Natapov
On Tue, Jun 26, 2012 at 11:10:08PM -0600, Alex Williamson wrote: > This new ioctl enables an eventfd to be triggered when an EOI is > written for a specified irqchip pin. By default this is a simple > notification, but we can also tie the eoifd to a level irqfd, which > enables the irqchip pin to

Re: [PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-27 Thread Michael S. Tsirkin
On Tue, Jun 26, 2012 at 11:10:08PM -0600, Alex Williamson wrote: > This new ioctl enables an eventfd to be triggered when an EOI is > written for a specified irqchip pin. By default this is a simple > notification, but we can also tie the eoifd to a level irqfd, which > enables the irqchip pin to

[PATCH v2 5/6] kvm: KVM_EOIFD, an eventfd for EOIs

2012-06-26 Thread Alex Williamson
This new ioctl enables an eventfd to be triggered when an EOI is written for a specified irqchip pin. By default this is a simple notification, but we can also tie the eoifd to a level irqfd, which enables the irqchip pin to be automatically de-asserted on EOI. This mode is particularly useful for