From nobody Fri May 17 09:18:40 2024 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; 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=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1663931025026613.2979541413484; Fri, 23 Sep 2022 04:03:45 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.410731.653872 (Exim 4.92) (envelope-from ) id 1obgSY-0002Bf-HM; Fri, 23 Sep 2022 11:03:06 +0000 Received: by outflank-mailman (output) from mailman id 410731.653872; Fri, 23 Sep 2022 11:03:06 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1obgSY-0002BY-ER; Fri, 23 Sep 2022 11:03:06 +0000 Received: by outflank-mailman (input) for mailman id 410731; Fri, 23 Sep 2022 11:03:06 +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 1obgSY-0001gy-0J for xen-devel@lists.xenproject.org; Fri, 23 Sep 2022 11:03:06 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 4c1fb3b8-3b2f-11ed-9647-05401a9f4f97; Fri, 23 Sep 2022 13:03:04 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B7ABF139F; Fri, 23 Sep 2022 04:03:10 -0700 (PDT) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 308523F73D; Fri, 23 Sep 2022 04:03:03 -0700 (PDT) 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: 4c1fb3b8-3b2f-11ed-9647-05401a9f4f97 From: Rahul Singh To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH 1/2] xen: Add static event channel in SUPPORT.md on ARM Date: Fri, 23 Sep 2022 12:02:17 +0100 Message-Id: <02a4499694dec9fd48791a2d0c24a0d450b907ac.1663928523.git.rahul.singh@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1663931025224100001 Content-Type: text/plain; charset="utf-8" Static event channel support is tech preview, which shall be documented in SUPPORT.md Signed-off-by: Rahul Singh Reviewed-by: Ayan Kumar Halder Reviewed-by: Bertrand Marquis --- SUPPORT.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SUPPORT.md b/SUPPORT.md index 8ebd63ad82..29f74ac506 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -922,6 +922,13 @@ bootscrub=3Doff are passed as Xen command line paramet= ers. (Memory should be scrubbed with bootscrub=3Didle.) No XSAs will be issues due to unscrubbed memory. =20 +## Static Event Channel + +Allow to setup the static event channel on dom0less system, enabling domai= ns +to send/receive notifications. + + Status, ARM: Tech Preview + # Format and definitions =20 This file contains prose, and machine-readable fragments. --=20 2.25.1 From nobody Fri May 17 09:18:40 2024 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; 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=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1663931050634602.0676873719954; Fri, 23 Sep 2022 04:04:10 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.410736.653884 (Exim 4.92) (envelope-from ) id 1obgSz-0002hh-Qd; Fri, 23 Sep 2022 11:03:33 +0000 Received: by outflank-mailman (output) from mailman id 410736.653884; Fri, 23 Sep 2022 11:03:33 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1obgSz-0002ha-NT; Fri, 23 Sep 2022 11:03:33 +0000 Received: by outflank-mailman (input) for mailman id 410736; Fri, 23 Sep 2022 11:03:32 +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 1obgSy-0001gy-Ro for xen-devel@lists.xenproject.org; Fri, 23 Sep 2022 11:03:32 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 5c6eeda0-3b2f-11ed-9647-05401a9f4f97; Fri, 23 Sep 2022 13:03:32 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0E8D2139F; Fri, 23 Sep 2022 04:03:38 -0700 (PDT) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B09033F73D; Fri, 23 Sep 2022 04:03:30 -0700 (PDT) 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: 5c6eeda0-3b2f-11ed-9647-05401a9f4f97 From: Rahul Singh To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: [PATCH 2/2] xen/arm: fix booting ACPI based system after static evtchn series Date: Fri, 23 Sep 2022 12:02:18 +0100 Message-Id: <0c53abc972264b0ea13864b7056fa2149cd78f9f.1663928523.git.rahul.singh@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1663931051327100001 Content-Type: text/plain; charset="utf-8" When ACPI is enabled and the system booted with ACPI, BUG() is observed after merging the static event channel series. As there is not DT when booted with ACPI there will be no chosen node because of that "BUG_ON(chosen =3D=3D NULL)" will be hit. (XEN) Xen BUG at arch/arm/domain_build.c:3578 Move call to alloc_static_evtchn() under acpi_disabled check to fix the issue. Fixes: 1fe16b3ed78a (xen/arm: introduce xen-evtchn dom0less property) Signed-off-by: Rahul Singh Reviewed-by: Ayan Kumar Halder Reviewed-by: Bertrand Marquis --- xen/arch/arm/setup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 61b4f258a0..4395640019 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -1166,9 +1166,10 @@ void __init start_xen(unsigned long boot_phys_offset, printk(XENLOG_INFO "Xen dom0less mode detected\n"); =20 if ( acpi_disabled ) + { create_domUs(); - - alloc_static_evtchn(); + alloc_static_evtchn(); + } =20 /* * This needs to be called **before** heap_init_late() so modules --=20 2.25.1