Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3087371lqo; Tue, 21 May 2024 06:39:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWnY6hHMzRr5olmOFJJEZk8vjqWNU2ONyTSVmfeLg6jTuNdSSEV9rmTbBM18tt0GO6l8ld54gmfGrYDaMkMZvjOAx6UE91bGElzDg3F+Q== X-Google-Smtp-Source: AGHT+IEzcoBfkmI0QXoFwahYxlZrQ57P7igJKt1QwVnnuflACLV4S1tXNwPAal8OvJ7ITXqfWbKo X-Received: by 2002:a19:4358:0:b0:51c:bd90:e60b with SMTP id 2adb3069b0e04-5221006fa0cmr20157503e87.25.1716298744193; Tue, 21 May 2024 06:39:04 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-574b4aaa95bsi12064344a12.31.2024.05.21.06.39.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 06:39:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185023-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=VODySkte; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="OzJPBea/"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-185023-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185023-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BF42F1F23AA3 for ; Tue, 21 May 2024 13:39:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A8F87EF02; Tue, 21 May 2024 13:39:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="VODySkte"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="OzJPBea/" Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46FB27E57C for ; Tue, 21 May 2024 13:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716298738; cv=fail; b=T17yYSX7fqSzhpuNoM5B/DucEfmBuqZ04Fub5BKsbn9ANcyMeEUYbmHElJ2eL4gxwYNNo6QtD9DBcABkPZ5sR8lWCziKXaeL06dTLqO2cSDdl/gzLP1OtTuETXfJ1tYuw6DNPwCiCQT9SwehMo8HjrgDxgu7HAf+S47NsNjDWxQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716298738; c=relaxed/simple; bh=51o6r9bdVcODuJSofVue62AoY8R6O5PydSCLodm8keM=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=mlNifLTETckPvl5rOaH8SG/FWBSA/wNgytyzM+xHtVGY1IE3exG2MLoC9vCh0jD0lcl8bz4Hvt5+Xg45L7r2+R5/lH4xj7VZFl4r230AB2qmYowTRT/gYJfM96t1DgAmIPO027sfqbNFz2djCQ9F8AmfQpXVmzuBI9sL07T8YHY= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=VODySkte; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=OzJPBea/; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44LCxvPU014980; Tue, 21 May 2024 13:38:42 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-2023-11-20; bh=X6QsKKpF84uMyllc53d0qWxsLsP8KzpQdS7v4ecB+oY=; b=VODySkteQb668VS74+g9ApyuP9/d0gvgpwJkbp7L1kVJSbuywNIJhIgUs2s7xPIAAF3n IO1CTl+XcoEfN8y0xiLC+lys0ZeCxA5fxtHga1oEat7eRDDrPQEjkeQee/2pUYLgtbz2 4sfcPdXMbkVh6mpiW6klpyW9eQZfXvzMdOM6HFLL1AmTKupiBzmxf1M0T3Z+QWl5SsDn SbgSLc/iuiiz36jH5H5Br4gPR+kKsr8paX2sGNgiCQM177XBEf6Gx6x2YSYvx4FZdrbO FNmkc1NYuFmK0OTJmpds+yYxEU9IxNk5ootDd7F8AD4S+ASopEhvSm+/4XN55H7yCH5+ sQ== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3y6m7b55gc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 May 2024 13:38:41 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 44LDSOmZ038382; Tue, 21 May 2024 13:38:40 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3y6jsdr94w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 May 2024 13:38:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZdcCb+Wcoa9dLY91tLFk+QN3xxdvLufITUJ+ga5ynOH4EsaKFlsViAty54AeL6C+BCCQ5VW1UjHFgRnf1W/AzvlCSZZirDMvBCgs45igGTs8eimO3UZ/iOSno088Wba9o6BMzr+OHcnF8CE3DUNyihNt9G+b3KbCcxQODFGGbjUCpP8ELfxbUJ2/Z3ZG00LaN6pXINRAGa2j0DQwwqVA/oAsg+jMHqLAVzOpjJnaXfnAycx/xXGGh68UBfIa8iUnJUUmGR+zUodiU+aGLx+uiwUmgFlhNoTAkjO+RbiS/4K3qX+CHj2Yr7l3qjTlgxNy4uqx9vrjiRkNPwlUIRL5uw== 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=X6QsKKpF84uMyllc53d0qWxsLsP8KzpQdS7v4ecB+oY=; b=oDpAiPVG1tDeKJD4lmzYB4z/A+KOmdYSqLaWZk/HFkKgQTMY0Kb6S9+ABh7c0n/hphqMgGyGqdlJVjWNciKmGipKYY0XRcabTRsaT+fNGoc0sBoikRWVmqLicHbsuDGWDiRYXDWYIUvWr8SoXmqaQoLM853OkIjVWGYY4MwCtd3alnpPeLJWEb3xRtp2zqdwSDlXj9od20SWROlTcKkaFzpZ2x2RnJncGkN8HsnsJYQe3+hROEukGtyFdhKLs9ilJXrPetVWz4gbjfh9OgtfVBuIhfEl/t/WTTiVUHWtDpJo8vsfUe5An5Fl3M7xOROUzcZsOMd0DSrdQi83baxKIA== 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=X6QsKKpF84uMyllc53d0qWxsLsP8KzpQdS7v4ecB+oY=; b=OzJPBea/BLfWilYWX7xXDhxFGD8p692i45szbX8Oan6ynDmRiGpUndui4PjyK0c3sni69ANlIF0LXwPrtOwTZlZH6F27/r7pvFI4lDn4UzfnmDgcoxkk7Fx0y0iI+P9bc0MNeCrj7BC8LiZfdIxCwnJmGed5Y9eMaEoMmz9XCn8= Received: from SA2PR10MB4684.namprd10.prod.outlook.com (2603:10b6:806:119::14) by PH8PR10MB6527.namprd10.prod.outlook.com (2603:10b6:510:229::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.35; Tue, 21 May 2024 13:38:36 +0000 Received: from SA2PR10MB4684.namprd10.prod.outlook.com ([fe80::e06f:6709:57b4:91a2]) by SA2PR10MB4684.namprd10.prod.outlook.com ([fe80::e06f:6709:57b4:91a2%4]) with mapi id 15.20.7587.035; Tue, 21 May 2024 13:38:36 +0000 Message-ID: Date: Tue, 21 May 2024 09:38:29 -0400 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V3 1/3] vhost-vdpa: flush workers on suspend To: Jason Wang Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, "Michael S. Tsirkin" , Si-Wei Liu , Eugenio Perez Martin , Xie Yongji , Stefano Garzarella References: <1716218462-84587-1-git-send-email-steven.sistare@oracle.com> <1716218462-84587-2-git-send-email-steven.sistare@oracle.com> Content-Language: en-US From: Steven Sistare Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0115.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c3::19) To SA2PR10MB4684.namprd10.prod.outlook.com (2603:10b6:806:119::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PR10MB4684:EE_|PH8PR10MB6527:EE_ X-MS-Office365-Filtering-Correlation-Id: 446ccf5d-89a2-4dd6-6c59-08dc799b50b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|366007|376005; X-Microsoft-Antispam-Message-Info: =?utf-8?B?cFlaaGpzdVNpNlVaMFNQOUtuZUxjbi9BQWV6UU9yQkFCV1NGRVVhYjRWOGdl?= =?utf-8?B?WEVJVURiMk1VYW5hMlBCK3NUZ01OeXB5Rnd1N2R5NEpFdGtCdFZ6bUZKV0NR?= =?utf-8?B?VTZBaU5lZ3lBTXRBWS8ra29kay9yd1p0NS9YVUhDTkFmWmtaMzhUYU9OZWVF?= =?utf-8?B?MXNxTnZwdmZOV3dqeG85V0hHVmJ1VDBBM3FxWkdwY0R6akx4em9WRzRmSlpB?= =?utf-8?B?TDhzdm0rZ1ZNVHVuQS9uM0VIeUNDL0hTWGF2Yz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1daWk9PbmxzTXkwN2hBMTVZTVhCckg1UXRLZHl3?= =?utf-8?B?Zm1ZRVl5YyswYXlBYmhhUlg4V1hNMmNHazdOVE5LZzZ4TEM3MmpJc3IzRnMr?= =?utf-8?B?QUpzM094NUhOQXJaRkNXMmZGWVA1b0ErekgrSWJKOU5OejZYZW9nMnl4cTRP?= =?utf-8?B?OHVUNjdzalV2S0h1dW55RW5pYjhaTVpNZXcyejB6UGlWdGZSekZ0Qjhxd21u?= =?utf-8?B?SkFBM2pwSXJCOEl4d1dCUUw0aW5ta2Rxb3pUdW9Vb3A0OUxoMmtzODJ2aHpJ?= =?utf-8?B?Q3FISnhaMkZIcDJIa3p3dGJUZjI5MEFsT3g1NnBBK01ZYk0rT01IdER0VE1m?= =?utf-8?B?cmxSWUg5T1k3ZkE0TnZ5VnhJU0xKRVdsaGhiR0Nsa1lTcmdMSUdKemxHQnZq?= =?utf-8?B?clBrNXBHdlBuaUhUM3UwV2I3UFNDelJ4QTI2NHV2NmplbzJiMU1wcVprK0s1?= =?utf-8?B?aFE2WVl0Nng0WUFLOEdORGRFN0Rsb1Nzby9UdWdZWWxpdzJrcnhxa0dsNlBh?= =?utf-8?B?R3pIUHowcTBrRnR2dm1NSGRpaDNNRTFJcjc2cHUxejRERUM3WHFkS0VBPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA2PR10MB4684.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(366007)(376005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aE43bzNPVkxRdnVoT1BBb09GV1A1a1JEWW5FODA2dFg5Q2JPQTRvbkNCL2Vy?= =?utf-8?B?a0IzbE5iMDFoL0FaUjhUWDV0cSttK2pYUXdXRVRDZVQraVNiYjhOYWdqd21v?= =?utf-8?B?eC9lWC9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DFpVy91M2NW?= =?utf-8?B?ck9lamRML05JNTNBdkpHSnNJeU5Taml6U201L1RaVWtkSWxZQ1h1a2ExSTlV?= =?utf-8?B?Znl1QWhGN0ZqbFVNUWNUK0daK29HU2FGMUZiME1jcW83UFNGeUhvRUsycm9i?= =?utf-8?B?UFZ6aEJSSVRlZEltS2pKMlR0b3g1R2l4cDgwV0gyb0p6ZDNWTy9wVlFObUpM?= =?utf-8?B?b3Q4cDNnRm5zZ3R3TGlHNFExRUdtNWJZQzdIOWhHTGxzS1ZqMms5Wm5weXJr?= =?utf-8?B?OGc9PQ==?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: R5QW9ZJ3umUHWGYZQ26CXHduO7ly3PW+towmF77TahLLwXG9qfAs44B6eGaA3b9/7mDlIA0lfPEM05OidfmFoOcWY9qcVHPhHdmRTGyEhSoq4PW58KFTzn4ffmubmgz6wQgOv8JVOlCWpIAEFlPB3DXDf3BVQ5/BuREmymjpUjcGR4lO0rmz7v1PgKNJLEsnaK6Md+mBc58q155wyy4GWxTPM76y/tLWdSJDUfJ5jP9wR8Z1TJuAkSmMHkYPG63T+R2CFYb7J8oUoZl8TbDAwEhoylHeUch4MnIMX4GwDxLFwSHsQ4Opq1QeTTE7hSEz0j23lsZZmaXkabnMdswpirghlSkgId067V0hKnC+NQJnty/Mmgqdd2kF5U1bPMxb6xcxBwUebkSdVVZu+hPkwYknW1UEnphATs9pAjqe9X3Alf0t6u979lypP10IpUvtG9xKCbOt3XSkB3+P4vcQ1iuxvsYcHR724aH6Vek68SRr/eb25IJPswpmFrnFSlQ6xTolZYeEpuvCPRUftg/FktctbHDxvDruQmOMVlN2riaRSBhxLNHkbKQ3W9CuCKXsj0DulXai/ZoaDtQMELl0DvBgjAKvJZci8NwzVkWpipE= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 446ccf5d-89a2-4dd6-6c59-08dc799b50b2 X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4684.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2024 13:38:36.2500 (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: sDiXU02hM+62LOfE+c/soG3R6OowYiOTx3N1MA3m0UceVSlCFjU793E0JOWLSm9SThi5uOxQ4CMb15duOqpevn/+epGdAZm2ZLiioswqW78= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR10MB6527 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-21_08,2024-05-21_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=999 bulkscore=0 spamscore=0 malwarescore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405210103 X-Proofpoint-ORIG-GUID: unqyrUCrkVxFPd243rTJbskGc35c3xHM X-Proofpoint-GUID: unqyrUCrkVxFPd243rTJbskGc35c3xHM On 5/20/2024 10:28 PM, Jason Wang wrote: > On Mon, May 20, 2024 at 11:21 PM Steve Sistare > wrote: >> >> Flush to guarantee no workers are running when suspend returns. >> >> Fixes: f345a0143b4d ("vhost-vdpa: uAPI to suspend the device") >> Signed-off-by: Steve Sistare >> Acked-by: Eugenio Pérez >> --- >> drivers/vhost/vdpa.c | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c >> index ba52d128aeb7..189596caaec9 100644 >> --- a/drivers/vhost/vdpa.c >> +++ b/drivers/vhost/vdpa.c >> @@ -594,6 +594,7 @@ static long vhost_vdpa_suspend(struct vhost_vdpa *v) >> struct vdpa_device *vdpa = v->vdpa; >> const struct vdpa_config_ops *ops = vdpa->config; >> int ret; >> + struct vhost_dev *vdev = &v->vdev; >> >> if (!(ops->get_status(vdpa) & VIRTIO_CONFIG_S_DRIVER_OK)) >> return 0; >> @@ -601,6 +602,8 @@ static long vhost_vdpa_suspend(struct vhost_vdpa *v) >> if (!ops->suspend) >> return -EOPNOTSUPP; >> >> + vhost_dev_flush(vdev); > > vhost-vDPA doesn't use workers, see: > > vhost_dev_init(dev, vqs, nvqs, 0, 0, 0, false, > vhost_vdpa_process_iotlb_msg); > > So I wonder if this is a must. True, but I am adding this to be future proof. I could instead log a warning or an error message if vhost_vdpa_suspend is called and v->vdev.use_worker=true, but IMO we should just fix it, given that the fix is trivial. - Steve