All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <sstabellini@kernel.org>
To: Julien Grall <julien.grall@arm.com>
Cc: artem_mygaiev@epam.com, Stefano Stabellini <stefanos@xilinx.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	andrii_anisov@epam.com, xen-devel@lists.xen.org,
	edgari@xilinx.com
Subject: Re: [PATCH RFC 03/15] xen/arm: extend device tree based multiboot protocol
Date: Mon, 2 Jul 2018 14:31:24 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.10.1807021338290.23811@sstabellini-ThinkPad-X260> (raw)
In-Reply-To: <30b92df4-ae73-1803-94af-14a128c59746@arm.com>

On Thu, 14 Jun 2018, Julien Grall wrote:
> Hi Stefano,
> 
> On 13/06/18 23:15, Stefano Stabellini wrote:
> > Extend the existing device tree based multiboot protocol to include
> > information regarding other domUs to boot.
> > 
> > Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
> > ---
> >   docs/misc/arm/device-tree/booting.txt | 102
> > ++++++++++++++++++++++++++++++++++
> >   1 file changed, 102 insertions(+)
> > 
> > diff --git a/docs/misc/arm/device-tree/booting.txt
> > b/docs/misc/arm/device-tree/booting.txt
> > index ce2d0dc..95255e5 100644
> > --- a/docs/misc/arm/device-tree/booting.txt
> > +++ b/docs/misc/arm/device-tree/booting.txt
> > @@ -119,3 +119,105 @@ For those you would hardcode the Xen commandline in
> > the DTB under
> >   line by writing bootargs (as for native Linux).
> >   A Xen-aware bootloader would set xen,xen-bootargs for Xen,
> > xen,dom0-bootargs
> >   for Dom0 and bootargs for native Linux.
> > +
> > +
> > +Creating DomUs directly from Xen
> > +================================
> > +
> > +It is possible to have Xen create other domains, in addition to dom0,
> > +out of the information provided via device tree. A Kernel and initrd
> 
> NIT: s/Kernel/kernel/

OK


> > +(optional) need to be specified for each guest.
> > +
> > +For each DomU to be created there needs to be one node under /chosen
> > +with the following properties:
> 
> I think it would be better to make this domain agnostic. I.e allow Dom0 to be
> created the same way but still supporting the current bindings.
> 
> We could differentiate Dom0 from the other with a property
> "xen,initial-domain". Note that I am not asking to add this property in this
> series. This is more a forward looking of the use of this binding.

It sounds like a good idea, I'll add it.


> > +
> > +- compatible
> > +
> > +    "xen,domU"
> 
> If we follow my suggestion, this would be renamed "xen,domain".

OK


> > +
> > +- mem (optional)
> 
> I would prefer the full name "memory".
 
Yes, especially given that the corresponding xl config file option is
called "memory".


> > +
> > +    A string specifying the amount of RAM to allocate to the guest. If
> > +    not specified it defaults to "64M". The format of the string is the
> > same
> > +    as the one for the mem= parameter in xl config files.
> 
> I don't much like default values because they are pretty arbitrary. This also
> does not match the default value for Dom0. Why don't you mandate the property?

Yes, I can do that.


> I would also prefer if the size is specified in the same way number are
> described in Device-Tree. I.e using cells. You could impose 2 cells for the
> size here.

see below


> > +
> > +- cpus (optional)
> > +
> > +    A string specifying the number of vcpus to allocate to the guest. If
> > +    not specified it defaults to "1".
> 
> Same remarks as for "mem".

I think it would be nicer if we kept the same format used for xl config
files for these two options. Especially given that we already have the
functions in the hypervisor to parse them (Xen knows how to parse
dom0_max_vcpus and dom0_mem for instance). It is going to be easier to
use and it doesn't come with a cost for Xen.

Edgar, what do you think?


> > +
> > +- #address-cells and #size-cells
> > +
> > +    Both #address-cells and #size-cells need to be specified because
> > +    both sub-nodes (described shortly) have reg properties.
> > +
> > +Under the "xen,domU" compatible node, one or more sub-nodes are present
> > +for the DomU kernel and ramdisk.
> > +
> > +The kernel sub-node has the following properties:
> > +
> > +- compatible
> > +
> > +    "multiboot,domU-kernel"
> 
> I don't think we need to specify a new compatible here. We could re-use
> "multiboot,kernel" here because the parent node will contain "xen,domU".

Yes you are right


> > +
> > +- reg
> > +
> > +    Specifies the physical address of the kernel in RAM and its
> > +    length.
> > +
> > +- bootargs (optional)
> > +
> > +    Command line parameters for the guest kernel.
> > +
> > +The ramdisk sub-node has the following properties:
> > +
> > +- compatible
> > +
> > +    "multiboot,domU-ramdisk"
> 
> Same here, we could re-use "multiboot,ramdisk".

OK


> > +
> > +- reg
> > +
> > +    Specifies the physical address of the ramdisk in RAM and its
> > +    length.
> 
> We should mention somewhere that this should be described in the /chosen node
> of the device-tree.

OK

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-07-02 21:31 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-13 22:15 [PATCH RFC 00/15] dom0less step1: boot multiple domains from device tree Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 01/15] xen: allow console_io hypercalls from DomUs on ARM Stefano Stabellini
2018-06-14 15:33   ` Julien Grall
2018-06-13 22:15 ` [PATCH RFC 02/15] xen/arm: move a few guest related #defines to public/arch-arm.h Stefano Stabellini
2018-06-14 15:36   ` Julien Grall
2018-06-14 21:15     ` Stefano Stabellini
2018-06-15 16:21       ` Julien Grall
2018-07-02 20:37         ` Stefano Stabellini
2018-07-02 21:13           ` Julien Grall
2018-07-02 21:38             ` Stefano Stabellini
2018-07-03 10:22               ` Julien Grall
2018-07-03 21:30                 ` Stefano Stabellini
2018-07-04  7:20                   ` Julien Grall
2018-06-27 14:11   ` Wei Liu
2018-06-13 22:15 ` [PATCH RFC 03/15] xen/arm: extend device tree based multiboot protocol Stefano Stabellini
2018-06-14 16:07   ` Julien Grall
2018-07-02 21:31     ` Stefano Stabellini [this message]
2018-07-03  9:35       ` Edgar E. Iglesias
2018-07-03 22:23         ` Stefano Stabellini
2018-07-03 10:40       ` Julien Grall
2018-07-03 22:16         ` Stefano Stabellini
2018-07-04 16:27           ` Julien Grall
2018-06-13 22:15 ` [PATCH RFC 04/15] xen/arm: do not pass dt_host to make_memory_node and make_hypervisor_node Stefano Stabellini
2018-06-14 16:10   ` Julien Grall
2018-06-14 21:24     ` Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 05/15] xen/arm: rename acpi_make_chosen_node to make_chosen_node Stefano Stabellini
2018-06-14 16:16   ` Julien Grall
2018-06-14 22:01     ` Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 06/15] xen/arm: add BOOTMOD_DOMU_KERNEL/RAMDISK Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 07/15] xen/arm: increase MAX_MODULES Stefano Stabellini
2018-07-06  2:10   ` Doug Goldstein
2018-07-06 10:17     ` Julien Grall
2018-06-13 22:15 ` [PATCH RFC 08/15] xen/arm: probe domU kernels and initrds Stefano Stabellini
2018-06-14 16:45   ` Julien Grall
2018-07-05 20:38     ` Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 09/15] xen/arm: refactor construct_dom0 Stefano Stabellini
2018-06-14 17:16   ` Julien Grall
2018-06-14 23:35     ` Stefano Stabellini
2018-06-15 16:32       ` Julien Grall
2018-07-05 20:55         ` Stefano Stabellini
2018-07-05 21:06           ` Julien Grall
2018-07-06 23:11             ` Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 10/15] xen/arm: introduce construct_domU Stefano Stabellini
2018-06-14 17:25   ` Julien Grall
2018-07-05 23:00     ` Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 11/15] xen/arm: generate a simple device tree for domUs Stefano Stabellini
2018-06-14 18:13   ` Julien Grall
2018-07-05 23:59     ` Stefano Stabellini
2018-07-06 10:22       ` Julien Grall
2018-07-06 16:16         ` Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 12/15] xen/arm: generate vpl011 node on device tree for domU Stefano Stabellini
2018-06-15 16:58   ` Julien Grall
2018-07-06 17:11     ` Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 13/15] xen/arm: Allow vpl011 to be used by DomU Stefano Stabellini
2018-06-15 17:38   ` Julien Grall
2018-07-06 23:10     ` Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 14/15] xen/arm: call construct_domU from start_xen and start DomU VMs Stefano Stabellini
2018-06-15 18:24   ` Julien Grall
2018-07-06 23:11     ` Stefano Stabellini
2018-07-09 12:48       ` Julien Grall
2018-07-09 20:59         ` Stefano Stabellini
2018-07-09 21:06           ` Julien Grall
2018-07-09 21:23             ` Stefano Stabellini
2018-06-13 22:15 ` [PATCH RFC 15/15] xen: support console_switching between Dom0 and DomUs on ARM Stefano Stabellini
2018-06-14 19:08 ` [PATCH RFC 00/15] dom0less step1: boot multiple domains from device tree Edgar E. Iglesias
2018-06-14 20:34   ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.10.1807021338290.23811@sstabellini-ThinkPad-X260 \
    --to=sstabellini@kernel.org \
    --cc=andrii_anisov@epam.com \
    --cc=artem_mygaiev@epam.com \
    --cc=edgari@xilinx.com \
    --cc=julien.grall@arm.com \
    --cc=stefanos@xilinx.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.