public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: don't clear level from irqfd
@ 2012-06-27  9:13 Michael S. Tsirkin
  2012-06-27 10:03 ` Gleb Natapov
  0 siblings, 1 reply; 9+ messages in thread
From: Michael S. Tsirkin @ 2012-06-27  9:13 UTC (permalink / raw)
  To: Avi Kivity, Marcelo Tosatti, kvm, linux-kernel; +Cc: Alex Williamson, gleb

irqfd sets and clears the level immediately.
This used to be necessary for MSI interrupts but isn't anymore.

Note! We never officially supported irqfd for level
interrupts but it usually seemed to kind of work,
and this change will break it. There are no known
real users of that feature though - only old vfio prototypes.
Removing this line will make it easier to add
real support for level irqfds in the future.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 virt/kvm/eventfd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c
index f59c1e8..4db6b01 100644
--- a/virt/kvm/eventfd.c
+++ b/virt/kvm/eventfd.c
@@ -68,7 +68,6 @@ irqfd_inject(struct work_struct *work)
 	struct kvm *kvm = irqfd->kvm;
 
 	kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 1);
-	kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 0);
 }
 
 /*
-- 
MST

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-06-27 15:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-27  9:13 [PATCH] kvm: don't clear level from irqfd Michael S. Tsirkin
2012-06-27 10:03 ` Gleb Natapov
2012-06-27 10:20   ` Michael S. Tsirkin
2012-06-27 10:22     ` Gleb Natapov
2012-06-27 11:38       ` Michael S. Tsirkin
2012-06-27 11:50         ` Gleb Natapov
2012-06-27 14:41         ` Alex Williamson
2012-06-27 15:00           ` Michael S. Tsirkin
2012-06-27 15:03             ` Gleb Natapov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox