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 93BE5CD5BB4 for ; Fri, 22 May 2026 06:20:53 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1316309.1585696 (Exim 4.92) (envelope-from ) id 1wQJFO-0008R1-Mi; Fri, 22 May 2026 06:20:38 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1316309.1585696; Fri, 22 May 2026 06:20:38 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wQJFO-0008Qu-K4; Fri, 22 May 2026 06:20:38 +0000 Received: by outflank-mailman (input) for mailman id 1316309; Fri, 22 May 2026 06:20:37 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wQJFN-0008Qo-Pb for xen-devel@lists.xenproject.org; Fri, 22 May 2026 06:20:37 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wQJFN-00FxJO-1i for xen-devel@lists.xenproject.org; Fri, 22 May 2026 08:20:37 +0200 Received: from [10.42.69.7] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a0ff5b3-e002-0a2a0a5209dd-0a2a4507c00c-6 for ; Fri, 22 May 2026 08:20:36 +0200 Received: from [209.85.128.48] (helo=mail-wm1-f48.google.com) by tlsNG-ef75cf.mxtls.expurgate.net with ESMTPS (eXpurgate 4.56.1) (envelope-from ) id 6a0ff5b4-229c-0a2a45070019-d1558030d944-3 for ; Fri, 22 May 2026 08:20:36 +0200 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-48e82c23840so55592605e9.3 for ; Thu, 21 May 2026 23:20:36 -0700 (PDT) Received: from EPUAKYIW02F7.. ([45.12.24.36]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490454a0b82sm21875725e9.9.2026.05.21.23.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2026 23:20:35 -0700 (PDT) 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=20251104 header.d=gmail.com header.i="@gmail.com" header.h="Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779430836; x=1780035636; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=i3goxrv/Y8kshOF/CZ2G/Qlx2qpoE+dQMyCjx1mFAtc=; b=ZrT2JnO2XoX1zxkX+NrzATyniYY9sCOT3AjLQRRWv3bRKf2YNckPH5NBw6sW1rrugo +XMDu2uXTcy81n3wFHqb9hZFLxOmhyhplw/FtQXP4dU2JndTGX1IN3g9mY+6qiuT0R+6 7IYlcZrLmpRYJyBQljJzI6XRADGC6f9azFnLFvxoPsf+DnMzwuH4xa5SqV6S4i/MIC2Z sf2UZxIKI0ehAw00gXva5w+1PSq6B8I6Z4MjvIqZjJ7vTDsFPBXShtriazS3cuFE+OhF vGZdMqU10dPCws8+Mn/Zmsj2Ku3qL/3gp518lJs7OQEygurVkJrzyj05Q7Yw9hq9YiUS qb9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779430836; x=1780035636; h=content-transfer-encoding:mime-version:message-id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YSlkRNY+cLoN7AQ9hclOtJYbzEarEewsA= X-Received: by 2002:a05:600c:3b02:b0:489:201c:dc46 with SMTP id 5b1f17b1804b1-490424b2cf1mr22975655e9.12.1779430836207; Thu, 21 May 2026 23:20:36 -0700 (PDT) From: Mykola Kvach To: xen-devel@lists.xenproject.org Cc: Mykola Kvach , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Andrew Cooper , Anthony PERARD , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH 0/2] xen/arm: handle Dom0 vCPU limits from GICv3 redistributors Date: Fri, 22 May 2026 09:18:25 +0300 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-purgate-ID: tlsNG-ef75cf/1779430836-09F6EC48-4923BBF8/0/0 X-purgate-type: clean X-purgate-size: 1477 From: Mykola Kvach This series fixes and documents a Dom0 construction corner case on Arm GICv3 systems where Dom0 uses the host redistributor layout. When the requested Dom0 vCPU count exceeds the number of virtual redistributor frames covered by the exposed host-layout GICR regions, the vGICv3 per-vCPU init path rejects the first uncovered vCPU. However, the generic vGIC init path ignored that error, so vcpu_create() could succeed with an invalid per-vCPU vGIC state. Dom0 could then observe more possible CPUs than Xen can back with emulated redistributors and hang during secondary CPU bring-up. The first patch propagates the per-vCPU vGIC init failure and fixes the host-layout redistributor region count when all hardware regions have been consumed. With the fix, Dom0 construction stops creating secondary vCPUs at the first vCPU whose redistributor frame is not covered, while preserving the existing best-effort Dom0 policy and allowing Dom0 to boot with the vCPUs created before the failure. The second patch documents the resulting Arm GICv3 constraint for dom0_max_vcpus. Mykola Kvach (2): xen/arm: propagate vGIC vCPU init failures docs: Document Arm GICv3 limit for dom0_max_vcpus docs/misc/xen-command-line.pandoc | 8 ++++++++ xen/arch/arm/vgic-v3.c | 3 ++- xen/arch/arm/vgic.c | 10 +++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) -- 2.43.0