Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4446219pxv; Tue, 20 Jul 2021 04:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPo6iLLND4/2lCLuBprbX5TAxLg7xTSAE4BnjNUb0xvJi5vhiRSG9+8+V2WjsUDS92hhqa X-Received: by 2002:a92:cf0c:: with SMTP id c12mr19946008ilo.56.1626779161578; Tue, 20 Jul 2021 04:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626779161; cv=none; d=google.com; s=arc-20160816; b=KJheW4GgaAMicInethqH+W/emfQgsBNrQma4C7cJ7/UZhid62vdEV0iHiayBuaaDa7 AMnIwlozi3SC4OquffXfIvbDzobuNcGNccW7QRvrPIkSQZqwoM4HJO5DwgZi4Jletm9y Ru1sIpPp5uo2JNFlSwU6GVq7+Cxp9UMqSGnPIIjDwWqOIE1uB/7Z0TzwhjqDcpzSlerR 7SW8P9nRSMD6snHe6S1TwgyQ8wq46IeugfdZAKpDGQCwceGdYFyCeGfSZQC020c80jtR ru87aM7EPe/6XyAxwVUEcw1QOteBZbvTsI2gJLPve3kcQYz/cZNd4KqtxNVQFHQ0lf1L MHbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=JTSRc/gph1ji0hfIld/UALNOKijK5EKISu1Dv6GJJ3Q=; b=CGkQqhx3+UOAbQTk+29v8fRY0uc36Zwv0oeOOg921OSq0fzo5jbajpyJlK5G8DL86j hjR0tvc/OcHHFlYF9cxevmcxq87FVeMeD12xX3Ed9Wtf8UjtvHSxubwxzVePpXeeeFFN 847d51DlLh9wFzHn6UAf9FT7qFUI6Y9+Q4/Yah4JL9W44WWdhJ2HmgNX4HUMNahiEKyf NDcCfub8qhrWDRzPhMJeC7eBpGT7HzA/JsucCDAEWuXfPkUF+bHu+XrV4ANiONSQkDNH vtdY2LgXWOur9LertEzMcdUvPJyXnWU/3pIsloTjlBMa/5F8gLFzHZ6ISuyNDFWqWTux X5+A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j30si22531577ila.56.2021.07.20.04.05.48; Tue, 20 Jul 2021 04:06:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236530AbhGTKXc (ORCPT + 99 others); Tue, 20 Jul 2021 06:23:32 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:41474 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237512AbhGTKQZ (ORCPT ); Tue, 20 Jul 2021 06:16:25 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0UgQE3Hb_1626778618; Received: from B-LB6YLVDL-0141.local(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0UgQE3Hb_1626778618) by smtp.aliyun-inc.com(127.0.0.1); Tue, 20 Jul 2021 18:56:58 +0800 Subject: Re: [PATCH v2] vsock/virtio: set vsock frontend ready in virtio_vsock_probe() To: Stefan Hajnoczi 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 References: <20210720071337.1995-1-xianting.tian@linux.alibaba.com> From: Xianting Tian Message-ID: Date: Tue, 20 Jul 2021 18:56:58 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org OK, thanks 在 2021/7/20 下午6:23, Stefan Hajnoczi 写道: > On Tue, Jul 20, 2021 at 03:13:37PM +0800, Xianting Tian wrote: >> Add the missed virtio_device_ready() to set vsock frontend ready. >> >> 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. > >> diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.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 *vdev) >> >> mutex_unlock(&the_virtio_vsock_mutex); >> >> + 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 = drv->probe(dev); > if (err) > goto err; > > /* 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);