From nobody Tue Nov 26 16:16:46 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=nephogine.com); dmarc=pass(p=none dis=none) header.from=nephogine.com ARC-Seal: i=2; a=rsa-sha256; t=1705646524; cv=pass; d=zohomail.com; s=zohoarc; b=QdOZ01vDioO6lHLMs/0h6GrAKi4myNpiLjqZzCOXWtdPG0E4J8Z15M/+QRQIAlaUrs2yC5imW5p8a3oCf7nH4VKG4QN22p2UuIVkvRsph3C1DZKM6AAp+ngmhcs0xgBZVMGWzBUhmve/5pnwWd8irDOQqLgS9zxegD4s+Gsb85E= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705646524; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=d5R5eB6JMv9HyPUydpNNCvmzxclX1e23cTkV+MB4Hy4=; b=I7aNaOso6en4r4/09+d78uyKyLUznbd/T9WZTyaaQ15V4kleAn4M32Kr6tSEao7M6/LFRQH/50tPymK2O0ISjZ7xsiz+o9mbNFDRL2U+WP3MDIB4788SZl/3jqo6I9urwefScm5Ay+c5JeNji9um+vkj2FnktdNvVvit+RbkYH4= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=nephogine.com); dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1705646524031455.472131711143; Thu, 18 Jan 2024 22:42:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQiYj-0007Oq-45; Fri, 19 Jan 2024 01:40:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQiYg-0007Oc-Sc for qemu-devel@nongnu.org; Fri, 19 Jan 2024 01:40:54 -0500 Received: from mail-mw2nam10on2115.outbound.protection.outlook.com ([40.107.94.115] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQiYf-0005PZ-5r for qemu-devel@nongnu.org; Fri, 19 Jan 2024 01:40:54 -0500 Received: from SN4PR13MB5727.namprd13.prod.outlook.com (2603:10b6:806:213::12) by MW3PR13MB4121.namprd13.prod.outlook.com (2603:10b6:303:5b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.24; Fri, 19 Jan 2024 06:35:44 +0000 Received: from SN4PR13MB5727.namprd13.prod.outlook.com ([fe80::4ae0:9319:cd44:9350]) by SN4PR13MB5727.namprd13.prod.outlook.com ([fe80::4ae0:9319:cd44:9350%4]) with mapi id 15.20.7202.024; Fri, 19 Jan 2024 06:35:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AgXn4zHL5J5MXzefk8/flI3XhVFv6qAfNcv/SeuDVvfdyzeLXZCS0Vf8Z02XW3YI4fSX6kUbCUiRVPEJuNv4FV9RrkSCyGz3SCIY0UvthE6k6BgHfmDEcliHd5XFxYJ44fzyk3BF4V0wtN3S+/JwFWhQTuNgnVX+xJfSxsIG3Abx+zBIeR6ZkBHuDQeB3Y1HaqYgStxoGz8Qnl0Vryo1eBtVJzdGI5+XtSwjcWL9NdfWKe47ba3OXBl/sLqyDjSJVGZcdt8nrynT2UllRg/Bnqok3r3l1BHq13drGXN92yzQNvLNEROKvhBbRSkSVcFjLK/YgX4BNx7F7xY8jk7aQg== 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=d5R5eB6JMv9HyPUydpNNCvmzxclX1e23cTkV+MB4Hy4=; b=MWEe5tEIVR8XhcJf4qySAQ+yIHs3CX3105mdfBaVKyTz6dAEdJJrI9//gE8/gqKuBW3Re8A26N8IohKrQsErU/l9x0raXB87gbwat0TuFJUPT7lyPcdcZvdYTKZqY1px3Z/MRtEOVD5k1cG0F6gxGY9gZKtzUkifh6+U9RXyh6OtpG2C/joNaRsMOOLMeaPJ0HCf7cTgX+RtTpJ3ii0BD9ETRnbiUabLwaVqS5CFrfgoMOsF2dWS8jqCm/UEexs+EDlicKVRHtcWPXjH3OuCUSWiR01pJ8V11aAqZNnxTSrKguLAAlF+mfB/AQs1LhYiTtS/lXKsS12xwC//bW6qLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nephogine.com; dmarc=pass action=none header.from=nephogine.com; dkim=pass header.d=nephogine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nephogine.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d5R5eB6JMv9HyPUydpNNCvmzxclX1e23cTkV+MB4Hy4=; b=jg9GPhSVsy5XfCKfzSw8TAvNQjb0LKCYwVYdwDE7fAGG5Z3VcUO3AQY8x+Fef1BGGMzbZ1UfJ/TR7VRsW0JGgubFho88KV0G0jFkEHDpdboWsQkNsVZSCY73x0+hiR+KSWd11EuM9cyMXjStGBuJu/FBMD65a+u6s0EGCeTLTovDrxRdhK54nCoskLpOKxCCymvYykTnHsOmrjMXIY08y+HtAEl/qcXfiwLvhZ5F4szXYJn/yl3iIe3Ms9MNrqQwmkclCmStV5NbOji2W9KA+3X+3X9sltA3IT/K8p47GlbiIeNr+ohdg43MhPr8+U/z+q66aIQpQU1NiW/7obXhyg== From: Wentao Jia To: "qemu-devel@nongnu.org" CC: "mst@redhat.com" , Rick Zhong , Jason Wang Subject: RE: FW: [PATCH] vhost-user: add VIRTIO_F_IN_ORDER and VIRTIO_F_NOTIFICATION_DATA feature Thread-Topic: FW: [PATCH] vhost-user: add VIRTIO_F_IN_ORDER and VIRTIO_F_NOTIFICATION_DATA feature Thread-Index: AdokPrZLsAJfb0btQhCy7EbMDce/EgY4mSYwAAJ9PgAABGqn8AAAz8ygAfvHuzAAhk7OgAA1l2oAAAD22YAAB9kDgACXz1iA Date: Fri, 19 Jan 2024 06:35:44 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nephogine.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN4PR13MB5727:EE_|MW3PR13MB4121:EE_ x-ms-office365-filtering-correlation-id: a88021c0-dc50-44da-29b5-08dc18b8dd4b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ++WXsWBZid14xxVYb+d269STm3pM/SWghaNzttoHg/52jm1lyS76CehfX92aicISBq3hFq1JM/gqsn/Nn/qYc7s16UKdpjFKGIXEVd72dj8HH/IZI++xcF/jeNbzOmRTLkdmZfvRO3Cc3E1zKgfot68BwLI0Ef+BzinNtB5iKAYhvUTOss7YsTpmdxN7WY8AAoda8F5FHZneWUeyBm2O8UgzYENedc7vos+z+dH0n14vDySaBjK0C+KFJfnMVMbxTiPAtMrXcsbK0Tf6yOcfMUXT+ATK1HiPfpZOF0/jLRvVX1aehFZh/SzKpS6otpmE5P0SySPlmLpCNa+3Wzz9SFaoYyMYe+OV+RwhoFDDcEJePI0u91FuJ2tmo3HFmcshM6gwr5MnFtsFEo2VHlXs/BT/PGHfIZCw3JgGP7LYzwi2/BtZ3HZtAFXUtf/K7dT3yQ1tseWxrcDx1w9nNl39jxqrX/2f/nHmInsDLdwku4ejNO2JGOPCEwO8Ql3xJhCDnAWBaWGL6qxmST+jckeRIlPpPgOxYTh9oEemrKYS+PpQY9y75FJ03LMvZV7zPn17A+bDmh4Nu6OX5Vj+B0ZmPViKIlriHSBPHiFqchZGaiVJ7PhRCZAISKgT+9fEWQxl x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN4PR13MB5727.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(136003)(366004)(376002)(39840400004)(396003)(230922051799003)(64100799003)(451199024)(1800799012)(186009)(55016003)(38070700009)(6506007)(8676002)(5660300002)(8936002)(83380400001)(26005)(76116006)(6916009)(71200400001)(64756008)(4326008)(478600001)(316002)(9686003)(54906003)(7696005)(66556008)(66476007)(66446008)(66946007)(52536014)(44832011)(122000001)(38100700002)(2906002)(86362001)(41300700001)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?RVNnNVhZOXVFbStnU2hzMGVBZnJxNVc3WTR0R2F4ckMyQU1sTXRMa2JzSFZW?= =?utf-8?B?cmU4ejMxZjk4Z0NNa0ZrRWN2WUFScncxRzZmaUcwWDFKWmNoTU9ua1U4TWdP?= =?utf-8?B?VTl6VnRRVU9GRm9xakJRT0RneEJZcHRSTGgxd1VUVWw4djFqR1RDL2ZDd0sr?= =?utf-8?B?cytqQk0rcGxoNzN1OEZFen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-8?B?Y3VnYWI0aElncnF6cDdtYnJNLy9XaWZtRFJ3SGEyNXBQbjZPZWk2dU1LdDFQ?= =?utf-8?B?MDE0bmhGMlBUclFSZVRLa2luZjlPV0J3bkIxVXd0Mlo1ZnI2c3BOUkZFbFgw?= =?utf-8?Q?sYD7a/YZWwzwSpu+XRZDQYHe1?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nephogine.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN4PR13MB5727.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a88021c0-dc50-44da-29b5-08dc18b8dd4b X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jan 2024 06:35:44.5451 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: aQbRsPpgIcJ4KFpsfSlU64KLOBuEYeh3FXTjS6Blm9LNGZ3Pf2bfvBHryRhR6f90pIj8eeBVcpTQj//Mp/LTzw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR13MB4121 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=40.107.94.115; envelope-from=wentao.jia@nephogine.com; helo=NAM10-MW2-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @nephogine.com) X-ZM-MESSAGEID: 1705646524912100001 VIRTIO_F_IN_ORDER and VIRTIO_F_NOTIFICATION_DATA feature are important feat= ure for dpdk vdpa packets transmitting performance, add the 2 features at vhost= -user front-end to negotiation with backend. Signed-off-by: Kyle Xu Signed-off-by: Wentao Jia Reviewed-by: Xinying Yu Reviewed-by: Shujing Dong Reviewed-by: Rick Zhong --- hw/core/machine.c | 2 ++ hw/net/vhost_net.c | 2 ++ hw/net/virtio-net.c | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/hw/core/machine.c b/hw/core/machine.c index fb5afdcae4..e620f5e7d0 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -40,6 +40,7 @@ GlobalProperty hw_compat_8_1[] =3D { { "ramfb", "x-migrate", "off" }, { "vfio-pci-nohotplug", "x-ramfb-migrate", "off" }, { "igb", "x-pcie-flr-init", "off" }, + { TYPE_VIRTIO_NET, "notification_data", "off"}, }; const size_t hw_compat_8_1_len =3D G_N_ELEMENTS(hw_compat_8_1); @@ -65,6 +66,7 @@ GlobalProperty hw_compat_7_1[] =3D { { "virtio-rng-pci", "vectors", "0" }, { "virtio-rng-pci-transitional", "vectors", "0" }, { "virtio-rng-pci-non-transitional", "vectors", "0" }, + { TYPE_VIRTIO_NET, "in_order", "off"}, }; const size_t hw_compat_7_1_len =3D G_N_ELEMENTS(hw_compat_7_1); diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index e8e1661646..211ca859a6 100644 --- a/hw/net/vhost_net.c +++ b/hw/net/vhost_net.c @@ -76,6 +76,8 @@ static const int user_feature_bits[] =3D { VIRTIO_F_IOMMU_PLATFORM, VIRTIO_F_RING_PACKED, VIRTIO_F_RING_RESET, + VIRTIO_F_IN_ORDER, + VIRTIO_F_NOTIFICATION_DATA, VIRTIO_NET_F_RSS, VIRTIO_NET_F_HASH_REPORT, VIRTIO_NET_F_GUEST_USO4, diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 7a2846fa1c..dc0a028934 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -3949,6 +3949,10 @@ static Property virtio_net_properties[] =3D { VIRTIO_NET_F_GUEST_USO6, true), DEFINE_PROP_BIT64("host_uso", VirtIONet, host_features, VIRTIO_NET_F_HOST_USO, true), + DEFINE_PROP_BIT64("in_order", VirtIONet, host_features, + VIRTIO_F_IN_ORDER, true), + DEFINE_PROP_BIT64("notification_data", VirtIONet, host_features, + VIRTIO_F_NOTIFICATION_DATA, true), DEFINE_PROP_END_OF_LIST(), }; --