Received: from eggs.gnu.org ([2001:4830:134:3::10]:47768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2emu-0005d9-AF for qemu-devel@nongnu.org; Thu, 12 Oct 2017 10:48:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2emp-0002Ft-Ep for qemu-devel@nongnu.org; Thu, 12 Oct 2017 10:48:40 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57074 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2emp-0002FT-8V for qemu-devel@nongnu.org; Thu, 12 Oct 2017 10:48:35 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9CEaSQn020743 for ; Thu, 12 Oct 2017 10:48:32 -0400 Received: from e06smtp13.uk.ibm.com (e06smtp13.uk.ibm.com [195.75.94.109]) by mx0a-001b2d01.pphosted.com with ESMTP id 2dj5xenwgx-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 12 Oct 2017 10:48:31 -0400 Received: from localhost by e06smtp13.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 12 Oct 2017 15:48:29 +0100 References: <1507124979-8880-1-git-send-email-pmorel@linux.vnet.ibm.com> <1507124979-8880-5-git-send-email-pmorel@linux.vnet.ibm.com> <20171009084506.77da9d5c@t450s.home> <20171010113520.6c3d03e3.cohuck@redhat.com> <1952d9c1-6ef8-0f1d-d89a-08e1236ad275@linux.vnet.ibm.com> <20171011142053.1f1e2723.cohuck@redhat.com> From: Pierre Morel Date: Thu, 12 Oct 2017 16:48:26 +0200 MIME-Version: 1.0 In-Reply-To: <20171011142053.1f1e2723.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Message-Id: <641129f5-6dde-eafb-fda6-822ff0e83bd4@linux.vnet.ibm.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v1 4/5] s390x/pci: Refuse to realize VFIO-PCI if AIS needed but supported List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: pasic@linux.vnet.ibm.com, zyimin@linux.vnet.ibm.com, qemu-devel@nongnu.org, agraf@suse.de, borntraeger@de.ibm.com, Alex Williamson On 11/10/2017 14:20, Cornelia Huck wrote: > On Tue, 10 Oct 2017 18:01:53 +0200 > Pierre Morel wrote: >=20 >> Since in the case we have no AIS in KVM only PCI is impacted, do you >> think we can fence IRQFD for MSI with >> >> kvm_msi_via_irqfd_allowed =3D false; >> >> in kvm_arch_init_irq_routing() ? >=20 > Hm, it seems we never set that for s390x... does that imply that we > never support irqfd for pci anyway? ... yes, we never supported irqfd for virtio-pci anyway. This explains a lot of things to me. :) >=20 >> >> In fact, if we also verify the AIS availability in the same routine we >> can avoid the ugly include of vfio/pci.h >=20 > If we can get the serialization right (and setting that value to false > does indeed have the desired effect), that's probably the way to go. >=20 So now, in v2, we will be able to **enable** irqfd if we detect that we=20 handle AIS in kernel. :) --=20 Pierre Morel Linux/KVM/QEMU in B=C3=B6blingen - Germany