From: Dario Faggioli <dario.faggioli@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: paolo.valente@unimore.it, stefano.stabellini@eu.citrix.com,
Julien Grall <julien.grall@linaro.org>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
xen-devel@lists.xen.org, julien.grall@citrix.com,
etrudeau@broadcom.com,
Arianna Avanzini <avanzini.arianna@gmail.com>,
viktor.kleinik@globallogic.com
Subject: Re: [RFC PATCH 3/3] tools, libxl: handle the iomem parameter with the memory_mapping hcall
Date: Mon, 3 Mar 2014 11:32:16 +0100 [thread overview]
Message-ID: <1393842736.4058.20.camel@Solace> (raw)
In-Reply-To: <1393759633.19684.39.camel@hastur.hellion.org.uk>
[-- Attachment #1.1: Type: text/plain, Size: 2691 bytes --]
On dom, 2014-03-02 at 11:27 +0000, Ian Campbell wrote:
> On Sun, 2014-03-02 at 18:33 +0800, Julien Grall wrote:
> > Do you plan to give I/O mem range which is not describe by the device tree?
> >
> > IHMO, allow the user to specify which I/O mem region will be mapped to
> > the guest on ARM is wrong. As the platform is described via the device
> > tree, the guest configuration should have a list of node to map to domU.
> > Then {lib,}xl will parse/map/update the DT node to the guest.
>
> I think there is room for both models. People just doing basic device
> pass-through will probably want a "user friendly" DT based option, but
> others might want to use a lower level raw interface, just like on x86
> where we provide both the low level iomem/ioport/irq interface and the
> pci passthrough syntax.
>
That indeed is the case. The automotive OS Arianna is porting on Xen on
ARM doesn't know anything about device trees. Actually, a DT parser
would probably be more code than the OS itself! :-P
AFAIUI, that's Eric's case too. In fact this is, I think, quite common
in small/embedded OSes, and it would be a good thing for Xen to allow
them to work as guests, without necessarily requiring them to go for DT
(of course, the cost of keeping things consistent is on them!).
> If they want to hard code an address in both their cfg file and their
> guest kernel then that is up to them, they get to keep both pieces when
> we changes things of course.
>
Right. So, just to make sure I understand it correctly, you're saying
that it is fine to have the hypercall implemented and called sort of
like how Arianna is doing it, modulo moving the call outside of common
ARM and x86 code, as Julien pointed out, is this correct? If yes, I
(FWIW) totally concur. :-)
For the sake of this series, do you think there is something that
Arianna should do, if not to ensure 100% consistency (which is not Xen's
job, in this case) but, perhaps, just to put things on the safe side?
> We might need some sort of ARM equivalent to the x86 "e820_host" option
> -- which makes the guest address space look like the hosts (similar to
> what we do for dom0 on ARM).
>
Right. Again, and sorry for not getting it just from the above, do you
think this is something Arianna should take care of, when reposting the
series, or can/should it be done also later?
Thanks and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2014-03-03 10:32 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-02 0:49 [RFC PATCH 0/3] Implement the XEN_DOMCTL_memory_mapping hypecall for arm32 Arianna Avanzini
2014-03-02 0:49 ` [RFC PATCH 1/3] arch, arm32: add definition of paddr_bits Arianna Avanzini
2014-03-02 8:13 ` Julien Grall
2014-03-07 0:36 ` Arianna Avanzini
2014-03-02 0:49 ` [RFC PATCH 2/3] arch, arm32: add the XEN_DOMCTL_memory_mapping hypercall Arianna Avanzini
2014-03-02 9:56 ` Julien Grall
2014-03-03 11:56 ` Dario Faggioli
2014-03-03 15:20 ` Julien Grall
2014-03-03 15:33 ` Dario Faggioli
2014-03-04 2:42 ` Julien Grall
2014-03-07 0:47 ` Arianna Avanzini
2014-03-03 16:25 ` Eric Trudeau
2014-03-03 16:35 ` Dario Faggioli
2014-03-03 19:04 ` Eric Trudeau
2014-03-05 13:59 ` Arianna Avanzini
2014-03-06 3:41 ` Julien Grall
2014-03-07 0:57 ` Arianna Avanzini
2014-03-03 18:06 ` Eric Trudeau
2014-03-04 3:08 ` Julien Grall
2014-03-07 0:56 ` Arianna Avanzini
2014-03-07 3:41 ` Julien Grall
2014-03-07 19:49 ` Arianna Avanzini
2014-03-02 0:49 ` [RFC PATCH 3/3] tools, libxl: handle the iomem parameter with the memory_mapping hcall Arianna Avanzini
2014-03-02 10:33 ` Julien Grall
2014-03-02 11:27 ` Ian Campbell
2014-03-03 10:32 ` Dario Faggioli [this message]
2014-03-03 15:13 ` Julien Grall
2014-03-07 0:45 ` Arianna Avanzini
2014-03-07 4:03 ` Julien Grall
2014-03-07 19:54 ` Arianna Avanzini
2014-03-03 11:19 ` Dario Faggioli
2014-03-07 4:05 ` Julien Grall
2014-03-02 8:13 ` [RFC PATCH 0/3] Implement the XEN_DOMCTL_memory_mapping hypecall for arm32 Julien Grall
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=1393842736.4058.20.camel@Solace \
--to=dario.faggioli@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=avanzini.arianna@gmail.com \
--cc=etrudeau@broadcom.com \
--cc=ian.campbell@citrix.com \
--cc=julien.grall@citrix.com \
--cc=julien.grall@linaro.org \
--cc=paolo.valente@unimore.it \
--cc=stefano.stabellini@eu.citrix.com \
--cc=viktor.kleinik@globallogic.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).