From nobody Fri Oct 31 04:14:26 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=quarantine dis=quarantine) header.from=proton.me Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1749599002247692.6607782816013; Tue, 10 Jun 2025 16:43:22 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1011206.1389551 (Exim 4.92) (envelope-from ) id 1uP8cJ-0001C7-7n; Tue, 10 Jun 2025 23:42:55 +0000 Received: by outflank-mailman (output) from mailman id 1011206.1389551; Tue, 10 Jun 2025 23:42:55 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uP8cJ-0001C0-4v; Tue, 10 Jun 2025 23:42:55 +0000 Received: by outflank-mailman (input) for mailman id 1011206; Tue, 10 Jun 2025 23:42:54 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uP8cG-0001Bu-RC for xen-devel@lists.xenproject.org; Tue, 10 Jun 2025 23:42:54 +0000 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 9c5ce0f6-4654-11f0-a307-13f23c93f187; Wed, 11 Jun 2025 01:42:46 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 9c5ce0f6-4654-11f0-a307-13f23c93f187 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1749598965; x=1749858165; bh=FgKuZlenHMnzOx11+ti1TH7kOvkx0Yq6nS3Mop/uTv4=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=IkhpadCpB/3enhogzOOgWd9PPaEBjJ5Tcs16eG5msMUVlRreC/BpwMpkRkcQKZWOd YuhQoX91MAwrNPpczZpiN0KAEAy6frzo4w9JF5IAgGzGxBaW8gwCG2RH0MmSftWy+4 wf7PUinJ0YY/8S22uV0tju+jL1Vcj2zRo87JhDaqJpiOnz2ZLsEa5wE8dbXCBThnV2 KWr45TGvy3L2g9JcWuq3KnQDoke/m4DNJ5hxlQ0ToJxYg1/ZN584qbyhP/McwpqosK WfHn05IAMtXebi8t7wNaRVGa2zRO+E1sVKTbbgsPzE3o7HclULmg3y/5vAKDlCrdpF EMWyAiAxuAoOQ== Date: Tue, 10 Jun 2025 23:42:37 +0000 To: xen-devel@lists.xenproject.org From: dmkhn@proton.me Cc: andrew.cooper3@citrix.com, anthony.perard@vates.tech, jbeulich@suse.com, julien@xen.org, michal.orzel@amd.com, roger.pau@citrix.com, sstabellini@kernel.org, dmukhin@ford.com Subject: [PATCH] xen/domain: fix late hwdom feature Message-ID: <20250610234105.1082890-1-dmukhin@ford.com> Feedback-ID: 123220910:user:proton X-Pm-Message-ID: cb581d934730d99f39136349cdea041bbbc93e00 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1749599004491116600 Content-Type: text/plain; charset="utf-8" From: Denis Mukhin Fix get_initial_domain_id() which how returns hardware_domid and breaks late hwdom feature [1]. [1] https://lore.kernel.org/xen-devel/a4c860d7-1fa0-43f4-8ae1-af59b7c6506f@= xen.org/ Fixes: f147ccf2 ("xen/consoled: clean up console handling for PV shim") Signed-off-by: Denis Mukhin Acked-by: Jan Beulich Reported-by: Julien Grall --- xen/common/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/domain.c b/xen/common/domain.c index 153cd75340..e566a18747 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -2404,7 +2404,7 @@ domid_t get_initial_domain_id(void) if ( pv_shim ) return pv_shim_get_initial_domain_id(); #endif - return hardware_domid; + return 0; } =20 void freeze_domains(void) --=20 2.34.1