Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp716455rdb; Thu, 19 Oct 2023 18:03:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGu7GHYlna5NsqRFcOzCoa2sznaRRbeiHM5ym0fNrnScIZTbWUzhkzL9aHSTaufYpxwsM5E X-Received: by 2002:a05:6a21:498b:b0:17b:d39c:1d6 with SMTP id ax11-20020a056a21498b00b0017bd39c01d6mr355114pzc.30.1697763810661; Thu, 19 Oct 2023 18:03:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697763810; cv=pass; d=google.com; s=arc-20160816; b=Cia6p8QYrNjkguHo6Rap+gGbHTQTNLR3YlSlWIBiZpBxvAcRBszYaLYzbUNzQ3GiVM FucWat//4ga5qDJkT+VISvwjjSpzunIzHEHy/F28ZKpOuzPiKOefm4TOXdoeUB+q5TpA NJeXrjHQDkRm7Dsi+7RmxXCXkOuDDKYJ48KuoTPuvCPTaSO7n8EYAzV5igjmTwWibfpc kOtyTRPw27EAVKDgjqUHtCAY+XzVZP6IZzlal/Cm4OpEtFyqhIF/4/cjXkzetWS5KSm4 CdNQzNbrmFcK6xq6hJbWmiR2vAI4INWwJhbp2uOJfDwTldKxOevW8naK7a1vla5Bgnwn wEig== 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=szr1Tt5qdC03gksTf+IgNe546s8XVJoZsQBhVGjFNz0=; fh=jR6wkYMO17pBleYCfT1gCPMJUG2RTvdSiZBoZagmQlg=; b=DhSR0cBnu1SV/iKJdcYTIeVKdEOAUdRGOlDqVDffmUVm+LD/KWItw9fWQadJ3DBUOq 8VINWfl3GsyZAwV0/rlyA/gvVVNKU58XpKofPSp7Nh81U1EMlpXTBNGMW8RKxJNL7OFs Ss3w0ADLzpYql9Mt7FHK0dY73ZRsFiMX8Hm/UP4GE3auZ5VcIFjqfM4yDmnJgyHa8cTT MboT2lClk/JVeIaHJH6T7Bs0zQFX/vNt2zN5vfRzd3nyBDhklikfkMKV9lHD38WeyqCA 7e/hg4FxawiEkFPEMSLmZpasdyIgPDh5RbQsZWpHTyC2AlkPfobp1a3jmT7k7CLJ9eRo WCGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=fE3aiLIr; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qzVgufd8; 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.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id d1-20020a170903230100b001c9c496bdebsi732449plh.337.2023.10.19.18.03.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 18:03:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=fE3aiLIr; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=qzVgufd8; 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.31 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 morse.vger.email (Postfix) with ESMTP id 20D7E836D636; Thu, 19 Oct 2023 18:03:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346802AbjJTBDD (ORCPT + 99 others); Thu, 19 Oct 2023 21:03:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233033AbjJTBDB (ORCPT ); Thu, 19 Oct 2023 21:03:01 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D29F1115 for ; Thu, 19 Oct 2023 18:02:59 -0700 (PDT) Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39JKxJNB013649; Fri, 20 Oct 2023 01:02:43 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=szr1Tt5qdC03gksTf+IgNe546s8XVJoZsQBhVGjFNz0=; b=fE3aiLIrXkus+A/U/ai/eOaZvwTyMWlcnBQImEC5Za1T2EhCkipzxgmJ2ka+AkmawmeR Wuv3R64Zds8BCAtnTLJ9bevqkhdhFLTQ4U40vSsBjz9Q0UA8MjdcVM5kLb4cSJzSj8kt G8i84qm0cfFwhaDvfCw3PFIxtTuMISbrrfqnwBw7SRanapjrpcURNHaNZXIVEO4vdCo5 +qmk+3v2lvui4HpnkPfPYDq4JbiNEVPNJfv7yzN0MUtFLcnyCT2Axt8RPVK0a94xzvVs yedVEPfM6Tnw/ybBkgO3D5aewhieionFGZZ95DOEBshGigT8/hiThEM1aSTjrDYfviED ow== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tubwd88ph-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Oct 2023 01:02:43 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 39JNUXp1038505; Fri, 20 Oct 2023 01:02:42 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tubw46m1c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 20 Oct 2023 01:02:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k+MEiiRDWOMq4kQCj0t1mdtBc88gvdz7uxCTUxXrINQKo/xZeANDM9x4UGTirvEmAt2U66vD5aLySPni9fwRH1A/oLEyy75kT7fMI2GvYwWDV4OalcnQfyASdMN6+TP2Hon9fGrk+FgffMMZxCOoucgHJeI9dPVBndb0DdvQpu+0NQQFZSQFJ9waisj471cTYDraG0rBl5DZ6yLfCOptTv8TYIlBgqz+zh3HpsfO7BbcXoUciJ3H4HxfnO5dIItd4B3vpQq5CCQtWoPTUYrFKlSpTFc80Arwe7ghzfFHCp/JmUcMu7Ut5JakwzkPy2G98u3JtCi3/YQDwzVECBQzcw== 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=szr1Tt5qdC03gksTf+IgNe546s8XVJoZsQBhVGjFNz0=; b=Nb+ikFAYmUgEUaw3U1du9AtRP1UXfyaDZqSPdVbPjSwBIAcIR4cXP/kC6ugIX2GlJHWP+rI+nCrtKXkGHeuiwSM936CDCYGIJ3hreQUTQaWZhtW9k4IYp7CBKGu8Ul5wUCvJUlEijdaTzRg0ll/NL1qMF+VwZVib0gXG6KgDkTOkcoCRPkJDEF+psq0KgKr874AlkHWtKvxvsT+FWGWFkB0eH2XmCawpkmUvAMAHSnlGyxtQrVLDMViOmEsOBWGOdd6PQuqwyeuj/SOGtQY7BSsCTvwayQdZpLN6MUXlGfVQjbb23yQIfuUqS3QDH6/TPmviWtL+vokeR+6PZYfgzw== 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=szr1Tt5qdC03gksTf+IgNe546s8XVJoZsQBhVGjFNz0=; b=qzVgufd8xi+OiXfflB15YOWjn64Mhl5vRUlhmGoItnX6MTeU03tiiZy1CL/NegNObOdsV0U+XkZlsTenIfqzL+18/wqrwM6MTTabZHRybSK0IBB+KomdMe0LNsD85EGk+IDGti/YsZn7MDr4jbPDO2q1VKt2nkLpwcOB+aaIq3c= Received: from MW4PR10MB6535.namprd10.prod.outlook.com (2603:10b6:303:225::12) by BN0PR10MB4934.namprd10.prod.outlook.com (2603:10b6:408:120::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.26; Fri, 20 Oct 2023 01:02:39 +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.6886.034; Fri, 20 Oct 2023 01:02:39 +0000 Message-ID: Date: Thu, 19 Oct 2023 18:02:35 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [RFC v2 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: <1697605893-30313-1-git-send-email-si-wei.liu@oracle.com> <171a1147-2099-46da-81f1-fc953e9410e2@oracle.com> From: Si-Wei Liu Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BL0PR1501CA0006.namprd15.prod.outlook.com (2603:10b6:207:17::19) To MW4PR10MB6535.namprd10.prod.outlook.com (2603:10b6:303:225::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW4PR10MB6535:EE_|BN0PR10MB4934:EE_ X-MS-Office365-Filtering-Correlation-Id: 4a30a274-73bd-4a2d-1c65-08dbd1084151 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: e21d5mdTnoul+Hi8PAM+G45EJjfpUIdZCkUTomwfHZiBc2FgFhn7htIhX/soCpBIIu9aPoUf+h2KwTBRGk3PY8Ee41Bpl8zAi9EUCXDalWFMwLYMoLg0GjzL291VnYpMbbOwcg8zxJNjSC/czgjziZhBHhgD1/LZ2qBQFd1mxsDUZrKb9fis+ItxuyiELDXiBbi44GoVtdxLrBBkXKL8lywin+hjQlRRoqVEuu+2XXEm6FpscL/ziAY6F9PsKKceFtkBr3HlfgHUufDW5XkcRgdCr152QnvZpyf96dQlg8/rZczKMKpIAIrTTJy13KUU+XkY+VEW5Gdfy+W3ic6Gv1b1c3wm7PlAhuCBTwnt2Bzn0Hvb9odNHldOw6nGY1j9x2tFoBPVqr+cAo0FeO/kb9W9eV8l+LvbhIgom7Z6b9crlpl3zMD6ZvEAD0ajXZtpPewL/TdezyliLNyv3a9ySJIU3z8VXTaoq84B4HCmbfCOQgiu0JFpxDx2KyvR7sek0Z6eYv6der1M4DyWlw/n86kBTFpG0cJEuSHS8Zz42FwCXTFR0C9XAHQlCUku42Wh64Db/iBodgDtZKdhqLnzhAD9IO+V87MwmyUKXPVZXE32esD/PO4cNu1NDgz1Cgrlm2r/0MF0ODvUO0OJSLDETxfTsQOHTHm5U1RCZvGi6W34Uq+mjwClDU3yFN0JFBeP2+CAtYgwJQoCv+tTVkD13w== 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)(136003)(366004)(396003)(346002)(376002)(39860400002)(230922051799003)(451199024)(186009)(1800799009)(64100799003)(66899024)(66946007)(66556008)(316002)(6916009)(6666004)(6486002)(478600001)(8676002)(66476007)(8936002)(966005)(36756003)(41300700001)(5660300002)(31696002)(4326008)(38100700002)(6506007)(2906002)(36916002)(86362001)(2616005)(53546011)(6512007)(83380400001)(26005)(31686004)(142923001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UCthekZFNDBISnMzSHZpeU9aV2RCeE50Umlib3ZFbnE1NFlyekFsS0txYm5k?= =?utf-8?B?dFVvZXlDVzcyWFQybjM4VWE1Z3FyL2JUNlFPQTFSMjk5ZnR1U1V4WkgrOS9q?= =?utf-8?B?NWFrUXBIVkRxb2piVUFiMWlXQzNxalB6YUFqT1ZFU0E1ak1NNi9LM1RTZFBS?= =?utf-8?B?NTB6WHpKdVlWUThWRWplL2R3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17CyBfZXP9WsLXOeVIIUlCXjviwfq4gu8lWUGUGIh9U+00Ck2BhkgRrOPPmC2a5cVz/hg= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a30a274-73bd-4a2d-1c65-08dbd1084151 X-MS-Exchange-CrossTenant-AuthSource: MW4PR10MB6535.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2023 01:02:39.0798 (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: skcki5zlirEfMnrOwyCUp4xE8IG8kNscBVp2Yj4v9GRVg1CewRWcSBGVahFxea0JkDsrc7k+AjUyShYFgAXNPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR10MB4934 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-19_23,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 spamscore=0 mlxscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310200006 X-Proofpoint-ORIG-GUID: iI_SymNdSmRhjMX-a6vLAOZZrKLyh-rU X-Proofpoint-GUID: iI_SymNdSmRhjMX-a6vLAOZZrKLyh-rU X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 19 Oct 2023 18:03:28 -0700 (PDT) On 10/19/2023 2:29 AM, Stefano Garzarella wrote: > On Wed, Oct 18, 2023 at 04:47:48PM -0700, Si-Wei Liu wrote: >> >> >> On 10/18/2023 1:05 AM, Stefano Garzarella wrote: >>> On Tue, Oct 17, 2023 at 10:11:33PM -0700, Si-Wei Liu wrote: >>>> RFC only. Not tested on vdpa-sim-blk with user virtual address. >>>> Works fine with vdpa-sim-net which uses physical address to map. >>>> >>>> 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/ >>>> >>>> Signed-off-by: Si-Wei Liu >>>> >>>> --- >>>> RFC v2: >>>>  - initialize iotlb to passthrough mode in device add >>> >>> I tested this version and I didn't see any issue ;-) >> Great, thank you so much for your help on testing my patch, Stefano! > > You're welcome :-) > >> Just for my own interest/curiosity, currently there's no vhost-vdpa >> backend client implemented for vdpa-sim-blk > > Yep, we developed libblkio [1]. libblkio exposes common API to access > block devices in userspace. It supports several drivers. > The one useful for this use case is `virtio-blk-vhost-vdpa`. Here [2] > some examples on how to use the libblkio test suite with the > vdpa-sim-blk. > > Since QEMU 7.2, it supports libblkio drivers, so you can use the > following options to attach a vdpa-blk device to a VM: > >   -blockdev > node-name=drive_src1,driver=virtio-blk-vhost-vdpa,path=/dev/vhost-vdpa-0,cache.direct=on > \ >   -device virtio-blk-pci,id=src1,bootindex=2,drive=drive_src1 \ > > For now only what we called slow-path [3][4] is supported, since the > VQs are not directly exposed to the guest, but QEMU allocates other > VQs (similar to shadow VQs for net) to support live-migration and QEMU > storage features. Fast-path is on the agenda, but on pause for now. > >> or any vdpa block device in userspace as yet, correct? > > Do you mean with VDUSE? > In this case, yes, qemu-storage-daemon supports it, and can implement > a virtio-blk in user space, exposing a disk image thorough VDUSE. > > There is an example in libblkio as well [5] on how to start it. > >> So there was no test specific to vhost-vdpa that needs to be >> exercised, right? >> > > I hope I answered above :-) Definitely! This is exactly what I needed, it's really useful! Much appreciated for the detailed information! I hadn't been aware of the latest status on libblkio drivers and qemu support since I last checked it (it was at some point right after KVM 2022, sorry my knowledge too outdated). I followed your links below and checked a few things, looks my change shouldn't affect anything. Good to see all the desired pieces landed to QEMU and libblkio already as planned, great job done! Cheers, -Siwei > This reminded me that I need to write a blog post with all this > information, I hope to do that soon! > > Stefano > > [1] https://gitlab.com/libblkio/libblkio > [2] > https://gitlab.com/libblkio/libblkio/-/blob/main/tests/meson.build?ref_type=heads#L42 > [3] > https://kvmforum2022.sched.com/event/15jK5/qemu-storage-daemon-and-libblkio-exploring-new-shores-for-the-qemu-block-layer-kevin-wolf-stefano-garzarella-red-hat > [4] > https://kvmforum2021.sched.com/event/ke3a/vdpa-blk-unified-hardware-and-software-offload-for-virtio-blk-stefano-garzarella-red-hat > [5] > https://gitlab.com/libblkio/libblkio/-/blob/main/tests/meson.build?ref_type=heads#L58 >