Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp387308imw; Fri, 8 Jul 2022 04:58:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uYkYQ/vlesBxF+fwlSrXWMGK9ieo5ESgztGIfhhY1ZQ48/HepO0FlimEA19rrQPhX2efjc X-Received: by 2002:a17:907:d05:b0:6f4:3729:8e36 with SMTP id gn5-20020a1709070d0500b006f437298e36mr3163518ejc.475.1657281495377; Fri, 08 Jul 2022 04:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657281495; cv=none; d=google.com; s=arc-20160816; b=Y9CA16Eo5BFFw5Ez6Hvm2Lev8rfF9limZ/fsnlJwn6NtRJSzQaBNLjMkoK7mxO/eOz 5vB84LnF/fRwjUlLBdwXi2ksFaXTyIRwy5tv4XB/TmTJzdV62I5k7yhWGorCnO3m45xb W6R+q6DvPBA30ItJgT/LQNf3kmDTBcM898Vq7zHuIU9GYspLo2VlrPNhfab4bMrevRQL hdypAmTz21ez+s87mFlhOaSUuXR81Uk290EqPSW3/W5LOCHdpxmGdliDnZzQ/nDaQQxK TXCn4CfZz8/4XSvpYwNk0mDtF6eSkNG6sfk8FWTPrUYIuLyVbjGxW2Vb5JdOBaRRzLDr MjBw== 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=pQ8hI7tAToAaGENhoelGGeUPhfdGj6ZA32YUdh4TI7g=; b=h9+Mdgfswsfdze/hpVK1tuNZBRTZfS7/zB5GH0+cbJhd8vqk38/zDgX0fG0+yosMry Rm7WJ7LKl+ZctuIS94qqoRq8bfnl2KU85nJfODnmFEEVAT12vnrV584s9r8GNpNQmI65 A9DsrtODQiK9XTGg/aThnyCF6/B/J8c+/3EijRec1RrvlEWtG6nQHABnFbJHpFsOG3i6 P/xUycKDY4S9U6B/iFadtw7rhCDQDGsikZBjSQLkGvrPAwO1ELDdHeawlqUfUvmQ5+Ab OCIcXyY1Zuid+8Gg0Qmp1KpSrYtKYulpRAhNKlkDSRS6eXzhNlBTJhKH6h3Mz8wGP+2l jtYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=erkHckSp; 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 t2-20020a1709061be200b00722fcbbb636si46761114ejg.138.2022.07.08.04.57.50; Fri, 08 Jul 2022 04:58:15 -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=erkHckSp; 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 S237372AbiGHL3V (ORCPT + 99 others); Fri, 8 Jul 2022 07:29:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237336AbiGHL3Q (ORCPT ); Fri, 8 Jul 2022 07:29:16 -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 ESMTP id CCC72951C9 for ; Fri, 8 Jul 2022 04:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1657279751; 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=pQ8hI7tAToAaGENhoelGGeUPhfdGj6ZA32YUdh4TI7g=; b=erkHckSpTKhpr3t0qW94EHRpsmCPPtbrmrsqXpiBthAe4QP/p3E4q/XPrjVYVwx130f7Rc 2VknINL9mefRysoZWsb1ApWNaGImjNDkdsCSGhITzy3Q68dTfK1w4pRhKg4+Pngo1l/6ql MWysHNtCuLjaX2PykKxVSPfTH9uhBHY= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-568-aZ1XpYjsONC48qv2oilMGA-1; Fri, 08 Jul 2022 07:29:04 -0400 X-MC-Unique: aZ1XpYjsONC48qv2oilMGA-1 Received: by mail-qt1-f197.google.com with SMTP id u2-20020ac80502000000b002f94701339eso18266332qtg.13 for ; Fri, 08 Jul 2022 04:29:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pQ8hI7tAToAaGENhoelGGeUPhfdGj6ZA32YUdh4TI7g=; b=E0cE7pDAlx5Zbkt9XnahNTA43B5xYYv4ch3fAf91HOFhxn7JVJi0Kp4G9IWxicua4p ytfQq3GX9souZLF+nBppHM0Yd1JmRHTFlk33rYHJg4kubFr9FPFoDMWvCOEUhvxNL6u9 dqplV4pIHXksGnaLxOpKu97vFEwTQFSYWLYoLBEMbTq1aSSc0VJJaveZRtqstdBaak55 MjRDzPfJFQSzRD0WAG2PVCpG8KYZVeotHNkFwNGQi0rhVQhsFp0CY5gZnMaexghCHZHO MZKBdU3jP7FWREPTkwi+yIhO7TML1dbaP1sJzLHBThBQJXyjD1OdK+9GrH1zi8nw8C1w ZFKg== X-Gm-Message-State: AJIora+q18+uMxL3/x+SOHGKvVKEvnbHfD5wIfaoHh4vZCiMQh7EQ21I qAWABA2oh204JvFdaGMx+/vWbc/HlL0YA2BO006gQLj4X6LylrUwLrimShzZ96j7Yqy+hRLAl0f Xf4y6B0J+3bz3ZGSHmeeSAzItul2VgqxOkR1xzdFb X-Received: by 2002:ac8:5dca:0:b0:31e:85b8:8a18 with SMTP id e10-20020ac85dca000000b0031e85b88a18mr2366797qtx.370.1657279744180; Fri, 08 Jul 2022 04:29:04 -0700 (PDT) X-Received: by 2002:ac8:5dca:0:b0:31e:85b8:8a18 with SMTP id e10-20020ac85dca000000b0031e85b88a18mr2366771qtx.370.1657279743969; Fri, 08 Jul 2022 04:29:03 -0700 (PDT) MIME-Version: 1.0 References: <20220623160738.632852-1-eperezma@redhat.com> <20220623160738.632852-2-eperezma@redhat.com> <20220628133955.sj32sfounu4byggl@sgarzare-redhat> In-Reply-To: <20220628133955.sj32sfounu4byggl@sgarzare-redhat> From: Eugenio Perez Martin Date: Fri, 8 Jul 2022 13:28:27 +0200 Message-ID: Subject: Re: [PATCH v6 1/4] vdpa: Add suspend operation To: Stefano Garzarella Cc: netdev , Jason Wang , linux-kernel , virtualization , kvm list , "Michael S. Tsirkin" , Parav Pandit , Christophe JAILLET , Cindy Lu , "Kamde, Tanuj" , Si-Wei Liu , "Uminski, Piotr" , habetsm.xilinx@gmail.com, "Dawar, Gautam" , Pablo Cascon Katchadourian , Zhu Lingshan , Laurent Vivier , Longpeng , Dinan Gunawardena , Martin Petrus Hubertus Habets , Martin Porter , Eli Cohen , ecree.xilinx@gmail.com, Wu Zongyong , Dan Carpenter , Harpreet Singh Anand , Xie Yongji , Zhang Min Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 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=unavailable 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 Tue, Jun 28, 2022 at 3:40 PM Stefano Garzarella wr= ote: > > On Thu, Jun 23, 2022 at 06:07:35PM +0200, Eugenio P=C3=A9rez wrote: > >This operation is optional: It it's not implemented, backend feature bit > >will not be exposed. > > > >Signed-off-by: Eugenio P=C3=A9rez > >--- > > include/linux/vdpa.h | 4 ++++ > > 1 file changed, 4 insertions(+) > > > >diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h > >index 7b4a13d3bd91..d282f464d2f1 100644 > >--- a/include/linux/vdpa.h > >+++ b/include/linux/vdpa.h > >@@ -218,6 +218,9 @@ struct vdpa_map_file { > > * @reset: Reset device > > * @vdev: vdpa device > > * Returns integer: success (0) or error (< = 0) > >+ * @suspend: Suspend or resume the device (optional) > ^ > IIUC we removed the resume operation (that should be done with reset), > so should we update this documentation? > Totally, I forgot to update the doc. I'll send a new version with that. Thanks! > Thanks, > Stefano > > >+ * @vdev: vdpa device > >+ * Returns integer: success (0) or error (< = 0) > > * @get_config_size: Get the size of the configuration space i= ncludes > > * fields that are conditional on feature bi= ts. > > * @vdev: vdpa device > >@@ -319,6 +322,7 @@ struct vdpa_config_ops { > > u8 (*get_status)(struct vdpa_device *vdev); > > void (*set_status)(struct vdpa_device *vdev, u8 status); > > int (*reset)(struct vdpa_device *vdev); > >+ int (*suspend)(struct vdpa_device *vdev); > > size_t (*get_config_size)(struct vdpa_device *vdev); > > void (*get_config)(struct vdpa_device *vdev, unsigned int offset, > > void *buf, unsigned int len); > >-- > >2.31.1 > > >