Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-23 Thread Roger Pau Monné
On Fri, Jan 20, 2017 at 02:53:34PM -0800, Stefano Stabellini wrote: > On Fri, 20 Jan 2017, Roger Pau Monné wrote: > > > > > So you need DOM0 to tell the list of regions. > > > > > > > > Yes, I agree that we need such hypercall ATM, although I think that we > > > > might be > > > > able to get rid

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-20 Thread Stefano Stabellini
On Fri, 20 Jan 2017, Roger Pau Monné wrote: > > > > So you need DOM0 to tell the list of regions. > > > > > > Yes, I agree that we need such hypercall ATM, although I think that we > > > might be > > > able to get rid of it in the long term if we are able to parse the AML > > > tables > > > from

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-20 Thread Roger Pau Monné
On Fri, Jan 20, 2017 at 02:10:33PM +0100, Julien Grall wrote: > Hi Royger, > > On 20/01/2017 12:01, Roger Pau Monné wrote: > > On Thu, Jan 19, 2017 at 09:14:03PM +0100, Julien Grall wrote: > In case of ARM, Xen does not use any PCI devices (no PCI UART) itself so > scanning before hand is not nece

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-20 Thread Julien Grall
Hi Royger, On 20/01/2017 12:01, Roger Pau Monné wrote: On Thu, Jan 19, 2017 at 09:14:03PM +0100, Julien Grall wrote: On 19/01/2017 19:22, Stefano Stabellini wrote: On Thu, 19 Jan 2017, Roger Pau Monné wrote: On Wed, Jan 18, 2017 at 07:13:23PM +, Julien Grall wrote: Hi, On 18/01/17 19:05

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-20 Thread Roger Pau Monné
On Thu, Jan 19, 2017 at 09:14:03PM +0100, Julien Grall wrote: > Hello, > > On 19/01/2017 19:22, Stefano Stabellini wrote: > > On Thu, 19 Jan 2017, Roger Pau Monné wrote: > > > On Wed, Jan 18, 2017 at 07:13:23PM +, Julien Grall wrote: > > > > Hi, > > > > > > > > On 18/01/17 19:05, Stefano Stab

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-19 Thread Julien Grall
Hello, On 19/01/2017 19:22, Stefano Stabellini wrote: On Thu, 19 Jan 2017, Roger Pau Monné wrote: On Wed, Jan 18, 2017 at 07:13:23PM +, Julien Grall wrote: Hi, On 18/01/17 19:05, Stefano Stabellini wrote: On Wed, 18 Jan 2017, Roger Pau Monné wrote: On Tue, Jan 17, 2017 at 02:20:54PM -08

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-19 Thread Stefano Stabellini
On Thu, 19 Jan 2017, Roger Pau Monné wrote: > On Wed, Jan 18, 2017 at 07:13:23PM +, Julien Grall wrote: > > Hi, > > > > On 18/01/17 19:05, Stefano Stabellini wrote: > > > On Wed, 18 Jan 2017, Roger Pau Monné wrote: > > > > On Tue, Jan 17, 2017 at 02:20:54PM -0800, Stefano Stabellini wrote: > >

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-19 Thread Roger Pau Monné
On Wed, Jan 18, 2017 at 07:13:23PM +, Julien Grall wrote: > Hi, > > On 18/01/17 19:05, Stefano Stabellini wrote: > > On Wed, 18 Jan 2017, Roger Pau Monné wrote: > > > On Tue, Jan 17, 2017 at 02:20:54PM -0800, Stefano Stabellini wrote: > > > > a) One option is to provide a Xen specific implemen

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-18 Thread Julien Grall
Hi, On 18/01/17 19:05, Stefano Stabellini wrote: On Wed, 18 Jan 2017, Roger Pau Monné wrote: On Tue, Jan 17, 2017 at 02:20:54PM -0800, Stefano Stabellini wrote: a) One option is to provide a Xen specific implementation of acpi_os_ioremap in Linux. I think this is the cleanest approach, but unf

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-18 Thread Stefano Stabellini
On Wed, 18 Jan 2017, Roger Pau Monné wrote: > On Tue, Jan 17, 2017 at 02:20:54PM -0800, Stefano Stabellini wrote: > > a) One option is to provide a Xen specific implementation of > > acpi_os_ioremap in Linux. I think this is the cleanest approach, but > > unfortunately, it doesn't cover cases where

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-18 Thread Stefano Stabellini
On Wed, 18 Jan 2017, Jan Beulich wrote: > >>> On 17.01.17 at 23:20, wrote: > > b) Otherwise, we could write an alternative implementation of ioremap > > on arm64. The Xen specific ioremap would request a stage-2 mapping > > first, then create the stage-1 mapping as usual. However, this means > > i

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-18 Thread Roger Pau Monné
On Tue, Jan 17, 2017 at 02:20:54PM -0800, Stefano Stabellini wrote: > a) One option is to provide a Xen specific implementation of > acpi_os_ioremap in Linux. I think this is the cleanest approach, but > unfortunately, it doesn't cover cases where ioremap is used directly. (2) > is one of such case

Re: [Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-18 Thread Jan Beulich
>>> On 17.01.17 at 23:20, wrote: > b) Otherwise, we could write an alternative implementation of ioremap > on arm64. The Xen specific ioremap would request a stage-2 mapping > first, then create the stage-1 mapping as usual. However, this means > issuing an hypercall for every ioremap call. +1 fo

[Xen-devel] [RFC] Device memory mappings for Dom0 on ARM64 ACPI systems

2017-01-17 Thread Stefano Stabellini
Hi all, I would like to discuss with ARM64 and ACPI Linux maintainers the best way to complete ACPI support in Linux for Dom0 on ARM64. As a reminder, Xen can only parse static ACPI tables. It doesn't have a bytecode interpreter. Xen maps all ACPI tables to Dom0, which parses them as it does on