From patchwork Tue Jul 9 08:41:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Viktor Mitin X-Patchwork-Id: 11036685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E43B17EF for ; Tue, 9 Jul 2019 08:43:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CD2928720 for ; Tue, 9 Jul 2019 08:43:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08A4828738; Tue, 9 Jul 2019 08:43:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 65D6B28745 for ; Tue, 9 Jul 2019 08:43:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hklh4-0007AQ-Nh; Tue, 09 Jul 2019 08:41:46 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hklh3-0007AL-TS for xen-devel@lists.xenproject.org; Tue, 09 Jul 2019 08:41:45 +0000 X-Inumbo-ID: 60b267a9-a225-11e9-8980-bc764e045a96 Received: from mail-lj1-x243.google.com (unknown [2a00:1450:4864:20::243]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 60b267a9-a225-11e9-8980-bc764e045a96; Tue, 09 Jul 2019 08:41:44 +0000 (UTC) Received: by mail-lj1-x243.google.com with SMTP id d24so9620977ljg.8 for ; Tue, 09 Jul 2019 01:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NCsMDWdhHqZtwRwQ6PNLfw280LznH3Mhnn8HSHFK/uU=; b=Ihe1/jQz8cYppZZNzfZOH9lwhukgEQiqqwKy7un7XxlRJ9kEycjvRccRsiwoC8g9yx Jb+LjZsbjgwIHLbUOfVXAatpBWy0xXhlHELVrXWrb5AI4X32+kcWz1+EKu505kU05SA3 EQu7u7NNj6gBanHzFQMjEtRp447FMjZHH3zadz8O6cMThtxBWQFoZHrd4xC68bO9njFY 1Zc7husaR0IWtTtAyXxfnvcoC0QjHCJE4QqsJrCo774ZSAKEqjakE9neUSDj0ejSmg+c 2/PTW/SlBfYstXzdGSpv5rxJew8FHsPybqpiDLTI87vOSVixle4aQmXL/zrpD96hdEO2 K9eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=NCsMDWdhHqZtwRwQ6PNLfw280LznH3Mhnn8HSHFK/uU=; b=dJDvzz4MDBJX/MBeCy0WFTPwg9sH0S3/EQlq86UdoMx2ZvPVDJNTT6OT1sCKt0Gp6Y 5ut03oGyO0lbiHz8e+PPQ6mRn3g5/QgX9DYrRKgFOzgWoqhgKqXuyI5obDTxpgjxMaSe ZZ2lG81/wDXbtG8F1dzbhWVRSvxYoEj6a4ZyBvCwFukKOvfyd1lRztkiQZmQvqPLcHis 6NgLwMUFKUf4UTE8iKkBAbWgPrXwBGfVLsDoXyM5eGOTU1VZ5z0dwQoQcWzR8OLIg4rF S5/KFWg08ccCvgyLNjqnoD2IjWRA/QNI7zfGfpb3UPFen9zXZxuHP8xMCrJ6GnruOUaD iR1A== X-Gm-Message-State: APjAAAXYimYhoLDe/vmLyJW26UxvbBHAu700JnqZCRHIixpZoxD07kuU y+A0YiF/3/BrHaEvUjimgcpw75T+WB8= X-Google-Smtp-Source: APXvYqzsZvXMDmi4Q8YBgkx/7HUllRKllxHWHIew+GJxDPrqIHfO5TeZAsIFGW1eXLXIboJ1wwXxBQ== X-Received: by 2002:a2e:9155:: with SMTP id q21mr12893276ljg.198.1562661702376; Tue, 09 Jul 2019 01:41:42 -0700 (PDT) Received: from 3489.kyiv.epam.com (ll-22.209.223.85.sovam.net.ua. [85.223.209.22]) by smtp.gmail.com with ESMTPSA id m25sm3185996lfp.97.2019.07.09.01.41.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 01:41:41 -0700 (PDT) From: Viktor Mitin To: xen-devel@lists.xenproject.org Date: Tue, 9 Jul 2019 11:41:16 +0300 Message-Id: <20190709084116.11488-1-viktor.mitin.19@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v2] xen/doc: Improve Dom0-less documentation X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Viktor Mitin , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , Viktor Mitin Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP - Changed unprintable characters with %s/\%xA0/ /g So all the spaces are 0x20 now. - Added address-cells and size-cells to configuration example. This resolves the dom0less boot issue in case of arm64. - Added some notes about xl tools usage in case of dom0less. Signed-off-by: Viktor Mitin --- docs/features/dom0less.pandoc | 58 +++++++++++++++++++++++------------ 1 file changed, 39 insertions(+), 19 deletions(-) diff --git a/docs/features/dom0less.pandoc b/docs/features/dom0less.pandoc index e076e3739e..d4f44b5502 100644 --- a/docs/features/dom0less.pandoc +++ b/docs/features/dom0less.pandoc @@ -40,8 +40,8 @@ to boot. For example if this is the bootcmd for Xen and Dom0: bootm 0x1400000 0x9000000 0x1280000 -If we want to add one DomU with Image-DomU as the DomU kernel -and ramdisk-DomU as DomU ramdisk: +If we want to add one DomU with Image-DomU as the DomU kernel +and ramdisk-DomU as DomU ramdisk: tftpb 0x1280000 xen.dtb tftpb 0x80000 xen-Image @@ -61,25 +61,27 @@ the presence of the additional VM and its configuration. It is done via device tree adding a node under /chosen as follows: domU1 { -     compatible = "xen,domain"; -     memory = <0x20000>; -    cpus = 1; -     vpl011; - -     module@2000000 { -         compatible = "multiboot,kernel", "multiboot,module"; -         reg = <0x2000000 0xffffff>; -         bootargs = "console=ttyAMA0"; -     }; - -     module@30000000 { -         compatible = "multiboot,ramdisk", "multiboot,module"; -         reg = <0x3000000 0xffffff>; -     }; + #address-cells = <0x00000001>; + #size-cells = <0x00000001>; + compatible = "xen,domain"; + memory = <0x20000>; + cpus = 1; + vpl011; + + module@2000000 { + compatible = "multiboot,kernel", "multiboot,module"; + reg = <0x2000000 0xffffff>; + bootargs = "console=ttyAMA0"; + }; + + module@30000000 { + compatible = "multiboot,ramdisk", "multiboot,module"; + reg = <0x3000000 0xffffff>; + }; }; -Where memory is the memory of the VM in KBs, cpus is the number of -cpus. module@2000000 and module@3000000 advertise where the kernel and +Where memory is the memory of the VM in KBs, cpus is the number of +cpus. module@2000000 and module@3000000 advertise where the kernel and ramdisk are in memory. See docs/misc/arm/device-tree/booting.txt for more information. @@ -111,3 +113,21 @@ limitations: the Xen command line. The NULL scheduler automatically assigns and pins vCPUs to pCPUs, but the vCPU-pCPU assignments cannot be configured. + +Notes +----- + +- 'xl console' command will not attach to the domain's console in case + of dom0less. DomU are domains created by Xen (similar to Dom0) and + therefore they are all managed by Xen and some of the commands may not work. + + A user is allowed to configure the key sequence to switch input. + Pressing the Xen "conswitch" (Ctrl-A by default) three times + switches input in case of dom0less mode. + +- Domains created by Xen will have no name at boot. Domain-0 has a name + thanks to the helper xen-init-dom0 called at boot by the initscript. + If you want to setup DomU name, then you will have to create the xenstore + node associated. By default DomU names are shown as '(null)' in the + xl domains list. +