From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH v11] kvm: Add resampling irqfds for level triggered interrupts Date: Sun, 23 Sep 2012 13:50:28 +0200 Message-ID: <505EF784.7060504@redhat.com> References: <20120921175601.32604.63271.stgit@bling.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: mst@redhat.com, gleb@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Alex Williamson Return-path: Received: from mx1.redhat.com ([209.132.183.28]:25308 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752508Ab2IWLuf (ORCPT ); Sun, 23 Sep 2012 07:50:35 -0400 In-Reply-To: <20120921175601.32604.63271.stgit@bling.home> Sender: kvm-owner@vger.kernel.org List-ID: On 09/21/2012 08:58 PM, Alex Williamson wrote: > To emulate level triggered interrupts, add a resample option to > KVM_IRQFD. When specified, a new resamplefd is provided that notifies > the user when the irqchip has been resampled by the VM. This may, for > instance, indicate an EOI. Also in this mode, posting of an interrupt > through an irqfd only asserts the interrupt. On resampling, the > interrupt is automatically de-asserted prior to user notification. > This enables level triggered interrupts to be posted and re-enabled > from vfio with no userspace intervention. > > All resampling irqfds can make use of a single irq source ID, so we > reserve a new one for this interface. > Thanks, applied. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.