From nobody Mon Nov 23 22:40:00 2026 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=pass; 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=pass(p=none dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1792138638; cv=none; d=zohomail.com; s=zohoarc; b=YpnY2ysoZkSLBWTAIkazhRK7b+ONFfdGILdOcAusUUr8mE4ZSYSO9tG13k4tAQ1GIsRzEiv5EKQpqg1lJJ2ubC8n2Yr0ZzOfoUziYfg/kF0dxibKOdPLEYMu7WrzDIah5jG3rbn6xC7BlEhSMxcyKPt3qkwM2u6oLQrOL0mnPbQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792138638; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=lPA7fuWKSR6byGUoRsVIAsbvFGrN0S2PPt7NfGEmLLc=; b=n4XV3CrkP1TYNxVmPax0qdevDiAs5vo+60xfqYGXKcCwgHZww4XiyUiwUcR+NtVtHw12kzKk1tib0HvrOmm0VZoc4wGtp+kFfWDjuxkUAT0bXqQvcKrUajwfGU7gar8GguJzbW3gujZ5RqXxHi/NxQgk02HsRaJJPTXu3IHjldQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1792138638762819.9005321604118; Fri, 16 Oct 2026 01:17:18 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1451366.1666433 (Exim 4.92) (envelope-from ) id 1xHd7d-0003rx-Cy; Fri, 16 Oct 2026 08:17:01 +0000 Received: by outflank-mailman (output) from mailman id 1451366.1666433; Fri, 16 Oct 2026 08:17:01 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xHd7d-0003rp-8O; Fri, 16 Oct 2026 08:17:01 +0000 Received: by outflank-mailman (input) for mailman id 1451366; Fri, 16 Oct 2026 08:17:00 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xHd7b-0003rj-VR for xen-devel@lists.xenproject.org; Fri, 16 Oct 2026 08:16:59 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xHd7b-000bi1-8C for xen-devel@lists.xenproject.org; Fri, 16 Oct 2026 10:16:59 +0200 Received: from [10.42.69.7] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6ad1dd77-bab6-0a2a0a5309dd-0a2a45079aa6-10 for ; Fri, 16 Oct 2026 10:16:59 +0200 Received: from [185.255.28.35] (helo=prod-mta-13-02.swg-srv.net) by tlsNG-ef75cf.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6ad1dd7a-b4ea-0a2a45070019-b9ff1c23a7a9-3 for ; Fri, 16 Oct 2026 10:16:58 +0200 Received: from mail2.vates.fr ([37.26.189.201] mail2.vates.fr) (Authenticated sender: 8631fc262581453bbf619ec5b2062170/smtp/7773de5a-2839-4720-82ee-e06722ae1d3e) by prod-mta-13-02.swg-srv.net (ZoneMTA - prod-mta-13) with ESMTPSA id 1a143c90ffa0008425.006 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 16 Oct 2026 08:16:52 +0000 Received: from julian.home (82-67-211-29.subs.proxad.net [82.67.211.29]) (Authenticated sender: julian.vetter@vates.tech) by mail2.vates.fr (Postfix) with ESMTPSA id AC47E82986; Fri, 16 Oct 2026 10:16:51 +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" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=vates.tech header.i="@vates.tech" header.h="From:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:In-Reply-To:References:Feedback-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; q=dns/txt; s=selector1; bh=lPA7fuWKSR6byGUoRsVIAsbvFGrN0S2PPt7NfGEmLLc=; h=from:subject:date:message-id:to:cc:mime-version:content-type:in-reply-to:references:feedback-id; b=lF6+1ZvUSGtgnb08nMFfS2wd3soAtIwbrrQ8f4aZn7C2/tWr4GoTGTB8xE2WXZzp0+qXWPHGQ ELNh1iBeou96ZByBDaDWWVbf2f5WiC4QKBYG6oaJolYza4aoytQIz0xPK7w4BxDmlw0eBJQJBKm DfbQZJe3ItQesf/IeMDhEZKHwTTGcbUZU43o0Z3YZtFlGInZGxqbZRyM69eE8JvEIncEvnZw0to APXiQah0SNRKF6l0hzTB8/APNLCujOt0tupIZ8NDDi8Z9oEHYyuxlP+ZeTNbU2hni6LyYMGVC5A 9QzP+fLcC/NSvBXQ61lFyTZAAjirbrX339epM9J3x7rA== X-Zone-Loop: 4452f9c131a50a54aaa10b2a811b47d306e59ab16a16 x-campaign-type: default x-transaction-id: a4e4efd4-0c41-4417-b9b6-aff07a95e354 x-swg-uid: 01-94f4a56a-9ced-46ff-8760-79218bef2b0f X-Mailer: Sweego Message-ID: <1792138612.8631fc262581453bbf619ec5b2062170.1a143c90ffa0008425@vates.tech> x-swg-bid: 1792138612.8631fc262581453bbf619ec5b2062170.1a143c90ffa0008425 Feedback-ID: default:8631fc262581453bbf619ec5b2062170:Sweego x-campaign-id: default x-client-id: 8631fc262581453bbf619ec5b2062170 X-Originating-IP: [37.26.189.201] From: Julian Vetter To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , Michal Orzel , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk , Julian Vetter Subject: [PATCH 1/1] xen/arm: populate a default P2M pool for new domains Date: Fri, 16 Oct 2026 10:16:46 +0200 In-Reply-To: <1792138386.8631fc262581453bbf619ec5b2062170.1a143c59b630008425@vates.tech> References: <1792138386.8631fc262581453bbf619ec5b2062170.1a143c59b630008425@vates.tech> MIME-Version: 1.0 X-BM-Disclaimer: Yes Content-Type: multipart/alternative; boundary="-=Part.282.7b75de151badd906.1a143c90d8d.9bffdebb0261bc47=-" X-Bm-Milter-Handled: 4ffbd6c1-ee69-4e1b-aabd-f977039bd3e2 X-Bm-Transport-Timestamp: 1792138612109 X-purgate-ID: tlsNG-ef75cf/1792138619-36AD8AE4-4F333B4B/0/0 X-purgate-type: clean X-purgate-size: 2180 X-ZohoMail-DKIM: pass (identity @vates.tech) X-ZM-MESSAGEID: 1792138640839158500 ---=Part.282.7b75de151badd906.1a143c90d8d.9bffdebb0261bc47=- Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Since commit 9c962e07fb ("xen/arm: Clean-up in p2m_init() and p2m_final_teardown()"), ARM domains start with an empty P2M pool. So, populating the physmap fails, as no page tables can be allocated until the pool is sized by, e.g., the toolstack. Restore the call to add a small default pool of 16 pages in p2m_init() again, as before 9c962e07fb. The hardware domain is skipped, as it doesn't allocate its P2M pages from the page pool. Also skip it if LLC coloring is enabled. The colors are only configured after domain creation, so the pool pages would be allocated with the default colors. Signed-off-by: Julian Vetter --- xen/arch/arm/mmu/p2m.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/xen/arch/arm/mmu/p2m.c b/xen/arch/arm/mmu/p2m.c index 2cf35d8a37..de8dd26a72 100644 --- a/xen/arch/arm/mmu/p2m.c +++ b/xen/arch/arm/mmu/p2m.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include =20 @@ -1541,6 +1542,21 @@ int p2m_init(struct domain *d) if ( rc ) return rc; =20 + /* Populate 16 pages to the P2M pages pool here. + * + * Skip the hardware domain, which allocates its P2M pages from the he= ap, + * and LLC colored setups, as the domain's colors are only configured = after + * domain creation. + */ + if ( !is_hardware_domain(d) && !llc_coloring_enabled ) + { + spin_lock(&d->arch.paging.lock); + rc =3D p2m_set_allocation(d, 16, false); + spin_unlock(&d->arch.paging.lock); + if ( rc ) + return rc; + } + return 0; } =20 --=20 2.53.0 --=20 Julian Vetter | Vates Hypervisor & Kernel Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech ---=Part.282.7b75de151badd906.1a143c90d8d.9bffdebb0261bc47=---