Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp354317rwb; Thu, 11 Aug 2022 02:47:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR5NgOgWUymvdWuHBbEkUnspSItg7cedclfOYIzYTYhdHaEBzi9cki3wBoLfyKwgqDPA5z6m X-Received: by 2002:a63:8a42:0:b0:41b:dddd:b81f with SMTP id y63-20020a638a42000000b0041bddddb81fmr26134381pgd.229.1660211252421; Thu, 11 Aug 2022 02:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660211252; cv=none; d=google.com; s=arc-20160816; b=j5vznpIEgCl4LHGSTH7UeNpPYCNcDK3clZjT9Xm38qZitV5AWVi5ezr8cNPNrM1Tpw 2HAUdRNF0rQJWvTyhUTRsvkc3QJHlUr+zRE0i7sZZGFTJhHfXH8JURoqwaYNZZ/bLNiV M5gfYdskw0P3dTpdSRr9pmXu5DIWGMSwknO0eIBk8kilvnv9zYaU5mb4u878EypGi0gF 4r1qnyk55fH/WZ6XzYZNF5ATEZHks+QY0FRqvn7iz3OX4msQ9PO9tiaf8HgCtH2+00Zw jTBOeljeJ62jBNsxggR8RHaMt5a4POdjLARqABGkDHlSpddEr6h5+SgyiNuVneqW8r5a lU9A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fRCed6nnEDFTJS61x3dawnYdkP8v3FkULNF0fZ1BK3g=; b=r4ceXgvkN72buWW8LZ3ZVCIN8O9Ad5gJDIWHdTjhdIlduTkM2fXZKUMhfBzhfSFIfY B/5GOrMbhehIib17cqK8QnfMAegRCkfq2nhnSHka+kyGOlMgwWDt3gRN1Y4wdfqmG8P2 3KO+shxeK4vA4XD2GEbNICZM5x5XOnBdfCNapWNK8zOI1eQsfcbW2iZCaUWCfq7HNUwT cxCfFfcRezG9kEn9rQDsI2oIvMJE8jmu1Bcv593giLKtnGf9yz2gF9v914vGewXagqAe XNsjeJt1BMYHHFyYVp4MzouECDlSvp4b1A3XSHFeWSqLGQeb0+0+eSHuf9NBFjKF88vG iUEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BKCCDC4v; 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 y23-20020a056a00181700b0052f6911360esi5032419pfa.155.2022.08.11.02.47.18; Thu, 11 Aug 2022 02:47:32 -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=BKCCDC4v; 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 S234480AbiHKI1q (ORCPT + 99 others); Thu, 11 Aug 2022 04:27:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234481AbiHKI1n (ORCPT ); Thu, 11 Aug 2022 04:27:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3B51490819 for ; Thu, 11 Aug 2022 01:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660206461; 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=fRCed6nnEDFTJS61x3dawnYdkP8v3FkULNF0fZ1BK3g=; b=BKCCDC4v+T7/wizwn/5rKrvE5nI9x0VKsvi/ET4ftdk/liUaUuoDFASYwOQ9ciBIKjswGK H+ySb4xs1EN5u58DB+mK4KIuIjSXh6NWJ0ikTb/91pyayfmLhkLTxugH8cdoUfaYKhdo+l XTHT5bxXwKp7CDC9biKqpIoSvUgUlps= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-505-mbBbb-4yOi2FlGmMBMTwZA-1; Thu, 11 Aug 2022 04:27:40 -0400 X-MC-Unique: mbBbb-4yOi2FlGmMBMTwZA-1 Received: by mail-wm1-f70.google.com with SMTP id c17-20020a7bc011000000b003a2bfaf8d3dso8436818wmb.0 for ; Thu, 11 Aug 2022 01:27:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc; bh=fRCed6nnEDFTJS61x3dawnYdkP8v3FkULNF0fZ1BK3g=; b=kAHXQ8A11HcBdXpV/LF3nkqnIke9S9mNnJTYSJdDM83KdGrlmTw3FuKOVAiADJrk2P gKYscPukmKaz25vWC82EER0Hp83VS6kb5ppou+OGFgzpi6tvHlonzFojIr6DxI+mSDCW tclpt0PXltViFoAGunkImEnrbxqFzUXx+//4m03SHvpD4VIGpADwVifgeGC+uJZpDd4L 0XVfpB/1daB0rz4fei3xAhacaQLYojKNXlTXwRMlBC0JXdBiqAFMkzZ4ZBNigT9Tl05f 5WntuYBslAC/J7jYb7vyMERrIGZS7aVTqCprhjxpeiaMOQ9fwM9Zqubs35N1aEassXoT dgEA== X-Gm-Message-State: ACgBeo10+TB+P2uV+V69nOslqnqUIpARnFQyuSNf5XuAgxd/UE8FjW8Y 25rTD/14SUSpZulgQguUDWbO8QXvKX84VE7kH3OXQf+vtYfLZlrelFALkxDahmpMQqAFlXV0/aK SBHnAL1nAtzgocQ8Zn27Lqb3S X-Received: by 2002:a1c:a3c4:0:b0:3a5:512f:717a with SMTP id m187-20020a1ca3c4000000b003a5512f717amr4823111wme.192.1660206458820; Thu, 11 Aug 2022 01:27:38 -0700 (PDT) X-Received: by 2002:a1c:a3c4:0:b0:3a5:512f:717a with SMTP id m187-20020a1ca3c4000000b003a5512f717amr4823072wme.192.1660206458571; Thu, 11 Aug 2022 01:27:38 -0700 (PDT) Received: from redhat.com ([2.52.152.113]) by smtp.gmail.com with ESMTPSA id m7-20020a056000008700b00222ed7ea203sm8822453wrx.100.2022.08.11.01.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 01:27:37 -0700 (PDT) Date: Thu, 11 Aug 2022 04:27:32 -0400 From: "Michael S. Tsirkin" To: Eugenio =?iso-8859-1?Q?P=E9rez?= Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Wang , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, dinang@xilinx.com, martinpo@xilinx.com, Wu Zongyong , Piotr.Uminski@intel.com, gautam.dawar@amd.com, ecree.xilinx@gmail.com, martinh@xilinx.com, Stefano Garzarella , pabloc@xilinx.com, habetsm.xilinx@gmail.com, lvivier@redhat.com, Zhu Lingshan , tanuj.kamde@amd.com, Longpeng , lulu@redhat.com, hanand@xilinx.com, Parav Pandit , Si-Wei Liu , Eli Cohen , Xie Yongji , Zhang Min , Dan Carpenter , Christophe JAILLET Subject: Re: [PATCH v7 1/4] vdpa: Add suspend operation Message-ID: <20220811042717-mutt-send-email-mst@kernel.org> References: <20220810171512.2343333-1-eperezma@redhat.com> <20220810171512.2343333-2-eperezma@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220810171512.2343333-2-eperezma@redhat.com> X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, 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 Wed, Aug 10, 2022 at 07:15:09PM +0200, Eugenio P?rez wrote: > This operation is optional: It it's not implemented, backend feature bit > will not be exposed. > > Signed-off-by: Eugenio P?rez > Message-Id: <20220623160738.632852-2-eperezma@redhat.com> > Signed-off-by: Michael S. Tsirkin What is this message id doing here? > --- > 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) > + * @vdev: vdpa device > + * Returns integer: success (0) or error (< 0) > * @get_config_size: Get the size of the configuration space includes > * fields that are conditional on feature bits. > * @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