Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4418906pxv; Tue, 20 Jul 2021 03:24:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT0KPRTwX3d2SmtMu+9KO3gJ2RioILEBy5k0V3CXXX7pf2jDRlGhXcJmVt2m3C4KIGCT+S X-Received: by 2002:a92:d912:: with SMTP id s18mr20583731iln.172.1626776686299; Tue, 20 Jul 2021 03:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626776686; cv=none; d=google.com; s=arc-20160816; b=rAULZOf6JdreYZs7IK1IAAUBCPoR5dPF853BQceg/m8+HVpVbb2pI1cZK0pLuK8gkV mHj5JxCwTrH3mVA7k1Rlfluo2ueuY9yrw9gDQ5mWphfv1dbWD7jvujB4mmCWgtBCuHLl Gk5zRce7RD8AykGCwsthY+kRLjsNyaB8+9GGiUoV2ctjeMHK7TsumjLP2QsOdhLtfNEN TruSMFK9v3O6cim97vzC/bZbHbKIEdJ7xhcCv867TasyZkoyLh5Ay+Hfi/Pz9pvGoclh F9L0VZiS6tzLu+aZXVBJ7+EGtUkhLLvq+VuXlsMSkN1D8RsCREQDMYK827mu4Bd+oLBk 4XUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0iPodRufSETNQrJRGnp/ZOuGSC+uwy2pniQGdvVYYmA=; b=DUqDwWTvraVuhcmnO8x7+IrMCcXsTOMGhpMKRlrmyGWrMNi3hzwznYOnDmOEskbeAk IyutOM3jasy8JFWYlBo0ID8d3P2Yll0kfScAfDFrSy2RxOOnmlNQ73zYtf2APmqi7AHP ZSATKOZGjC0SjiUueovzrUN9Oejw2dS0GrgHauVgdkR8FIdky5QZYgbvyIW8ciwSRfh7 5oLb+4Pq+SM94wIagzVfs4DCiq3tSHUl9UPnq/YvEG5TmEQJJxK5ARMl2kNWJe/vXh8A Wem7/oiHBCyrJ8G4TKcozRrknuslS5jemrUiAOOW9wfiIEUAP4BYMdmUErQysPXXIvif AKFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WjKSliuB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n5si26862799ilj.6.2021.07.20.03.24.34; Tue, 20 Jul 2021 03:24:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WjKSliuB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236310AbhGTJmt (ORCPT + 99 others); Tue, 20 Jul 2021 05:42:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43564 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237008AbhGTJm3 (ORCPT ); Tue, 20 Jul 2021 05:42:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626776586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0iPodRufSETNQrJRGnp/ZOuGSC+uwy2pniQGdvVYYmA=; b=WjKSliuBu2EfrYh1nbGZUxU44ZGwJPYYwMjzqsLOVM9sHrLtoLX9LFU/k9fCh1XpdU40co 5arMqgXwmoOszfgEsrJMsfTWSdwZuVQKQoCQre4LvTdfx/o4iyuLZJD8/UpBOvyNJevUhZ B6FTBxrUu0n4IE5a+T/EK0D9NiiQH0s= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-227-YYu-6614O9CnRxBcJZSo9w-1; Tue, 20 Jul 2021 06:23:05 -0400 X-MC-Unique: YYu-6614O9CnRxBcJZSo9w-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A3C8E10168C7; Tue, 20 Jul 2021 10:23:03 +0000 (UTC) Received: from localhost (ovpn-114-103.ams2.redhat.com [10.36.114.103]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3270C19C44; Tue, 20 Jul 2021 10:23:02 +0000 (UTC) Date: Tue, 20 Jul 2021 11:23:01 +0100 From: Stefan Hajnoczi To: Xianting Tian Cc: sgarzare@redhat.com, davem@davemloft.net, kuba@kernel.org, jasowang@redhat.com, kvm@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] vsock/virtio: set vsock frontend ready in virtio_vsock_probe() Message-ID: References: <20210720071337.1995-1-xianting.tian@linux.alibaba.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iV/3jVzEG68fDxrj" Content-Disposition: inline In-Reply-To: <20210720071337.1995-1-xianting.tian@linux.alibaba.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --iV/3jVzEG68fDxrj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 20, 2021 at 03:13:37PM +0800, Xianting Tian wrote: > Add the missed virtio_device_ready() to set vsock frontend ready. >=20 > Signed-off-by: Xianting Tian > --- > net/vmw_vsock/virtio_transport.c | 2 ++ > 1 file changed, 2 insertions(+) Please include a changelog when you send v2, v3, etc patches. >=20 > diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_tran= sport.c > index e0c2c992a..dc834b8fd 100644 > --- a/net/vmw_vsock/virtio_transport.c > +++ b/net/vmw_vsock/virtio_transport.c > @@ -639,6 +639,8 @@ static int virtio_vsock_probe(struct virtio_device *v= dev) > =20 > mutex_unlock(&the_virtio_vsock_mutex); > =20 > + virtio_device_ready(vdev); Why is this patch necessary? The core virtio_dev_probe() code already calls virtio_device_ready for us: static int virtio_dev_probe(struct device *_d) { ... err =3D drv->probe(dev); if (err) goto err; =20 /* If probe didn't do it, mark device DRIVER_OK ourselves. */ if (!(dev->config->get_status(dev) & VIRTIO_CONFIG_S_DRIVER_OK)) virtio_device_ready(dev); --iV/3jVzEG68fDxrj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAmD2pAUACgkQnKSrs4Gr c8jc0Qf/Wyv2LMSeCMqTH4Pu6GgszqoO03KHkzbyezjDhTXQiVOdXpF1rWGphdt8 /jTn7b4QGKRy0y6TQr6dtOvqjkecS45X8Nf3/x/HzXq34Y53vzV+KQ1mf9Z53SWu BT2wBWYx19H4A9cpOI3dLsenvTipLGJPZioZWDfrXSEDgq5kExyuH+zm9ts5kZ61 QK4JoWYNnT33aH48qXZIX4W1jbPjmvF+oHbXWJIHtGOTBVX9u9xkgzBSQfB6NjPv uCInNr/9IB+Dmo+G2ssqdl9Z4m9e3n1fr/7zRXOfktw/zREzRW3gXgqk+1IK7TTz M03B5+fe87wBKISJqJWEpMCA3LyR0w== =vs5c -----END PGP SIGNATURE----- --iV/3jVzEG68fDxrj--