From patchwork Tue May 7 08:23:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henry Wang X-Patchwork-Id: 13656395 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55F5FC25B75 for ; Tue, 7 May 2024 08:24:38 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.717917.1120413 (Exim 4.92) (envelope-from ) id 1s4G7S-0003lC-TD; Tue, 07 May 2024 08:24:14 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 717917.1120413; Tue, 07 May 2024 08:24:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s4G7S-0003l5-Pd; Tue, 07 May 2024 08:24:14 +0000 Received: by outflank-mailman (input) for mailman id 717917; Tue, 07 May 2024 08:24:13 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1s4G7R-0003kv-NO for xen-devel@lists.xenproject.org; Tue, 07 May 2024 08:24:13 +0000 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on20601.outbound.protection.outlook.com [2a01:111:f403:2405::601]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 2deb08e5-0c4b-11ef-b4bb-af5377834399; Tue, 07 May 2024 10:24:11 +0200 (CEST) Received: from PH7PR17CA0059.namprd17.prod.outlook.com (2603:10b6:510:325::25) by DS7PR12MB6335.namprd12.prod.outlook.com (2603:10b6:8:94::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.39; Tue, 7 May 2024 08:24:07 +0000 Received: from CY4PEPF0000E9D9.namprd05.prod.outlook.com (2603:10b6:510:325:cafe::93) by PH7PR17CA0059.outlook.office365.com (2603:10b6:510:325::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.43 via Frontend Transport; Tue, 7 May 2024 08:24:07 +0000 Received: from SATLEXMB03.amd.com (165.204.84.17) by CY4PEPF0000E9D9.mail.protection.outlook.com (10.167.241.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Tue, 7 May 2024 08:24:06 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 7 May 2024 03:24:05 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 7 May 2024 03:24:05 -0500 Received: from henry-MS-7D54.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Tue, 7 May 2024 03:24:04 -0500 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 2deb08e5-0c4b-11ef-b4bb-af5377834399 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ywr12NUKpueLDd9M8AaVDQEopdNkALRQY+SDvCn1FEcL3zCoGOT+9VYQiPdyTPXRNdqn+XEmUBZZiUJjou4sOHYWImiYjZ4wUHi2HbxpWFyKDzwsK24cA1ehwATDyNkDMcHwZlRA3NSJVf4Ztr3EPQqbDNls+5281Sb9KyTqif7xh2+f/AZ1kVodEY+g55WV6eiFvUxrnfKXaRA45PNELaRiYFAMlAUJZsz0g8t5CjE/squPn+tFZzcQUnpFr7AU1/BLw+QvS4dAWuMs5FZoKWEWS4vhqXA3XWhk0NZo6v74zuhlDWFOWWOQGVglCnT63sA7etbGOg7tGO6YeSE1Qg== 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=wxmswW5MKaVNrwibgvBTKnW3hc/vi2J/QjjoxBoYTLU=; b=jhSiq2Qkfjvbq+dTKU62fOXaUVGf4bhYocr4TH/+WMxecSRolWPS9bMT4F/nvWWtLI0seZ4ztiHGY79fujK+hCZK9dJq+sexGrRB+TKSfsgLhVeG0SIdFCvNBmE6ntGOexBK7Pgb31NopMqq+61wWN2qPhkW2BGM91O6oJ9F10KBzzPIY0GtZmMRJmrc44z1BsytcFzkBd3hvj99UcNun6ol7onm6j/7OjbmFIpFBNrS2PkLqFa+O+R7OsHZSgSHT+gGY9jZRAcEpqaRfUX+CSopbvxhsFLzaC2tAX5Y7hsY/nPIQOQgka9R5p85heyBTnhXYqvEjvUhdq5sKq/usQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wxmswW5MKaVNrwibgvBTKnW3hc/vi2J/QjjoxBoYTLU=; b=PqQOrdgHRBGZ7jBB3XOwL8aGDBY5iedEdCl+C74NlQRk59ZnOloPjHq/rabH5roENwhQduj3b+HdRS5u147Mv84U2YmRsaViJW8H/IoYU+7JHqF28XSKA2GcUUdLIWdIsCbSNKs0WKPPiwqq1DsVGx04PMDav2s5iPQm8sqp1ow= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C From: Henry Wang To: CC: Henry Wang , Stefano Stabellini , Julien Grall , Anthony PERARD Subject: [PATCH v2 0/2] Some fixes for the existing dynamic dtbo code Date: Tue, 7 May 2024 16:23:58 +0800 Message-ID: <20240507082400.25146-1-xin.wang2@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: xin.wang2@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D9:EE_|DS7PR12MB6335:EE_ X-MS-Office365-Filtering-Correlation-Id: 9ecc9d5b-5c1f-4d64-8793-08dc6e6f0fd5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|36860700004|82310400017|1800799015; X-Microsoft-Antispam-Message-Info: OR+ZMjCg85PvQuLNuq6Kbgi1/LtA5c15E85bgHpOM2oTzTAKhUdtVW0HWQczDdRp2VwsLE6u29KCOZj16m0EwYY+GomYfTaWEUt831CGfUyzHewPXRP78SPmwa2PcLhKC6f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7u3Gj0TX61Dok8nOseeg0lysoTpsWY9VQWyrCziPjRFaUpE6V1/zY7eYvQSiA6nEqXe3yuGKYtZaiRbOn9Frb/e57GJ08UpmqlNH+meWm8AND/hevyO2ekXQen450AmDrch+Z1mXEkyEiHHVGHu7CfwHwqgBSAXjpPA+ERgc0HWCrQEIIOWvGjX+Zaal7W+0G8vgoM0q8y5y X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(376005)(36860700004)(82310400017)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2024 08:24:06.4595 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ecc9d5b-5c1f-4d64-8793-08dc6e6f0fd5 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D9.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6335 During the review process for the v1 of the dynamic dtbo series, some issues of the existing code were identified. Discussions of them can be found in [1] (for the first patch) and [2] (for the second patch). Since the main part of the remaining dynamic dtbo series requires more rework, just send these fixes for now. [1] https://lore.kernel.org/xen-devel/835099c8-6cf0-4f6d-899b-07388df89319@xen.org/ [2] https://lore.kernel.org/xen-devel/eaea1986-a27e-4d6c-932f-1d0a9918861f@perard/ Henry Wang (2): xen/common/dt-overlay: Fix missing lock when remove the device tools/xl: Correct the help information and exit code of the dt-overlay command tools/xl/xl_vmcontrol.c | 6 +++--- xen/common/dt-overlay.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-)