From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH uq/master] kvm: Clean up irqfd API Date: Sun, 09 Sep 2012 17:01:46 +0300 Message-ID: <504CA14A.1040107@redhat.com> References: <5031FB9C.4050803@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , qemu-devel , kvm , Alex Williamson , Paolo Bonzini To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49354 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342Ab2IIOB5 (ORCPT ); Sun, 9 Sep 2012 10:01:57 -0400 In-Reply-To: <5031FB9C.4050803@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On 08/20/2012 11:55 AM, Jan Kiszka wrote: > No need to expose the fd-based interface, everyone will already be fine > with the more handy EventNotifier variant. Rename the latter to clarify > that we are still talking about irqfds here. Thanks, applied. > > -int kvm_irqchip_add_irqfd(KVMState *s, int fd, int virq); > -int kvm_irqchip_remove_irqfd(KVMState *s, int fd, int virq); > -int kvm_irqchip_add_irq_notifier(KVMState *s, EventNotifier *n, int virq); > -int kvm_irqchip_remove_irq_notifier(KVMState *s, EventNotifier *n, int virq); > +int kvm_irqchip_add_irqfd_notifier(KVMState *s, EventNotifier *n, int virq); > +int kvm_irqchip_remove_irqfd_notifier(KVMState *s, EventNotifier *n, int virq); > #endif Those names aren't particularly satisfying. add_irqfd_notifier implies you want to be notified about irqfd events, but that's not what the function does. Not sure what a good name would be. -- error compiling committee.c: too many arguments to function