Received: from eggs.gnu.org ([2001:4830:134:3::10]:42544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkFnn-0002Qm-Ch for qemu-devel@nongnu.org; Fri, 31 Oct 2014 13:16:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkFnd-0003Ih-QO for qemu-devel@nongnu.org; Fri, 31 Oct 2014 13:15:55 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:35148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkFnd-0003IO-A9 for qemu-devel@nongnu.org; Fri, 31 Oct 2014 13:15:45 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 31 Oct 2014 17:15:42 -0000 Date: Fri, 31 Oct 2014 18:15:36 +0100 From: Cornelia Huck Message-ID: <20141031181536.3896bf44.cornelia.huck@de.ibm.com> In-Reply-To: <1414762699-4700-2-git-send-email-eric.auger@linaro.org> References: <1414762699-4700-1-git-send-email-eric.auger@linaro.org> <1414762699-4700-2-git-send-email-eric.auger@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 1/2] KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE checks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Auger Cc: kvmarm@lists.cs.columbia.edu, alex.williamson@redhat.com, eric.auger@st.com, thuth@linux.vnet.ibm.com, patches@linaro.org, aik@ozlabs.ru, mtosatti@redhat.com, qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com, bsd@redhat.com, qemu-ppc@nongnu.org, pbonzini@redhat.com, peter.maydell@linaro.org, afaerber@suse.de, christoffer.dall@linaro.org, rth@twiddle.net On Fri, 31 Oct 2014 13:38:18 +0000 Eric Auger wrote: > Compute kvm_irqfds_allowed by checking the KVM_CAP_IRQFD extension. > Remove direct settings in architecture specific files. > > Add a new kvm_resamplefds_allowed variable, initialized by > checking the KVM_CAP_IRQFD_RESAMPLE extension. Add a corresponding > kvm_resamplefds_enabled() function. > > A special notice for s390 where KVM_CAP_IRQFD was not immediatly > advirtised when irqfd capability was introduced in the kernel. s/immediatly advirtised/immediately advertised/ > KVM_CAP_IRQ_ROUTING was advertised instead. > > This was fixed in "KVM: s390: announce irqfd capability", > ebc3226202d5956a5963185222982d435378b899 whereas irqfd support > was brought in 84223598778ba08041f4297fda485df83414d57e, > "KVM: s390: irq routing for adapter interrupts". Both commits > first appear in 3.15 so there should not be any kernel > version impacted by this QEMU modification. Yes, I think we can live with disabling irqfd support for those versions inbetween :) > > Signed-off-by: Eric Auger The patch looks sane to me and I verified that qemu works as expected on s390 (current kernel, current kernel with KVM_CAP_IRQFD disabled again and pre-KVM_CAP_IRQ_ROUTING). So: Reviewed-by: Cornelia Huck Tested-by: Cornelia Huck