Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1112054rdg; Fri, 13 Oct 2023 10:29:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGr5MD7a90BHx1fQynIWUFS+Ge3vzbc1CXOLArjGqYYPgype9xqg0GS6OMc0tojxd5vyUUl X-Received: by 2002:a05:6a20:8422:b0:140:730b:4b3f with SMTP id c34-20020a056a20842200b00140730b4b3fmr35352413pzd.1.1697218196153; Fri, 13 Oct 2023 10:29:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697218196; cv=pass; d=google.com; s=arc-20160816; b=lY2zKU9sSMchpaJ/Atpd6OoUwiBoRuYPaY5x57DdBXg31uftnqqQX+T8MILnTAo0ud SnSE5Ei31aT6HMZ1qMFPUwhqv+2qZiDHuQfZJYPtaO/8qxwg1tdtzM2uxBB22Rn1ol9r Dio5OLh07D0ulIE9lZAeiRyRkDIVMWsSH5D82mKHR3ADHp8y+TnQl/JR3vmSArnA+YW2 RVwwCf31fIis6szLNRDAAdsThwC5eIZYUdaShys4DScdxCTJDmem+mlIKmLtkC0BUBMS La8BPPJjvFYbJ/LdXe0xDhhz8SMBM2BEXWfGVtDTaRabBHrfpnkfTfK2lXO4FzSJwHlH XdTg== 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=OMeJ0aX7xJTyhul1T8v5Z5XqyWqE36dHaGxM5jpBryw=; fh=jR6wkYMO17pBleYCfT1gCPMJUG2RTvdSiZBoZagmQlg=; b=elN34+RIkXV9eEO2+l6IAb6Qe3tnHFc+Icz/nomZHc4S9fNXUkh1lSPwqpYMc3h+8c 7Ui/YoYdJslunzCky41wPRNMrJUeXWp+ZaXB36MIelxVUMKWqoCTvkrZ2UrYYzKd4mf3 SXAgncwDqcmnCs//sQewHma4jwje+V95Wu67B4iwMcxysYYtWSx3TyiAwHoBr/yFC2I7 tyFpZUJhGaUsWLjOOWZo4l9gqa72x471+PbKl/oPRuG7iMdRaXY8iw9t8D5GPWUtDaLN as0tg3dLbaK3KvNd5BeXzHZSEsluwemEJK274BX8EsXY8zyytdLyPvJXly65ubnqe8L9 cjVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=zsK6AYqZ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=o1p6zWXL; 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 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 10-20020a630a0a000000b005a0110eb926si4847443pgk.593.2023.10.13.10.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 10:29:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=zsK6AYqZ; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=o1p6zWXL; 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 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3231F83421A2; Fri, 13 Oct 2023 10:29:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231447AbjJMR3s (ORCPT + 99 others); Fri, 13 Oct 2023 13:29:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231443AbjJMR3q (ORCPT ); Fri, 13 Oct 2023 13:29:46 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB942CA for ; Fri, 13 Oct 2023 10:29:44 -0700 (PDT) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39DGa88L002557; Fri, 13 Oct 2023 17:29:35 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-03-30; bh=OMeJ0aX7xJTyhul1T8v5Z5XqyWqE36dHaGxM5jpBryw=; b=zsK6AYqZaa8MI7qgskMO1QB12zV3mlrrc3gUNkAdR8XJ2mm3TRo7dNfSLkfi4pESjpS3 OQiKkGm41rtRwX84UDSq9Cu8nxZhJGMwsxXc8nKNl3fpGSqYSZ1FE4xYEAm+Moabh9Ao R6mRu/H94BTMfJDEz79JH0AwH6dOyj88y8VWRVKQZTG0kCNwPZf2+uwDJIqSHv9JDedy IOrRjQIP5UtFtGn0Fpm7dRnHrKO2l1L6JLsiC/CujvKzIvVnNArtx62sewNo2+p0rDG6 sUNIsf5HD3LfL3crsHZA5rmxvLpBRqc60n9Df1BMLLr04lNrPBeVZuf9mKJkFAXB3jxi kQ== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tjycdwmc2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Oct 2023 17:29:35 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 39DH3IuP040242; Fri, 13 Oct 2023 17:29:34 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tpteaw3nv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 Oct 2023 17:29:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FrhRGCsj3XG9uRPOw6R3q0/rTfCYyAbG1SqkUwII4iPC8qYha2Hfar3q5jfQMI8JL03ngaNyWTKabnEtxyKIbgY5r9KE3vQxuQb4prAQm6gZxEKgeP3tWYv8zrp+QOt2D4Q6BU0UcnCfp9u9/2P6ZQQ+lhtzHJINeFpt1fa0b8CYn6AmHjwNUBk3wtGU39iubKAX+Npaybrep0OIRCEwdZGNd2rY8IvkjuKM3MWWnT7VoqzUdga9IyUFgmYWq1Rqq/DYnjwIx5hRKjXRgC7YUCpvoglk6Do/6d7wuhfQGpc7QMFnsE1J4gqoi8EUl3BGxN4WKqZeqDDe361OkRJpIA== 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=OMeJ0aX7xJTyhul1T8v5Z5XqyWqE36dHaGxM5jpBryw=; b=J7uy+Ox3HpEMvCDH7DJ+67FSk2aILZXMgdiNIwTseSt4CSTT47Vbb6hozU8rhNEBxcId3Y0h1T1S0CWTI88Z0qvieaJ5CZ5c13JHxpHaRt9Z0HYJ96uE4Im8rFao2/gik77HnXAjrl0HWNvWHA8wc0cziiROu2AyVJwJqU2LTpZu5f+MJ5kUKXPBxHw+FJz4FOLEkJYOJa3Y2MjjC2X6Douizm1GbwFfzhlLlbYrkuVHfolZA3Li1JaUnabZi8dcHQMb+UP+2vFTffIuIJKMu0uSKXegroFPFyRuLs4yCd91siLOIA3Z72uqDWaPk+zsK5ZH2NRtsjVaeebscljNvw== 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=OMeJ0aX7xJTyhul1T8v5Z5XqyWqE36dHaGxM5jpBryw=; b=o1p6zWXL0LKqSKc8v1RGvL8uUl8RgiBUYw6VGXeu3yXDAQmiRLqyXD+Zeeg8ssIfXWQ3CnhBvgGeLnmTEDZfCP10sF35GMoXdU0WIgnY8gn1OCGvX9i5Y36dhAKBgf6tL1szK8cWMfBG3lu+vKikvd5Oo1V3kSzBm89Dr4AIFCQ= Received: from MW4PR10MB6535.namprd10.prod.outlook.com (2603:10b6:303:225::12) by IA0PR10MB7253.namprd10.prod.outlook.com (2603:10b6:208:3de::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.46; Fri, 13 Oct 2023 17:29:31 +0000 Received: from MW4PR10MB6535.namprd10.prod.outlook.com ([fe80::5393:c70f:cefa:91c1]) by MW4PR10MB6535.namprd10.prod.outlook.com ([fe80::5393:c70f:cefa:91c1%3]) with mapi id 15.20.6863.032; Fri, 13 Oct 2023 17:29:31 +0000 Message-ID: <2222edd1-4eb1-4b06-87ef-df2d4f591931@oracle.com> Date: Fri, 13 Oct 2023 10:29:26 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH] vdpa_sim: implement .reset_map support Content-Language: en-US To: Stefano Garzarella Cc: jasowang@redhat.com, mst@redhat.com, eperezma@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org References: <1697185420-27213-1-git-send-email-si-wei.liu@oracle.com> <4o4yuuezigilikolv2paxb7icrsm3gdnj5aeoe47uotzju7xve@s5vqaafrppdv> From: Si-Wei Liu Organization: Oracle Corporation In-Reply-To: <4o4yuuezigilikolv2paxb7icrsm3gdnj5aeoe47uotzju7xve@s5vqaafrppdv> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BYAPR06CA0003.namprd06.prod.outlook.com (2603:10b6:a03:d4::16) To MW4PR10MB6535.namprd10.prod.outlook.com (2603:10b6:303:225::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR10MB6535:EE_|IA0PR10MB7253:EE_ X-MS-Office365-Filtering-Correlation-Id: 366bddd9-11b3-4571-03b7-08dbcc11f586 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V9CQYLrwBAMnXwnbvZJbjVeRiJyjmzPoKF2nILoUynIq3OFDAEZAp37Rz9EwgeVPypUfyypSIwWI7iHnXO6yRNcqxef5UIOcNhOV67vyv97ZmeJ65F4m9/0rNKkhqmP8EcYPGcj9BdRJCIT45YssRbqFZoBhjFlGrZoHI5jGW3CIgu/6pWOS+ahy32q4arPSDmtRSlZoRqi9dpqJHirFIlDHZhv/JH8ChyBuiV2LMBeH6ZOD4ArBV+1LJmhcC9byeVfcp1H350IeyUVfx14SZRo8Bg/0027LVS4viCdllwtdiX90yMdipqzWOabi98lOJAd/Pmho8G/+OcB/wWRsi71N3/scfsw08zATNZW9fLnQoGwAbA9YDH1EUTQn19b6fcNWVkvgyYp2jPS8+aZiJPg9B0XCOSMNYPRiyA6xkKea4Kcx6lEQyE3PzFZ0jm3jwGOZh0ue7i5jruNHEawm2kUIowzQ0FiNSuHojahSXfapxr3xtq1PyLF0HFBYHIk/jUI002t6SZfRV/gtwTq1sddRVovxE4c0gKTQiLrmkUZKXtvrhDaEL4AXD4BNod3OCabmY604Exx4L4lgc9T3TAsYfjiJZNxeKQsFBK8TDjrcKVZSxzsTlaq+ovzPt1SlwI+THB/sRfxpl4b9E/QSJ6TIqWfDl68xCr/VyfROgA4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR10MB6535.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(136003)(376002)(39860400002)(366004)(346002)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(26005)(6506007)(36916002)(53546011)(83380400001)(31686004)(38100700002)(6512007)(31696002)(2906002)(8676002)(966005)(6486002)(4326008)(86362001)(6666004)(6916009)(66476007)(66946007)(316002)(5660300002)(66556008)(41300700001)(36756003)(8936002)(2616005)(478600001)(142923001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?NThaT0tLdU5DZHVFc1U5SkNFSmdxUUZNUWhiRGN0M0h3c2d3L1JiNDZBY3Fs?= =?utf-8?B?Q2pQemlYdDBNUjJ6YWNCaVdkREVIalNtQ3M2d1dTRnJBQmhKWWFrdkQ3T3FE?= =?utf-8?B?NGd1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zgXAZc4nlNsP3OY3MAvNLbDpACw2aGMkvvl88GLfIS2xtZCtjKSSRRn9mcQphaGv0zEuCDN8I/7hneMnkTLEAvsPi6lmIR0E7W5Bg9uUChVY5BauxJ2QA5xpY8J3wRwc0ZuvGaU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 366bddd9-11b3-4571-03b7-08dbcc11f586 X-MS-Exchange-CrossTenant-AuthSource: MW4PR10MB6535.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2023 17:29:31.1142 (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: IWMNoGYcT/AaDQi/WrbNlRzZwiVIQOLaTDgQJQEEDJZ+cHThkJ/vsKZx8E0CXAd72kYRn8HC37wgvm3tsKk+Ag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR10MB7253 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-13_09,2023-10-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 suspectscore=0 phishscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310130149 X-Proofpoint-ORIG-GUID: yGf7-6ZXwFsTwWzN4NG2_GpVc1ftIjCg X-Proofpoint-GUID: yGf7-6ZXwFsTwWzN4NG2_GpVc1ftIjCg X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 13 Oct 2023 10:29:55 -0700 (PDT) Hi Stefano, On 10/13/2023 2:22 AM, Stefano Garzarella wrote: > Hi Si-Wei, > > On Fri, Oct 13, 2023 at 01:23:40AM -0700, Si-Wei Liu wrote: >> RFC only. Not tested on vdpa-sim-blk with user virtual address. > > I can test it, but what I should stress? Great, thank you! As you see, my patch moved vhost_iotlb_reset out of vdpasim_reset for the sake of decoupling mapping from vdpa device reset. For hardware devices this decoupling makes sense as platform IOMMU already did it. But I'm not sure if there's something in the software device (esp. with vdpa-blk and the userspace library stack) that may have to rely on the current .reset behavior that clears the vhost_iotlb. So perhaps you can try to exercise every possible case involving blk device reset, and see if anything (related to mapping) breaks? > >> Works fine with vdpa-sim-net which uses physical address to map. > > Can you share your tests? so I'll try to do the same with blk. Basically everything involving virtio device reset in the guest, e.g. reboot the VM, remove/unbind then reprobe/bind the virtio-net module/driver, then see if device I/O (which needs mapping properly) is still flowing as expected. And then everything else that could trigger QEMU's vhost_dev_start/stop paths ending up as passive vhos-vdpa backend reset, for e.g. link status change, suspend/hibernate, SVQ switch and live migration. I am not sure if vdpa-blk supports live migration through SVQ or not, if not you don't need to worry about. > >> >> This patch is based on top of [1]. >> >> [1] >> https://lore.kernel.org/virtualization/1696928580-7520-1-git-send-email-si-wei.liu@oracle.com/ > > The series does not apply well on master or vhost tree. > Where should I apply it? Sent the link through another email offline. Thanks, -Siwei > > If you have a tree with all of them applied, will be easy for me ;-) > > Thanks, > Stefano >