From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 633F5C433ED for ; Wed, 14 Apr 2021 09:14:42 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 298E9611AD for ; Wed, 14 Apr 2021 09:14:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 298E9611AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.110388.210681 (Exim 4.92) (envelope-from ) id 1lWbbH-0000Wl-2C; Wed, 14 Apr 2021 09:14:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 110388.210681; Wed, 14 Apr 2021 09:14:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lWbbG-0000We-VU; Wed, 14 Apr 2021 09:14:18 +0000 Received: by outflank-mailman (input) for mailman id 110388; Wed, 14 Apr 2021 09:14:17 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lWbbF-0000WW-Mt for xen-devel@lists.xenproject.org; Wed, 14 Apr 2021 09:14:17 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 0cc3622b-046f-4e48-917f-8521259862db; Wed, 14 Apr 2021 09:14:15 +0000 (UTC) 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 D540B11B3; Wed, 14 Apr 2021 02:14:14 -0700 (PDT) Received: from e125770.cambridge.arm.com (e125770.cambridge.arm.com [10.1.197.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4C62C3F73B; Wed, 14 Apr 2021 02:14:13 -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" X-Inumbo-ID: 0cc3622b-046f-4e48-917f-8521259862db From: Luca Fancellu To: xen-devel@lists.xenproject.org Cc: bertrand.marquis@arm.com, wei.chen@arm.com, Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Rahul Singh , Andrew Cooper , George Dunlap , Ian Jackson , Jan Beulich , Wei Liu Subject: [PATCH v4 0/4] xen/arm: Prevent Dom0 to be loaded when using dom0less Date: Wed, 14 Apr 2021 10:14:00 +0100 Message-Id: <20210414091404.14215-1-luca.fancellu@arm.com> X-Mailer: git-send-email 2.17.1 This is the v2 of xen/arm: Prevent Dom0 to be loaded when using dom0less previously pushed. The aim of this serie is to prevent the creation and run of the domain 0 (Dom0) when the system configuration to be used is dom0less, that is when the device tree declares at least one domU and no Dom0. Changes in v2 are: - Moving the dom0 creation in a proper function - Handle the case of having an hardware_domain NULL - Be sure that the domain id 0 is never allocated - Modify documentation about dom0less Changes in v3: minor fixes explained in each patches Chenges in v4: minor fixes explained in each patches Luca Fancellu (4): xen/arm: Move dom0 creation in domain_build.c xen/arm: Handle cases when hardware_domain is NULL xen/arm: Clarify how the domid is decided in create_domUs() xen/arm: Prevent Dom0 to be loaded when using dom0less docs/features/dom0less.pandoc | 7 +-- xen/arch/arm/domain_build.c | 43 ++++++++++++++- xen/arch/arm/irq.c | 2 +- xen/arch/arm/setup.c | 69 +++++++++++++----------- xen/drivers/passthrough/arm/ipmmu-vmsa.c | 2 +- xen/drivers/passthrough/arm/smmu-v3.c | 2 +- xen/drivers/passthrough/arm/smmu.c | 2 +- xen/include/asm-arm/domain.h | 2 +- xen/include/asm-arm/setup.h | 2 +- 9 files changed, 91 insertions(+), 40 deletions(-) -- 2.17.1