Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1269959ioo; Sun, 22 May 2022 09:00:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo1GIimNfOTyKcbZfPVNIXMq90F02h/eYzJIxDzdFbxdAFmt/DHmL7aS/zHTu6lunc32Lv X-Received: by 2002:a17:906:1e8b:b0:6fe:c45e:814a with SMTP id e11-20020a1709061e8b00b006fec45e814amr4586390ejj.304.1653235212684; Sun, 22 May 2022 09:00:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653235212; cv=pass; d=google.com; s=arc-20160816; b=COk1D9cI7InsF1zCxCgzyC/YYmb71h3wLeTDq/Cc2kYhGkUUZewGwJram5NLOS2mLl 1MagZMcahkTTS/khtuhbK5Lnyv7TUZuQrYFkGQ01rgCdVLGZ4BSJxZghsu9AqpyrpZHb mEkVZ5DrXiJxI43LQbTkrVn5ZiTEIgtqdao8WVamV3GH4JU48bbGDsvRztWSWegZrcWb XGB0EkG8FpvUkqSfXyUrqLCu2mHeUoYj2IjrgQQ4e+UacE2ffqIxP9XqSAwN1U20Dmhr 4x0r9+mF+scFwGLlR1SW9HZTV/hWJH2RLT3XoEjMd0nU/eKgldBkYJs5oxKXGkt1UAwG NP9Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:references:cc:to:content-language :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=qscWYfOqE5Go2+R5Nsp3asBo4699WTxs4pI4VEWlAQA=; b=HsRVu7th2RTAIReqZ9yyApBjpd5jj9IzWpqr7GL054oeH0zMGnN56dCcXDPT51ezz+ A4+30+M1DtqSWY9QrOyguPJo2y9xOfN6xuY9TTvK9fbC83pDSumpPcNOi4VvV1jcRWeB swMYCWuKKojewbE0pspL7yS2o7WmA5J6w4lRkmFejHylT/ivvucaFGEJr069Pdvdfvdb NzMKl00mcvM1Zx+C+2VGYvHIKhnbtqIIjjPIVguiwman7ULVBKEKYwXmVhZtr12mYnlL MUtTppMdnjMVb1lhzRC6/SBvlWU83NQXaBE2rPCZvZ0NEg7kbwQlX6DRtXTiiEaotb32 T1Yg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=kLVVzDq3; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="Qg/1jmQp"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js12-20020a17090797cc00b006f3a0b4e2basi11979939ejc.614.2022.05.22.08.59.46; Sun, 22 May 2022 09:00:12 -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=@oracle.com header.s=corp-2021-07-09 header.b=kLVVzDq3; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="Qg/1jmQp"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240479AbiEUKNu (ORCPT + 99 others); Sat, 21 May 2022 06:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235635AbiEUKNs (ORCPT ); Sat, 21 May 2022 06:13:48 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49A869346B; Sat, 21 May 2022 03:13:45 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24L3Y7DN004684; Sat, 21 May 2022 10:13:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=qscWYfOqE5Go2+R5Nsp3asBo4699WTxs4pI4VEWlAQA=; b=kLVVzDq3SwtCM4uRWPux822jm6sYsfnG33sGLO/60+VOaOeJZCyvy0cd8kYaewhJ7Vw4 0C88c7DJx1kmWnFKQapH3WfDaypXX0hKpwDvDp/yP3OFv9cdtH1pYuwBNAOQbm0FA1he xHwRJS1iYFyiUlQEjBfEHTBSjyt1KjuSOHWK8bopqDDEWTD2U5Gsa2DmDfQ8/9GCnYeR qBP4BBSQD/Cpw53Tuqjs6+1P8Yf2Z98zqHs7I4xQnZjiJ00H/Q7gZn+8Vc4sEp7pCzkV oRznUUpMfug/VyByPLXx6dD5beDI4WRRGkKO/SXSCGMQ/jYymvucsB2mzvdx7rQxJjV3 AQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3g6pgbge42-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 21 May 2022 10:13:28 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 24LAA89E013930; Sat, 21 May 2022 10:13:27 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2104.outbound.protection.outlook.com [104.47.58.104]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3g6ph5xts8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 21 May 2022 10:13:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fK8hWcEEcfty6L45OWBQ19qY+BilFYYuLeBBYCYf0k0LEA+UyY/tnGmz2vAOu0+9GMMaOcOF7adzrfpIByksKzGXXvA1bluBQcDEGzr/+DO4gqgh5AbR2WYVy0Fy6ggFHtp72UaeatArSY6hQWkOdLSemOyR+oKRYMSGol3E2OnafwNbEuRgdWXClDqyliQiShjOoV1uDx/EEEr2oJ6ZkeNpSkve0UeWhpHKnC1LsGLmtMAQ8Gek2MjV4lSma5wzPiHob7Ei1eo6wauQ6fStnQDdwMpqSgmzMu9+5boLsbygXUVeRwYd15Uz+sUMgITkKCERVomfW7yChQwws7swfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qscWYfOqE5Go2+R5Nsp3asBo4699WTxs4pI4VEWlAQA=; b=RG7e0/CalLTKu7IhScfL7A8wTm6d7xhWXejqYCzt1oioIBYjV0N79P5zCQfkfKzrn3vjiiiXrVFFdIZXns1j/SZD72Nno/F5ImW0ARe5yNMOrD4wFUNyS79s1gLw1wt3DDqjDu53Jxla1r1+m/IsQit65BVLHxqeWKoMYEfFPAQCyGwWF0+8nHWD0bU3yFH07JmsgDzKP+FkuXc7SjKDH2C3sraIFz4IAbwzywozFzReYtlPbivP6PDtFYSnd0Tf9TCHH/N4HKC1sh973p+VfE3oeK0LiBa9mU5wps+dc/vLQPS1oxMgAVmNLkaFKe2Y6rCvlaRk6DD1pBXAt3k3aQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qscWYfOqE5Go2+R5Nsp3asBo4699WTxs4pI4VEWlAQA=; b=Qg/1jmQpA94CqcOTW355h+Va+rg1wEzqFSFMOoSpWuQDsgEYL4Qyu4ei07ZZ8xYRygF8itg/p+OQyhEqp89Qf407Mj3DIdcUIQxyAJnIcgJ9En4FlRkYKpfYVyE7b/VUzuiuADBfjTzjtdjJs35CCgJlamEI45fY/pTMGrv+NmQ= Received: from BYAPR10MB3287.namprd10.prod.outlook.com (2603:10b6:a03:15c::11) by DS7PR10MB4896.namprd10.prod.outlook.com (2603:10b6:5:3a0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.13; Sat, 21 May 2022 10:13:25 +0000 Received: from BYAPR10MB3287.namprd10.prod.outlook.com ([fe80::c89:e3f5:ea4a:8d30]) by BYAPR10MB3287.namprd10.prod.outlook.com ([fe80::c89:e3f5:ea4a:8d30%2]) with mapi id 15.20.5273.017; Sat, 21 May 2022 10:13:25 +0000 Message-ID: <79089dc4-07c4-369b-826c-1c6e12edcaff@oracle.com> Date: Sat, 21 May 2022 03:13:23 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH 1/4] vdpa: Add stop operation Content-Language: en-US To: =?UTF-8?Q?Eugenio_P=c3=a9rez?= , virtualization@lists.linux-foundation.org, Jason Wang , kvm@vger.kernel.org, "Michael S. Tsirkin" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Stefano Garzarella , Longpeng , Zhu Lingshan , martinh@xilinx.com, hanand@xilinx.com, dinang@xilinx.com, Eli Cohen , lvivier@redhat.com, pabloc@xilinx.com, gautam.dawar@amd.com, Xie Yongji , habetsm.xilinx@gmail.com, Christophe JAILLET , tanuj.kamde@amd.com, Wu Zongyong , martinpo@xilinx.com, lulu@redhat.com, ecree.xilinx@gmail.com, Parav Pandit , Dan Carpenter , Zhang Min References: <20220520172325.980884-1-eperezma@redhat.com> <20220520172325.980884-2-eperezma@redhat.com> From: Si-Wei Liu Organization: Oracle Corporation In-Reply-To: <20220520172325.980884-2-eperezma@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BY5PR16CA0005.namprd16.prod.outlook.com (2603:10b6:a03:1a0::18) To BYAPR10MB3287.namprd10.prod.outlook.com (2603:10b6:a03:15c::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f667cfc5-1270-468c-f51d-08da3b128adb X-MS-TrafficTypeDiagnostic: DS7PR10MB4896:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZCA/pie8XZ/CIs6LFrCPEiSwAlHBUtvJipR19TzkoRotNgfaqH7Bb1aweArnWc8DUqo38MMLxZ0AHzZSUlxG24Ia7+svCCgoAirObEas05c+hcbRXyn7XACmOWmI/2FKzg6QKdEK+JqFC6Tkqlcm0nyN0lcGsdt1reeySNFxRlbmSj3cvP2NGXG//WHjTr3ayYMxLOdjX/+vGqhoewEaFAmARBm+wKM8hIAvMyf9nsjKSxML5wuOlneZRmwhjt8U7VtNYmhD6Zs/4cVxcM3pQuwsKot8ZZzhlDBbIBY2Lhx/UR1r4ai4+1Y+JAb7Wqtck+JpnVn1aVAuZwQ9+cN81Bqmb9WaDgugi9S5FAejuIeFAopPL1HYVVWuKr3t2+U4p75SYFssEBsiXw6K7y2yoCQLKUgnD5pX0u7MlNCdpSWp/C8cBi8Tjvp7wqVfBDxPNs4dBuPG+HB72hPUCsxQbohv2SvIUXZ965mO+29ySYBpR7GLU72b5uImyRYfWSUcRZLMTtuRS3AXcMbMgFyAJI8uBh7JV8vsMBRuSvpA14LdQhqyo3otWlAkftyaM+46RjRkzu/hkhK/LZoF3iBPy5OVzgAs1+nEZCeLhoEEojDl1l7H0H25XL4i1Yj9DOKpo0qv8scQO8HSxW6DUP5uQgQFlxB4z6OCcADc99rv/OjAGA5Gir+nYY3Xa159f68HUezxWEY604v6sPq0m7caUivOcBoGqSCCOq8NvIvzczc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR10MB3287.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(66946007)(66476007)(508600001)(66556008)(6486002)(7416002)(38100700002)(2906002)(26005)(4326008)(6512007)(31686004)(6506007)(53546011)(36916002)(316002)(86362001)(54906003)(8676002)(2616005)(66574015)(186003)(5660300002)(83380400001)(110136005)(8936002)(36756003)(31696002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T1E4SU1iOERGNHVVcmgxV3cxNWYxVXQzTjBJZ1ptOXZ6bHJnOWozRERqb0hP?= =?utf-8?B?YmIrZUtoK0E0V3cwZGw0dlJjZWtXV2VqUW1pOUcxcjhETVZZT1B3ZmpCL2Yw?= =?utf-8?B?UDB2TlcwM1ov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yRm1KWkVO?= =?utf-8?B?Y1Bjc3FweGpBSG1ybmM5RE5XK3dMM3RBam15NktMaEw5eDV0Ymw1TmNIY3lJ?= =?utf-8?B?ajJhWDNlamZRTnU2TzJJYUF5VG9Xd2pZTnd3NjByMWEvVUZYcTV5YTY5dmtW?= =?utf-8?B?ZlI2VG5kQXhoTWx4SSt3ZUN0TWZrSHlSaUxSN3Y4OUVVSU9SeXNVV1dSSDlw?= =?utf-8?B?SEo1TnRYQ2NXWm1PUXdEbUMyMFlmcnRINUJDR0thdjJiZm9RbmN5S0RiazhJ?= =?utf-8?B?QVkxZ3RKQmZzM3l4K1g4bnVGbUMxVzUxa0VIcnZ2UlFERmNCUmxGUVZqMmZr?= =?utf-8?B?c053SlRrT2RUZUhsNUNFZVZPKzBKdkh4dkEyS2ZXUWZTb3Y2YjJSOFFxbVB5?= =?utf-8?B?ZkFHNkJyWHl3R1c5TFh5QTBhTTVXbGdGd0FMeHdvQ1lCRmJGdVBVUT09?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f667cfc5-1270-468c-f51d-08da3b128adb X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3287.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2022 10:13:25.3967 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 69YWO+q2+LHqSQd0Tsw2C0fZq1KtOnRIHVgP1VLmQTvsq08ebJahTxpkFm/U4i1zJQTkohzhypi3U/cZsW9cIQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB4896 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.874 definitions=2022-05-21_03:2022-05-20,2022-05-21 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 malwarescore=0 spamscore=0 suspectscore=0 bulkscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205210062 X-Proofpoint-ORIG-GUID: 3ZK2lHW8acN80MO4fd1kTSD_GSOYxkrG X-Proofpoint-GUID: 3ZK2lHW8acN80MO4fd1kTSD_GSOYxkrG X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 5/20/2022 10:23 AM, 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 > --- > include/linux/vdpa.h | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h > index 15af802d41c4..ddfebc4e1e01 100644 > --- a/include/linux/vdpa.h > +++ b/include/linux/vdpa.h > @@ -215,6 +215,11 @@ struct vdpa_map_file { > * @reset: Reset device > * @vdev: vdpa device > * Returns integer: success (0) or error (< 0) > + * @stop: Stop or resume the device (optional, but it must > + * be implemented if require device stop) > + * @vdev: vdpa device > + * @stop: stop (true), not stop (false) > + * Returns integer: success (0) or error (< 0) Is this uAPI meant to address all use cases described in the full blown _F_STOP virtio spec proposal, such as: --------------%<-------------- ...... the device MUST finish any in flight operations after the driver writes STOP.  Depending on the device, it can do it in many ways as long as the driver can recover its normal operation if it resumes the device without the need of resetting it: - Drain and wait for the completion of all pending requests until a   convenient avail descriptor. Ignore any other posterior descriptor. - Return a device-specific failure for these descriptors, so the driver   can choose to retry or to cancel them. - Mark them as done even if they are not, if the kind of device can   assume to lose them. --------------%<-------------- E.g. do I assume correctly all in flight requests are flushed after return from this uAPI call? Or some of pending requests may be subject to loss or failure? How does the caller/user specify these various options (if there are) for device stop? BTW, it would be nice to add the corresponding support to vdpa_sim_blk as well to demo the stop handling. To just show it on vdpa-sim-net IMHO is perhaps not so convincing. -Siwei > * @get_config_size: Get the size of the configuration space includes > * fields that are conditional on feature bits. > * @vdev: vdpa device > @@ -316,6 +321,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 (*stop)(struct vdpa_device *vdev, bool stop); > size_t (*get_config_size)(struct vdpa_device *vdev); > void (*get_config)(struct vdpa_device *vdev, unsigned int offset, > void *buf, unsigned int len);