Received: from eggs.gnu.org ([2001:4830:134:3::10]:44727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjjZP-0006HU-TK for qemu-devel@nongnu.org; Tue, 13 Sep 2016 05:00:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjjZM-0006UT-Nz for qemu-devel@nongnu.org; Tue, 13 Sep 2016 04:59:59 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:44153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjjZM-0006UD-GB for qemu-devel@nongnu.org; Tue, 13 Sep 2016 04:59:56 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8D8wf65101279 for ; Tue, 13 Sep 2016 04:59:55 -0400 Received: from e06smtp06.uk.ibm.com (e06smtp06.uk.ibm.com [195.75.94.102]) by mx0a-001b2d01.pphosted.com with ESMTP id 25dxu43yh8-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Sep 2016 04:59:54 -0400 Received: from localhost by e06smtp06.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Sep 2016 09:59:52 +0100 Date: Tue, 13 Sep 2016 10:59:48 +0200 From: Cornelia Huck In-Reply-To: <6a0b0cbe-0593-eb3e-d6cb-73006a416aed@redhat.com> References: <1473495817-29952-1-git-send-email-maxime.coquelin@redhat.com> <20160912105109.01768eec.cornelia.huck@de.ibm.com> <3d4487b9-7d63-5351-93e0-7ea6fdaad414@redhat.com> <20160912225721-mutt-send-email-mst@kernel.org> <6a0b0cbe-0593-eb3e-d6cb-73006a416aed@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20160913105948.7d9c787f.cornelia.huck@de.ibm.com> Subject: Re: [Qemu-devel] [PATCH] virtio-bus: Plug devices after features are negotiated List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Maxime Coquelin Cc: "Michael S. Tsirkin" , qemu-devel@nongnu.org, marcel@redhat.com, vkaplans@redhat.com, qemu-stable@nongnu.org On Tue, 13 Sep 2016 09:08:04 +0200 Maxime Coquelin wrote: > On 09/12/2016 09:58 PM, Michael S. Tsirkin wrote: > > On Mon, Sep 12, 2016 at 08:22:50PM +0200, Maxime Coquelin wrote: > >> > >> > >> On 09/12/2016 10:51 AM, Cornelia Huck wrote: > >>> On Sat, 10 Sep 2016 10:23:37 +0200 > >>> Maxime Coquelin wrote: > >>> > >>>>> Currently, devices are plugged before features are negotiated. > >>>>> If the backend doesn't support VIRTIO_F_VERSION_1, the transport > >>>>> need to rewind some settings. > >>>>> > >>>>> This is the case for CCW, for which a post_plugged callback had > >>>>> been introduced, where max_rev field is just updated if > >>>>> VIRTIO_F_VERSION_1 is not supported by the backend. > >>>>> For PCI, implementing the post_plugged would be much more > >>> s/the// > >>> > >>>>> complicated, so it needs to know whether the backend supports > >>>>> VIRTIO_F_VERSION_1 at plug time. > >>>>> > >>>>> Currently, nothing is done for PCI. Modern capabilitities get > >>>>> exposed to the guest even if VIRTIO_F_VERSION_1 is not supported > >>>>> by the backend, which confuses the guest. > >>>>> > >>>>> This patch proposes to replace existing post_plugged solution > >>> Nit: The patch does not propose anything, it just does it :) > >>> > >> Michael, > >> > >> Should I send a v2 fixing the above comments, or you can handle them > >> when applying the patch? > >> > >> Thanks, > >> Maxime > > > > > > It's easier if you post v2 including all acks. > Ok, v2 is ready, waiting to collect some acks. In the meanwhile, I've verified that everything works as expected as well with an old host kernel (3.18) and your patch for ccw. Therefore, Tested-by: Cornelia Huck [ccw] Reviewed-by: Cornelia Huck