Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4194201pxv; Tue, 29 Jun 2021 00:59:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJeNEofeuC1xNnES3L9eZQyAOW8vw+er5o+8eOq4FxYA23nFwmSnI+iUjel97xIOCERmM1 X-Received: by 2002:a05:6e02:1b8f:: with SMTP id h15mr21794013ili.151.1624953584184; Tue, 29 Jun 2021 00:59:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1624953584; cv=pass; d=google.com; s=arc-20160816; b=AO2IOhk4dLwNUvqsE5GoUEGwcKQ99+iqI0BQ7d/P5ElPeAu2Rs0Xi6QXS2akknALRs W8q3GARHnudMOWPXtXju87TWzYjAwyBle8wgOn0AZb9TnRU3RpyAJ0+wiqTNdBhxV3q0 PIqenUx825MbVZlotB5qNU6KSEu4raHX8UHEDPlwHd2oiVPDiLnFxP0k8+OIupGAG8t/ EPV88pTLTSWaVmmi06JlXNH3v2W/bZX+1rj1iwt8EpsCpBTJFZi+MOhQTBHtaIsq0hZL nUytuNiUjLpkGs8sDGDScOfBUjd1cGB1p9/GOugpRBuzekqWyZn++yuTitJfyAG9bWtm SWKg== 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 :dlp-reaction:dlp-product:dlp-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=G4zsQQscnt4dgZBdtgup/8KxlRd7oRsxRfgkDsd5y+o=; b=f1k5VM1/sUYPNL3s2NPpbeD6onMyr92zRDlGfZzYo83mjc/DzG4BjeLHwy8ikxoB3Q btFAmUYuZtR66D7VhEE2dDJqsgXpd+Kmb5FIovYZmT0FQTof0otYc6T2bZNUuvYxGgz3 N1h5HiqxIHxWQXYoKAZaSwctED60P+Pk9XY57uKIWbQVnL0H+RaCyVOb2N/EExHCcXbh fd8j/KNP8OhkvvzvdT37D3cycy2p8RdJKJ6MWIWu02qn4MSbkBSxQarVhBjcvOtEs3H/ yuOz+WH0PcRnQyNOKkJ+7kh2ZDpo7pHt943UiLc4N3k+v9rh6FjH4Kb1JQmc5oc6UVkO DoUQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=NUuOZQi9; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si19747616jam.40.2021.06.29.00.59.32; Tue, 29 Jun 2021 00:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=NUuOZQi9; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232371AbhF2H6v (ORCPT + 99 others); Tue, 29 Jun 2021 03:58:51 -0400 Received: from mga14.intel.com ([192.55.52.115]:25575 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232308AbhF2H6u (ORCPT ); Tue, 29 Jun 2021 03:58:50 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10029"; a="207922252" X-IronPort-AV: E=Sophos;i="5.83,308,1616482800"; d="scan'208";a="207922252" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2021 00:56:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,308,1616482800"; d="scan'208";a="446942264" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga007.jf.intel.com with ESMTP; 29 Jun 2021 00:56:21 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 29 Jun 2021 00:56:21 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Tue, 29 Jun 2021 00:56:20 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4 via Frontend Transport; Tue, 29 Jun 2021 00:56:20 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.176) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Tue, 29 Jun 2021 00:56:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lw7By+JOPtTe0xv0M4wLQ+MYX4rB5x/REWPsZMnZa24hX7vS3xrZL6SBxJeblhHWfLVCSpOZv5JB8ZDM/jMae4LSsKdDncGvDrTOdyob9n+fm6kTLR6aEhp2E3L59VVuIoOnUMH1eZ4mKa0JtmophcA8giQB0qIhxbYbtJTQkwzAI771b7ebeuIghFqvqr4ESXpur3WObhdD8BFQtJhGHfh60zXSIuY5xwUsvPcgl+4H1YrH8Ig1+vJkSRCKuiCnCccnOX/kgzBt29kx/Y3omC/YK66qq/ZhY4sik7Wdg6XAVl4tgNTl3I3suHFrmcfYKdcSWOe8+tyJit949nrLGA== 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-SenderADCheck; bh=G4zsQQscnt4dgZBdtgup/8KxlRd7oRsxRfgkDsd5y+o=; b=Gub3D/u5exJSR3UxPZmGFM08hX7FzbqeheKzbqVx5Q1wFYyWx8OdKk8gLY65WX4x+qvsAL0xHZbPnLRHqQeUrx+Oo2OJZ61ZoK49kGU7j9agCTseGeJkxP+7w9zGl+OPknEteOPCWwmmA9P6j8OAc0iLIjq5WT0Upl1dF/QPMXH+1uDxgFqImm+WTfWJeJ8ecAcYeEk1wNHtPDnmp6JjjKCHGSOB2O3tJOtC0LBZ6Wlu17Cpj4ksyl791t4miCOBBEvrSxIxj9OgCyYg+UbOQVvWy8hMKIvyxVb5EdHRO6uyLghL9bkqJDCGJEiaOKEPWEqZWA4mRxrYrczZ/Dsi/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G4zsQQscnt4dgZBdtgup/8KxlRd7oRsxRfgkDsd5y+o=; b=NUuOZQi9pVUtDmuSxHMxLMfeS1G/ey8dZehFFTQqsGoljAud7rxs33uv7oRq4aMMt0eLI3OHtTYHN5lHCr+4hjU1NiypCKM7iqDaQ7jtEWwxbvhwELp7K18nq4WoXyL8KxoOtNIN8fLtGlW/YD/jSC3YQ4J08uTo4Fn8sT4IQpc= Received: from BYAPR11MB2662.namprd11.prod.outlook.com (2603:10b6:a02:c8::24) by BYAPR11MB3592.namprd11.prod.outlook.com (2603:10b6:a03:fb::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18; Tue, 29 Jun 2021 07:56:19 +0000 Received: from BYAPR11MB2662.namprd11.prod.outlook.com ([fe80::103d:74b9:605e:b05b]) by BYAPR11MB2662.namprd11.prod.outlook.com ([fe80::103d:74b9:605e:b05b%6]) with mapi id 15.20.4264.026; Tue, 29 Jun 2021 07:56:19 +0000 From: "Liu, Xiaodong" To: Jason Wang , Xie Yongji , "mst@redhat.com" , "stefanha@redhat.com" , "sgarzare@redhat.com" , "parav@nvidia.com" , "hch@infradead.org" , "christian.brauner@canonical.com" , "rdunlap@infradead.org" , "willy@infradead.org" , "viro@zeniv.linux.org.uk" , "axboe@kernel.dk" , "bcrl@kvack.org" , "corbet@lwn.net" , "mika.penttila@nextfour.com" , "dan.carpenter@oracle.com" , "joro@8bytes.org" , "gregkh@linuxfoundation.org" CC: "songmuchun@bytedance.com" , "virtualization@lists.linux-foundation.org" , "netdev@vger.kernel.org" , "kvm@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace Thread-Topic: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace Thread-Index: AQHXa8kUCtmikoHekUKCGV4xYFF/O6so1l4AgAANryCAAX3fgIAAMcrQ Date: Tue, 29 Jun 2021 07:56:19 +0000 Message-ID: References: <20210615141331.407-1-xieyongji@bytedance.com> <20210628103309.GA205554@storage2.sh.intel.com> <41cc419e-48b5-6755-0cb0-9033bd1310e4@redhat.com> In-Reply-To: <41cc419e-48b5-6755-0cb0-9033bd1310e4@redhat.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.143.21] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: db28b461-4cfc-4e9b-7ca3-08d93ad36146 x-ms-traffictypediagnostic: BYAPR11MB3592: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LQYo50OoCRXK+W+qHpMMW+tW6edOL1Gqbrf2VKdLD7lr4zCJ5HXSIsBl24uLW1p1SWZxgCMS3hmODh6hT9wXvXlgLnPuxB+qlLyY4/ZXGvXVSD7/fJpUrnrXyjvLquByyxC4TKsx/e2/PVvsNtWqheU3ozEEIjOEgDpRsUSA2XaxkJJY/MaX2YLw+m79Gj1CMu7eXtnKs8XlZ5IblopJ7GBKNriDQJ8qCY1A9SpsqsYYFgKBhi30u5AoO8ilmFMpXMZqNmAmtM7ANMY2JSJtLvtTN4Vv4Nyw+FG6TiEKOfl7ORx6w7cnvvdZxKvd0OYYurGhMSLFF7D9iLd7lPHdxhh0gZcsoId/DUomfZ4gV2zpFv3uZgYPMGmOx6c6y1S606t1nHvuhHQdcYYLGzl+gtn/giJ8RBfx26UcF2bdhqXAfbN6HDo+v07dWtDgpJC0P5n50ID5YbLL6lIkAqW66S/sSROHf69RfKVTMbgWkzGwQdH/4K0zgQFeyu1kly7w10ENbCGVdwOkOqVCCy3uLTdU2Ty1pb89SD0yVCyLKE22HtEyLl+DnlTHl6HuL8tivyA7m451fk5jI6RxN0lScpBAzkk7bEg8/wDT2lyp5LgCpYIjUts0x5ZdrLD6rw5nciovO5sxONxM4zw4xB1EQ1I/0sjwUVNxhQUoMMVVZ0CYo789lb0cwdL39olcmeCk x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB2662.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(396003)(376002)(136003)(39860400002)(346002)(366004)(76116006)(6506007)(186003)(55016002)(9686003)(921005)(7416002)(54906003)(122000001)(66946007)(52536014)(26005)(316002)(38100700002)(8936002)(86362001)(66446008)(83380400001)(2906002)(110136005)(33656002)(8676002)(7696005)(5660300002)(478600001)(4326008)(71200400001)(66476007)(64756008)(66556008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?MXZZQWtVNDlndnBtL0JkT1Y1THczU0JjV3hyUVk0VXhIUHUzbGthSlNU?= =?iso-2022-jp?B?VE1RdG9MUVlyc2lOVnJWdTJnaGJKSlp0SG41Y1cvSzBjQVpMTGlCMXRs?= =?iso-2022-jp?B?ZU9RWVBzWmtvSXFOVm9HZUltclRPVDliK3JGc1hsT1ZzaG91bGN5L0p2?= =?iso-2022-jp?B?SXRWWkFpTkJLV0IwTU01TFBKSUd4MUhrNHBLNkgwSFhKU09Xa3R1MHVC?= =?iso-2022-jp?B?cU9RMWpDSFVPMGl5Y1BWRnpuMUhNR2FMenN2d1gwTVpRL0VnWUhXUlBp?= =?iso-2022-jp?B?OEJqeE84UXl4QWFwcGp3WXliRjdJWTJBYkM1cHU5b241RFB3ZkhmazV1?= =?iso-2022-jp?B?SmVxRHhVa0hMSjU5SXhuZnQ3WnpnTDZENFRFVkpxTmZGNWZNTGNwQTRX?= =?iso-2022-jp?B?Qnp6MVoxZUNBUU9DUkRNZ08yRE5sZWpYbE1VQkgrSWpQenlGa1NYaDQ3?= =?iso-2022-jp?B?dS9SZUNLTU9INExTMTN6TGxVT3ZvL1JpZElpSFh1U1BvUFdpQ1F1NUl0?= =?iso-2022-jp?B?OUQwb3cvQWxMaG9Remc1L0pUdFcrSm5TbUR6SnZuOEhHWGlpYnE0WUxy?= =?iso-2022-jp?B?eEthU3FQck1ZbU5nb1FHVzNuUXNkN2k4ZE5HdnRxTytCQWtmYy8wemFJ?= =?iso-2022-jp?B?RXpZaWkwWm5Ob0IxWlRaNFV0bzFXbURnbWRJTVNIUWdLL2hNMjRwNlF2?= =?iso-2022-jp?B?RDdTNy9aQ3NHVlpLSk5vZ21SQmtiVmc4blF5eVVBeWI3aVQxWlBiWjVX?= =?iso-2022-jp?B?WVdnMXhaKzhYTmtFN0c3Z21GZ0xRRXZMV2dlV21ISEpaajdrVjV2RG9O?= =?iso-2022-jp?B?Q04rNFVsOHJNL3BuS3hzVHIwMDQzM2RndWNuSmszRU9PcXJCMnZQQ0VZ?= =?iso-2022-jp?B?bWU4MUJpVGgzNXh4TjI4OG1FMTFiTDE3MUN0L0FFWmFnYTRlZG5tVlV5?= =?iso-2022-jp?B?MEJKZXBhN2plckZRYmxqd0kyVml6K2pkdmdqS2lBb1hpeFBMdGRvaWk1?= =?iso-2022-jp?B?WTBUeFVMMWo2S2ZXcHp6QW92RGV1cE04ZDdhalc0UVY3Y0JqdEZMTkt0?= =?iso-2022-jp?B?K2VkdjRVM0FqVURDaE41YVA4ampwZ2tBVnRlUTVTbUl2U3llTDdUMCtv?= =?iso-2022-jp?B?S2s3TU5FVHJRVWRERHg0TWorS1JRSThxZDUyVjlrTHRRaVdvREdVRU1a?= =?iso-2022-jp?B?UVl2T1E5NkhjN1N3d3NEMk5vdjBjK2VwbWwxak9JVlV3RWdPbDhvVERl?= =?iso-2022-jp?B?d0ZKaVBMUDhleFQ4ZW53Y25xckExMGVIb2lLWnR2ZDVCRVQwY1hUMEpR?= =?iso-2022-jp?B?dzRsd2t3S1dJL1lISlVub0lSazdESjBIRG1zY003MlhidUJ2N0FWd0I5?= =?iso-2022-jp?B?S1FHS0V0NTBLajlhRUFQYXAyMC95SGtjUTkxcS9FZ0c3emdJdUdqSlJl?= =?iso-2022-jp?B?RUxUV2kyYnBHb1ljUWVVTXg1R0JmWHdmcEVYb3B0V3QrNEwwanhOZU5M?= =?iso-2022-jp?B?enRHYitmMUlsVDlMbmU3Mkk0bklCdEtnMGN0cUxqS0Y1SXU5ZVNYNzB4?= =?iso-2022-jp?B?b2o3Yjl5bmNjNVdrNmFBMnB6QStWY3pPekFFMDhGc3lzb1lIQlFNNWlB?= =?iso-2022-jp?B?UU5YRlB6MWl3a2g3SkZtZm9xcTFIb240S2grcVJ2ME5hMGxqTk5uZVhL?= =?iso-2022-jp?B?SVlWOEVzL3NSS1c1aHVvL1A2ZmIrUFRwTHVpek8xckNkYlJoblRPcTNn?= =?iso-2022-jp?B?NjFDa254NWw4cWZWblI5UGhVTTEyVGNUL2dpY2J4bUhXMjBVWm53Tkts?= =?iso-2022-jp?B?aGVTZHF6OHUwQUFwek5UYmFZU0dHZkJVUnd6TEtiOGVuclFsekJORUtZ?= =?iso-2022-jp?B?S0hxUHhDUUo4RkZXbStKRUtER014OVA0RkJQcHI0aTV5S0VzSmdid1Y2?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2662.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: db28b461-4cfc-4e9b-7ca3-08d93ad36146 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2021 07:56:19.2306 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vNMzDxVXr/DTa46hyW6s2ZMMYzNVwbmcBHNvyjR13vHuyg74TmN9T4L1J5SuYyJBzs0Zvbck8/sopvZM9AgSOg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3592 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >-----Original Message----- >From: Jason Wang >Sent: Tuesday, June 29, 2021 12:11 PM >To: Liu, Xiaodong ; Xie Yongji >; mst@redhat.com; stefanha@redhat.com; >sgarzare@redhat.com; parav@nvidia.com; hch@infradead.org; >christian.brauner@canonical.com; rdunlap@infradead.org; willy@infradead.or= g; >viro@zeniv.linux.org.uk; axboe@kernel.dk; bcrl@kvack.org; corbet@lwn.net; >mika.penttila@nextfour.com; dan.carpenter@oracle.com; joro@8bytes.org; >gregkh@linuxfoundation.org >Cc: songmuchun@bytedance.com; virtualization@lists.linux-foundation.org; >netdev@vger.kernel.org; kvm@vger.kernel.org; linux-fsdevel@vger.kernel.org= ; >iommu@lists.linux-foundation.org; linux-kernel@vger.kernel.org >Subject: Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace > > >=1B$B:_=1B(B 2021/6/28 =1B$B2<8a=1B(B1:54, Liu, Xiaodong =1B$B>> Several issues: >>> >>> - VDUSE needs to limit the total size of the bounce buffers (64M if I w= as not >>> wrong). Does it work for SPDK? >> Yes, Jason. It is enough and works for SPDK. >> Since it's a kind of bounce buffer mainly for in-flight IO, so limited s= ize like >> 64MB is enough. > > >Ok. > > >> >>> - VDUSE can use hugepages but I'm not sure we can mandate hugepages (or >we >>> need introduce new flags for supporting this) >> Same with your worry, I'm afraid too that it is a hard for a kernel modu= le >> to directly preallocate hugepage internal. >> What I tried is that: >> 1. A simple agent daemon (represents for one device) `preallocates` and= maps >> dozens of 2MB hugepages (like 64MB) for one device. >> 2. The daemon passes its mapping addr&len and hugepage fd to kernel >> module through created IOCTL. >> 3. Kernel module remaps the hugepages inside kernel. > > >Such model should work, but the main "issue" is that it introduce >overheads in the case of vhost-vDPA. > >Note that in the case of vhost-vDPA, we don't use bounce buffer, the >userspace pages were shared directly. > >And since DMA is not done per page, it prevents us from using tricks >like vm_insert_page() in those cases. > Yes, really, it's a problem to handle vhost-vDPA case. But there are already several solutions to get VM served, like vhost-user, vfio-user, so at least for SPDK, it won't serve VM through VDUSE. If a user still want to do that, then the user should tolerate Introduced overhead. In other words, software backend like SPDK, will appreciate the virtio datapath of VDUSE to serve local host instead of VM. That's why I also draf= ted a "virtio-local" to bridge vhost-user target and local host kernel virtio-b= lk. > >> 4. Vhost user target gets and maps hugepage fd from kernel module >> in vhost-user msg through Unix Domain Socket cmsg. >> Then kernel module and target map on the same hugepage based >> bounce buffer for in-flight IO. >> >> If there is one option in VDUSE to map userspace preallocated memory, th= en >> VDUSE should be able to mandate it even it is hugepage based. >> > >As above, this requires some kind of re-design since VDUSE depends on >the model of mmap(MAP_SHARED) instead of umem registering. Got it, Jason, this may be hard for current version of VDUSE. Maybe we can consider these options after VDUSE merged later. Since if VDUSE datapath could be directly leveraged by vhost-user target, its value will be propagated immediately. > >Thanks