Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-27 Thread Shannon Zhao
On 2015/8/27 22:13, Jan Beulich wrote: On 27.08.15 at 15:50, wrote: On 2015/8/27 15:52, Jan Beulich wrote: One other aspect completely left off so far is that of proper isolation: What x86 exposes to Dom0 is specifically limited to what Dom0 is supposed to know. I'm getting the impression th

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-27 Thread Jan Beulich
>>> On 27.08.15 at 15:50, wrote: > On 2015/8/27 15:52, Jan Beulich wrote: >> One other aspect completely left off so far is that of proper isolation: >> What x86 exposes to Dom0 is specifically limited to what Dom0 is >> supposed to know. I'm getting the impression that by exposing more >> EFI tab

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-27 Thread Shannon Zhao
On 2015/8/27 15:52, Jan Beulich wrote: On 27.08.15 at 02:37, wrote: On 20/08/2015 19:25, Shannon Zhao wrote: On 2015/8/20 22:06, Jan Beulich wrote: So can the two of you please sort out whether these are Linux internal tags (which Xen has no business generating, or even knowing of) or some

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-27 Thread Jan Beulich
>>> On 27.08.15 at 02:37, wrote: > On 20/08/2015 19:25, Shannon Zhao wrote: >> On 2015/8/20 22:06, Jan Beulich wrote: >>> So can the two of you please sort out whether these are Linux >>> internal tags (which Xen has no business generating, or even >>> knowing of) or some form of publicly document

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-26 Thread Julien Grall
Hi, Sorry for the late answer. On 20/08/2015 19:25, Shannon Zhao wrote: On 2015/8/20 22:06, Jan Beulich wrote: On 20.08.15 at 14:56, wrote: On 2015/8/20 17:30, Jan Beulich wrote: On 20.08.15 at 05:41, wrote: On 2015/8/19 22:05, Jan Beulich wrote: On 19.08.15 at 14:13, wrote: 1. Crea

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-21 Thread Jan Beulich
>>> On 21.08.15 at 04:25, wrote: > I'm ok with placing them in the memory not owned by Dom0. Is there some > ways to find that kind of memory space in Xen? Who do you need to be able to find such memory? Or maybe I'm not getting what or why you're asking... Jan

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Shannon Zhao
On 2015/8/20 21:46, Roger Pau Monné wrote: > El 20/08/15 a les 14.29, Shannon Zhao ha escrit: >> >> >> On 2015/8/20 19:28, Roger Pau Monné wrote: >>> El 20/08/15 a les 13.22, Shannon Zhao ha escrit: Hi Roger, On 2015/8/20 16:20, Roger Pau Monné wrote: > El 20/08/15 a les 5.07,

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Shannon Zhao
On 2015/8/20 22:06, Jan Beulich wrote: On 20.08.15 at 14:56, wrote: > >> >> On 2015/8/20 17:30, Jan Beulich wrote: >> On 20.08.15 at 05:41, wrote: On 2015/8/19 22:05, Jan Beulich wrote: On 19.08.15 at 14:13, wrote: >> 1. Create minimal DT to pass required informatio

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Jan Beulich
>>> On 20.08.15 at 15:46, wrote: > El 20/08/15 a les 14.29, Shannon Zhao ha escrit: >> >> >> On 2015/8/20 19:28, Roger Pau Monné wrote: >>> El 20/08/15 a les 13.22, Shannon Zhao ha escrit: Hi Roger, On 2015/8/20 16:20, Roger Pau Monné wrote: > El 20/08/15 a les 5.07, Shannon Z

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Jan Beulich
>>> On 20.08.15 at 14:56, wrote: > > On 2015/8/20 17:30, Jan Beulich wrote: > On 20.08.15 at 05:41, wrote: >>> On 2015/8/19 22:05, Jan Beulich wrote: >>> On 19.08.15 at 14:13, wrote: > 1. Create minimal DT to pass required information to Dom0 > -

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Roger Pau Monné
El 20/08/15 a les 14.29, Shannon Zhao ha escrit: > > > On 2015/8/20 19:28, Roger Pau Monné wrote: >> El 20/08/15 a les 13.22, Shannon Zhao ha escrit: >>> Hi Roger, >>> >>> On 2015/8/20 16:20, Roger Pau Monné wrote: El 20/08/15 a les 5.07, Shannon Zhao ha escrit: > On 2015/8/19 23:02, Rog

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Shannon Zhao
On 2015/8/20 17:30, Jan Beulich wrote: On 20.08.15 at 05:41, wrote: On 2015/8/19 22:05, Jan Beulich wrote: On 19.08.15 at 14:13, wrote: 1. Create minimal DT to pass required information to Dom0 -- Since there are no legacy interfaces

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Shannon Zhao
On 2015/8/20 19:28, Roger Pau Monné wrote: El 20/08/15 a les 13.22, Shannon Zhao ha escrit: Hi Roger, On 2015/8/20 16:20, Roger Pau Monné wrote: El 20/08/15 a les 5.07, Shannon Zhao ha escrit: On 2015/8/19 23:02, Roger Pau Monné wrote: El 19/08/15 a les 14.13, Shannon Zhao ha escrit: XENM

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Jan Beulich
>>> On 20.08.15 at 13:28, wrote: > If you want you can check in the hypercall handler that idxs[i] == > gpfns[i], and return -EOPNOTSUPP if they don't match, but I still don't > see why this should be restricted to 1:1 mappings. +1 Jan ___ Xen-devel

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Roger Pau Monné
El 20/08/15 a les 13.22, Shannon Zhao ha escrit: > Hi Roger, > > On 2015/8/20 16:20, Roger Pau Monné wrote: >> El 20/08/15 a les 5.07, Shannon Zhao ha escrit: >>> On 2015/8/19 23:02, Roger Pau Monné wrote: El 19/08/15 a les 14.13, Shannon Zhao ha escrit: > XENMAPSPACE "XENMAPSPACE_dev_mmi

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Shannon Zhao
Hi Roger, On 2015/8/20 16:20, Roger Pau Monné wrote: El 20/08/15 a les 5.07, Shannon Zhao ha escrit: On 2015/8/19 23:02, Roger Pau Monné wrote: El 19/08/15 a les 14.13, Shannon Zhao ha escrit: XENMAPSPACE "XENMAPSPACE_dev_mmio". The usage of this hypercall parameters: - domid: DOMID_SELF. - s

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Jan Beulich
>>> On 20.08.15 at 05:41, wrote: > On 2015/8/19 22:05, Jan Beulich wrote: > On 19.08.15 at 14:13, wrote: >>> 1. Create minimal DT to pass required information to Dom0 >>> -- >>> Since there are no legacy interfaces like x86 for Dom0 to g

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Jan Beulich
>>> On 19.08.15 at 20:37, wrote: > On 19/08/2015 07:05, Jan Beulich wrote: >> ... wouldn't it make more sense to leave the generation of these >> Linux-specific tags to Linux (and allow them to continue to be Linux >> specific), by the same or a second, parallel (Xen) stub? This would >> then also

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-20 Thread Roger Pau Monné
El 20/08/15 a les 5.07, Shannon Zhao ha escrit: > On 2015/8/19 23:02, Roger Pau Monné wrote: >> El 19/08/15 a les 14.13, Shannon Zhao ha escrit: >>> XENMAPSPACE "XENMAPSPACE_dev_mmio". The usage of this hypercall >>> parameters: >>> - domid: DOMID_SELF. >>> - space: XENMAPSPACE_dev_mmio. >>> - gpfn

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-19 Thread Julien Grall
On 19/08/2015 20:07, Shannon Zhao wrote: and I don't think the domid field needs an explanation TBH. Within the register, check if the device is newly added, then call hypercall XENMEM_add_to_physmap to map the mmio regions. For PCI bus device, it could reuse the existing PCI bus_notifier l

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-19 Thread Shannon Zhao
Hi Jan, On 2015/8/19 22:05, Jan Beulich wrote: On 19.08.15 at 14:13, wrote: >> 1. Create minimal DT to pass required information to Dom0 >> -- >> Since there are no legacy interfaces like x86 for Dom0 to get the >> booting required info

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-19 Thread Shannon Zhao
Hi Roger, On 2015/8/19 23:02, Roger Pau Monné wrote: > El 19/08/15 a les 14.13, Shannon Zhao ha escrit: >> 4. Map MMIO regions >> --- >> Register a bus_notifier for platform and amba bus in Linux. Add a new > > Can we make this OS agnostic? Could you explain what you mean with the

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-19 Thread Julien Grall
Hi Jan, On 19/08/2015 07:05, Jan Beulich wrote: ... wouldn't it make more sense to leave the generation of these Linux-specific tags to Linux (and allow them to continue to be Linux specific), by the same or a second, parallel (Xen) stub? This would then also move at least some of the awkward ta

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-19 Thread Roger Pau Monné
El 19/08/15 a les 14.13, Shannon Zhao ha escrit: > 4. Map MMIO regions > --- > Register a bus_notifier for platform and amba bus in Linux. Add a new Can we make this OS agnostic? Could you explain what you mean with the above sentence without using Linux kernel internals? > XENMAP

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-19 Thread Jan Beulich
>>> On 19.08.15 at 14:13, wrote: > 1. Create minimal DT to pass required information to Dom0 > -- > Since there are no legacy interfaces like x86 for Dom0 to get the > booting required information on ARM, here we use the minimal DT which is >

[Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 4

2015-08-19 Thread Shannon Zhao
This document is going to explain the design details of Xen booting with ACPI on ARM. Maybe parts of it may not be appropriate. Any comments are welcome. Changes v3->v4: * add explanation for minimal DT and the properties * drop "linux," prefix of the properties * add explanation for the event cha