From patchwork Thu Aug 1 05:35:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenyu Huang X-Patchwork-Id: 1967502 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=Cm3VOlUQ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WZLNh2Q9hz1yYq for ; Thu, 1 Aug 2024 17:35:48 +1000 (AEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZQL9-0002RZ-0s; Thu, 01 Aug 2024 03:35:11 -0400 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 1sZOY7-000670-Mm for qemu-devel@nongnu.org; Thu, 01 Aug 2024 01:40:27 -0400 Received: from mail-japaneastazolkn19010007.outbound.protection.outlook.com ([52.103.43.7] helo=TY3P286CU002.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 1sZOY5-0000Hn-TE for qemu-devel@nongnu.org; Thu, 01 Aug 2024 01:40:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Y62ugUyAxXZsLI0Jc4F7M4y/euzDLOLCpJCNOaSlyl7xMw1q39XoX5C3+Hmdzmx28U6cYQ6mTUDAWWmOjDZ+IC0BK7SBrnYZEuqzhFc9o/j9MLDAb2BG+NSUVmsh6UOjJ1yCtiDKrluO1DwaJPPJDgk+U/T90U/VM1gQjqjUMiqy/jcdjl9793BXU4Eac3Qa0XWT5WiqgNGS1nEPY4DixRIr+kTwOVdBKF/ezqYPLvoc0IGl67EBMdEtmmHEobPIa8pxDHAYOSqpA2xxTwJGOBd0BKpm3IW9JYaMCWUq82AciOCUBGEqAGX/Q7qPnHWOMuXAkKmsDYiF1mQomZo7Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=vui7lRF/9oAhPSfpV8XMH4Wv3GXoEOSQvGa+5vxowzU=; b=sb2I/LNutVNlHBkfgFHJunjr0hEO2oaOpooK4x/1n+FQnti9ICT8CJ4nInlOirngXzy3SwmNVOWQFgk+Yh2xGkZnlUdjgGheKftg4Ph54FnTl/XdYPFHYmNK56m4vHjPEz8zHxZgkhnLoc0aSgNrRoOjb61UojrVwjx19ClhvlhmrQ4y1svmzHtjO+zCTXq0F8J/Jgi8ToLMXjUdF3B7fT9zXfpJpuuCdHFVbZZqqD5fFhkD47lHfWXPi6R4QoLjwjEMMhU72QXxOwwbyVllnVnobIqH0EKjQmJAp4stcg4ieWQoFSW39f00ibG/QtjWHvusBOlKDHdvq+vLOF3SQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vui7lRF/9oAhPSfpV8XMH4Wv3GXoEOSQvGa+5vxowzU=; b=Cm3VOlUQCaobFfvzM0OTm1WRzM/LfPAUiaMW5Gh9tNXxVAQPGJANA3+Uro/+Bq6pDf+JFxWnhYgqhojV4VWrIKBsACiPdxN9N5gcQP04lx4GSaPQGy92b4lQ4A+6L4BBJLFHdO7mLMhOeCKe9UADna1EJPS8la0dWUnc3H78mthdfJqqCr2heMbIUYsRmdjzXEQB+YjUDO/rN4kMgfR8uTpDCcn4L7V5nBeHykf3vxqZWqBqOq0X+vvz+uY4/cXJg//xyOUdPHFxWrv+XJODkl9thDZMy4O5YTIk/P8zhn/8Y1y3HUKBdNpf2jW0v3aOj7uDB1KaYPxSlxi1hTf9jA== Received: from TYBP286MB0365.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8022::15) by TY1P286MB3181.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2e4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.28; Thu, 1 Aug 2024 05:35:16 +0000 Received: from TYBP286MB0365.JPNP286.PROD.OUTLOOK.COM ([fe80::948f:9ea:14f6:1f5e]) by TYBP286MB0365.JPNP286.PROD.OUTLOOK.COM ([fe80::948f:9ea:14f6:1f5e%6]) with mapi id 15.20.7807.026; Thu, 1 Aug 2024 05:35:16 +0000 From: Wenyu Huang To: mst@redhat.com, qemu-devel@nongnu.org Cc: huangwenyuu@outlook.com Subject: [PATCH] Cleanup: rename virtio_split_packed_update_used_idx Date: Thu, 1 Aug 2024 01:35:12 -0400 Message-ID: X-Mailer: git-send-email 2.43.0 X-TMN: [1CTvf/sxOZY9sH7Hnaa4I6NWQyu2ZyhR] X-ClientProxiedBy: SI1PR02CA0034.apcprd02.prod.outlook.com (2603:1096:4:1f6::10) To TYBP286MB0365.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8022::15) X-Microsoft-Original-Message-ID: <20240801053512.25778-1-huangwenyuu@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYBP286MB0365:EE_|TY1P286MB3181:EE_ X-MS-Office365-Filtering-Correlation-Id: 89bbbd4f-3190-4bb9-f8d5-08dcb1ebb8f7 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnpXB0xcNeDVdJIgd0h0Wm5onx2dxdB74NOio1nCkB3wnBMb4nwPtDJVsgcPYrzem1xBM8/mncG5kq5fU4n8GO72/7+1paEyfqlBoRFr33TXjGpX4YuZezlKvAAe1fsDhdxBzYlSs0UiW9YfQk2vmcxXOuuVp99L2jbxFGz7zmyzDlsMiIpyjjn4VurBY9gM/2ATqyLskcpjeB9aTYcU9gv6ytnkxdCXONt7VtuVc82E7/NZgPaWj8h7Wye8e01S1y4myZb4F5h8Wzj/ZAAwVJ1mZ43u1Xc4Gg7/SU27rTE3dJJ35W5KKD1iEDrJVIOvN82obDcEjL6eaznlei75Kh35lXrp4OUare77X/HtFXhRSwPiDREr1gfhdXPgfos04+28oySAkAANEz0taRcE8W+/LX0t8A+wtPnuL4HI4L15Rm8tw856HfBCydU7d5dl/L8lSLtIir0r3LinncuVXsA4r96QViNm3gmhB1voVN9FskxtYeTMOj7pON7DKHHwICWZr29ZwWiwENF/sZxB1N3LyWvCQ+pDB/uLqNNqFuFuK0HN1bCXt0gi7welWOQqX8hrlQe2QJU/HkvZk+kwzNyua/aZ6p9gBkRENdiVUV5TpitjvBoj7SPfmgSwY64PiFTeUaA6Z8BpjmRyyxthc+jpDk/kKNcPNXy99CKTWQoWbJM60QQH9xGyflxMi/ZsH9rYsDPLFRCGy+RznyUqReo5ddr9t8LZHiv00XC1NO0H1J8A0hxAcTZfSpPK6Qy8aEE= X-Microsoft-Antispam: BCL:0; ARA:14566002|461199028|5072599009|8060799006|19110799003|3412199025|440099028|1710799026; X-Microsoft-Antispam-Message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9-f8d5-08dcb1ebb8f7 X-MS-Exchange-CrossTenant-AuthSource: TYBP286MB0365.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2024 05:35:16.2581 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1P286MB3181 Received-SPF: pass client-ip=52.103.43.7; envelope-from=huangwenyuu@outlook.com; helo=TY3P286CU002.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 01 Aug 2024 03:35:07 -0400 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org virtio_split_packed_update_used_idx should be virtio_queue_split_update_used_idx like virtio_split_packed_update_used_idx. Signed-off-by: Wenyu Huang --- hw/virtio/virtio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 397c261c3c..5836f680f0 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -3609,7 +3609,7 @@ static void virtio_queue_packed_update_used_idx(VirtIODevice *vdev, int n) return; } -static void virtio_split_packed_update_used_idx(VirtIODevice *vdev, int n) +static void virtio_queue_split_update_used_idx(VirtIODevice *vdev, int n) { RCU_READ_LOCK_GUARD(); if (vdev->vq[n].vring.desc) { @@ -3622,7 +3622,7 @@ void virtio_queue_update_used_idx(VirtIODevice *vdev, int n) if (virtio_vdev_has_feature(vdev, VIRTIO_F_RING_PACKED)) { return virtio_queue_packed_update_used_idx(vdev, n); } else { - return virtio_split_packed_update_used_idx(vdev, n); + return virtio_queue_split_update_used_idx(vdev, n); } }