Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1050440rwb; Thu, 18 Aug 2022 17:57:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR7+NKNTt/d+iMSvxTdg4zFkhgv7TzBIEHh/xeJ9KQDqYb22EnXG4Gd5JGn+7Nx4jKM0RCT6 X-Received: by 2002:a05:6a00:244a:b0:52b:e9a8:cb14 with SMTP id d10-20020a056a00244a00b0052be9a8cb14mr5390236pfj.32.1660870671886; Thu, 18 Aug 2022 17:57:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660870671; cv=none; d=google.com; s=arc-20160816; b=oQC/ALU0ZRUVWKY1SnB8rz/1DN+MYYN+/KH4Rc986mQcCF+aUEAZem1echvXKavxf+ DxgRkSDtQ43wHcy6SN1Nxv/FdwFRRyY0WBuI1qNiINLhjTmgpncPqZIyfZQdmEO2pvYY wpdVrAfsTTJoUn7s2TZr8og9/OoGlAdvCcajCTCNPOmauz4Dr0OW0bSLc37rTd3nJNIq 1+IBBg3bgUcDy0jzY7JpTWKMdgczOE1mcsipKHDudWNWATKwaFmdvGnU6c3idT7vFxPg qqHBGfthXsGDpnBFDYhx8treFd6WCwkjkZ87Ji3jm0o4HU6cT1bl4FTyCTnfFsEbdOr0 3DlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=WKb8wMv3kp7XDXlLqqFY9ANzF7bJt+tTfj6q5NOVelU=; b=WDn/Vbrs4pFV2c4l3Xa/ldu7EEZDaUfZTWTGeup3YtWf7duHDMZ8UjoEDhV6fkX5bx kdXR7kK1oTWvaDvhiXmQuLxyPujEk3sxDOSlqRcu2otJPiRuE6HpFfg6tSffA31qsMch HFSbP1ciCBYMvSeyiip77H+7oy0szePLXDWooYL1kZyMawzT2WGH/0VhtVE7cUmVt/OY 9MNAk8Z2e2pV8fOuFOi7u1gy31gs7X8xH91w5q5Dle86kzLY1kARAzhlrLvL5LPgBGMU 902OuCG5NsR5nEYqNG3WBEjboktGpsHvFMr7Z8lVI/0+b14mJ+6bd8WQjrzRvu7qz0QS wJEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ec2XFyMX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h25-20020a63f919000000b003fc8c4e29bdsi2715169pgi.300.2022.08.18.17.57.40; Thu, 18 Aug 2022 17:57:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ec2XFyMX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S241940AbiHSA4Z (ORCPT + 99 others); Thu, 18 Aug 2022 20:56:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241354AbiHSA4V (ORCPT ); Thu, 18 Aug 2022 20:56:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD54ADEB74 for ; Thu, 18 Aug 2022 17:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660870579; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WKb8wMv3kp7XDXlLqqFY9ANzF7bJt+tTfj6q5NOVelU=; b=ec2XFyMXYeBcjPdDJflfR1zjljUBRKeojH3/gPxkyYWlZZz8pCMHOTEV/MgrmFvd8cUJtu nA68CLZ9oKpoXZ/RKA/hIRuy3tKNeDCM4DnmtZIrZ59WHfDaDjtqZecRxnChMXMCEPJMk6 htEFX8vt1hg7SATHW7rYn5sBUXqLKM8= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-60-QX0upE8DNB65-fJ3x_SjLQ-1; Thu, 18 Aug 2022 20:56:18 -0400 X-MC-Unique: QX0upE8DNB65-fJ3x_SjLQ-1 Received: by mail-lf1-f72.google.com with SMTP id p36-20020a05651213a400b004779d806c13so963136lfa.10 for ; Thu, 18 Aug 2022 17:56:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=WKb8wMv3kp7XDXlLqqFY9ANzF7bJt+tTfj6q5NOVelU=; b=KfeoFbi126m8MlMIrD9thnxrGVDBEE6FQUHvJ2y38vcm+E0GpNtapiFZs9EOsg8ghn R/m9dy6p7kRWbdyfDMlS5WOf3o1NXfqOE/YwZdFQgKCLYVn1nQzN5wmrsgwq0mz6+IYh y2wsF8IAhJyiL5yDcjjrYeNQXEh4xfboc8IhJhRYIB74A2l/lWIhVfvFffSqbMGq+yr1 r9IWudxaoe2RVpoKqDu7a6X5QmvQntFgIJhxrBalaR+6FitH/IGDRsNVRCJ0EnjHeu89 beCWMYBc//AJz7Fu/0G+/M5OTTvB6n2lf2I05y3zacl1xBSZoaMIIGoW7hh3J9JKNtq2 VOQg== X-Gm-Message-State: ACgBeo17OMGHEYNiYOOd8Uw1NaQjOfMjVXFVellRLFODgyHYP4ytp/Ap 4NaatLzfMAcfr0LBAanSQO3+YRcgcDaykLqK16+hkiytH0Vs9mztwbm6PfEsSjJVYmrTDFlePQ8 9eVP/scsdrXm3ZQ1ryRkYBwiat19hC/nsCxoZ3wGa X-Received: by 2002:ac2:43b0:0:b0:48b:1eb:d1e5 with SMTP id t16-20020ac243b0000000b0048b01ebd1e5mr1802700lfl.641.1660870577143; Thu, 18 Aug 2022 17:56:17 -0700 (PDT) X-Received: by 2002:ac2:43b0:0:b0:48b:1eb:d1e5 with SMTP id t16-20020ac243b0000000b0048b01ebd1e5mr1802668lfl.641.1660870576846; Thu, 18 Aug 2022 17:56:16 -0700 (PDT) MIME-Version: 1.0 References: <20220811135353.2549658-1-eperezma@redhat.com> <20220811135353.2549658-3-eperezma@redhat.com> In-Reply-To: <20220811135353.2549658-3-eperezma@redhat.com> From: Jason Wang Date: Fri, 19 Aug 2022 08:56:05 +0800 Message-ID: Subject: Re: [PATCH v8 2/3] vdpa: Remove wrong doc of VHOST_VDPA_SUSPEND ioctl To: =?UTF-8?Q?Eugenio_P=C3=A9rez?= Cc: virtualization , "Michael S. Tsirkin" , kvm , linux-kernel , netdev , ecree.xilinx@gmail.com, "Dawar, Gautam" , Zhang Min , Pablo Cascon Katchadourian , "Uminski, Piotr" , Dan Carpenter , "Kamde, Tanuj" , Zhu Lingshan , Martin Petrus Hubertus Habets , Christophe JAILLET , Laurent Vivier , Martin Porter , Harpreet Singh Anand , Eli Cohen , Cindy Lu , Martin Habets , Parav Pandit , Longpeng , Wu Zongyong , Si-Wei Liu , Stefano Garzarella , Dinan Gunawardena , Xie Yongji Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 11, 2022 at 9:54 PM Eugenio P=C3=A9rez wr= ote: > > It was a leftover from previous versions. > > Signed-off-by: Eugenio P=C3=A9rez Acked-by: Jason Wang > --- > include/linux/vdpa.h | 2 +- > include/uapi/linux/vhost.h | 15 +++++---------- > 2 files changed, 6 insertions(+), 11 deletions(-) > > diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h > index d282f464d2f1..6c4e6ea7f7eb 100644 > --- a/include/linux/vdpa.h > +++ b/include/linux/vdpa.h > @@ -218,7 +218,7 @@ struct vdpa_map_file { > * @reset: Reset device > * @vdev: vdpa device > * Returns integer: success (0) or error (< = 0) > - * @suspend: Suspend or resume the device (optional) > + * @suspend: Suspend the device (optional) > * @vdev: vdpa device > * Returns integer: success (0) or error (< = 0) > * @get_config_size: Get the size of the configuration space i= ncludes > diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h > index 6d9f45163155..89fcb2afe472 100644 > --- a/include/uapi/linux/vhost.h > +++ b/include/uapi/linux/vhost.h > @@ -171,17 +171,12 @@ > #define VHOST_VDPA_SET_GROUP_ASID _IOW(VHOST_VIRTIO, 0x7C, \ > struct vhost_vring_state) > > -/* Suspend or resume a device so it does not process virtqueue requests = anymore > +/* Suspend a device so it does not process virtqueue requests anymore > * > - * After the return of ioctl with suspend !=3D 0, the device must finish= any > - * pending operations like in flight requests. It must also preserve all= the > - * necessary state (the virtqueue vring base plus the possible device sp= ecific > - * states) that is required for restoring in the future. The device must= not > - * change its configuration after that point. > - * > - * After the return of ioctl with suspend =3D=3D 0, the device can conti= nue > - * processing buffers as long as typical conditions are met (vq is enabl= ed, > - * DRIVER_OK status bit is enabled, etc). > + * After the return of ioctl the device must finish any pending operatio= ns. It > + * must also preserve all the necessary state (the virtqueue vring base = plus > + * the possible device specific states) that is required for restoring i= n the > + * future. The device must not change its configuration after that point= . > */ > #define VHOST_VDPA_SUSPEND _IOW(VHOST_VIRTIO, 0x7D, int) > > -- > 2.31.1 >