Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-08-03 Thread Christoffer Dall
On Fri, Jul 31, 2015 at 4:09 PM, Stefano Stabellini wrote: [...] > > > One option going forward is to map MMIO regions in Dom0 on demand when > trapping in Xen with a data abort. Specifically in > xen/arch/arm/traps.c:do_trap_data_abort_guest we could check that the > guest is dom0 and that the

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-31 Thread Ian Campbell
On Fri, 2015-07-31 at 17:24 +0100, Stefano Stabellini wrote: > > One more solution that I would like to see investigated, would be to use > an hypercall from Dom0 to request MMIO region mappings, after Linux > completed parsing the DSDT. If we can do this cleanly in Linux, it would > be our best o

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-31 Thread Stefano Stabellini
On Fri, 31 Jul 2015, Stefano Stabellini wrote: > On Fri, 31 Jul 2015, Julien Grall wrote: > > Hi Shannon, > > > > On 31/07/15 02:30, Shannon Zhao wrote: > > > > > > > > > On 2015/7/31 2:31, Julien Grall wrote: > > >> On 30/07/15 19:02, Parth Dixit wrote: > > >>> instead of ge

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-31 Thread Stefano Stabellini
On Fri, 31 Jul 2015, Julien Grall wrote: > Hi Shannon, > > On 31/07/15 02:30, Shannon Zhao wrote: > > > > > > On 2015/7/31 2:31, Julien Grall wrote: > >> On 30/07/15 19:02, Parth Dixit wrote: > >>> instead of getting mmio information for individual > >>> devices from dsdt, we

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-31 Thread Julien Grall
Hi Shannon, On 31/07/15 02:30, Shannon Zhao wrote: > > > On 2015/7/31 2:31, Julien Grall wrote: >> On 30/07/15 19:02, Parth Dixit wrote: >>> instead of getting mmio information for individual >>> devices from dsdt, we will map all the non-ram regions described in >>> uefi. AM

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-30 Thread Shannon Zhao
On 2015/7/31 2:31, Julien Grall wrote: > Hi, > > On 30/07/15 19:02, Parth Dixit wrote: >> instead of getting mmio information for individual >> devices from dsdt, we will map all the non-ram regions described in >> uefi. AML interpreter option was discussed earlier and it was

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-30 Thread Shannon Zhao
On 2015/7/31 2:02, Parth Dixit wrote: > Hi Shannon, > instead of getting mmio information for individual > devices from dsdt, we will map all the non-ram regions described in > uefi. Yes, I don't want to use AML interpreter either. But how to get all the non-ram regions? > A

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-30 Thread Parth Dixit
On 31 July 2015 at 00:01, Julien Grall wrote: > Hi, > > On 30/07/15 19:02, Parth Dixit wrote: >> instead of getting mmio information for individual >> devices from dsdt, we will map all the non-ram regions described in >> uefi. AML interpreter option was discussed earlier and i

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-30 Thread Julien Grall
Hi, On 30/07/15 19:02, Parth Dixit wrote: > instead of getting mmio information for individual > devices from dsdt, we will map all the non-ram regions described in > uefi. AML interpreter option was discussed earlier and it was decided > not to go with that approach. You can f

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-30 Thread Parth Dixit
Hi Shannon, instead of getting mmio information for individual devices from dsdt, we will map all the non-ram regions described in uefi. AML interpreter option was discussed earlier and it was decided not to go with that approach. You can find more details in the linaro xen wiki

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-30 Thread Shannon Zhao
On 2015/7/5 21:30, Parth Dixit wrote: > +shannon > > On 15 June 2015 at 06:49, Julien Grall wrote: >> Hi Parth, >> >> On 14/06/2015 11:27, Parth Dixit wrote: >>> >>> On 8 June 2015 at 22:20, Julien Grall wrote: Hi Parth, On 17/05/2015 21:03, Parth Dixit wrote: > > >

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-07-05 Thread Parth Dixit
+shannon On 15 June 2015 at 06:49, Julien Grall wrote: > Hi Parth, > > On 14/06/2015 11:27, Parth Dixit wrote: >> >> On 8 June 2015 at 22:20, Julien Grall wrote: >>> >>> Hi Parth, >>> >>> On 17/05/2015 21:03, Parth Dixit wrote: In ACPI mmio regions are described in DSDT which requ

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-06-14 Thread Julien Grall
Hi Parth, On 14/06/2015 11:27, Parth Dixit wrote: On 8 June 2015 at 22:20, Julien Grall wrote: Hi Parth, On 17/05/2015 21:03, Parth Dixit wrote: In ACPI mmio regions are described in DSDT which requires AML interpreter. Defer the mapping of mmio until DSDT is parsed in DOM0 and map mmio's d

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-06-14 Thread Parth Dixit
On 8 June 2015 at 22:20, Julien Grall wrote: > Hi Parth, > > On 17/05/2015 21:03, Parth Dixit wrote: >> >> In ACPI mmio regions are described in DSDT which requires >> AML interpreter. Defer the mapping of mmio until DSDT is parsed in >> DOM0 and map mmio's dynamically at the time of request. > >

Re: [Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-06-08 Thread Julien Grall
Hi Parth, On 17/05/2015 21:03, Parth Dixit wrote: In ACPI mmio regions are described in DSDT which requires AML interpreter. Defer the mapping of mmio until DSDT is parsed in DOM0 and map mmio's dynamically at the time of request. I'm against a such solution. Even though it's DOM0 we should av

[Xen-devel] [PATCH v2 32/41] arm : acpi dynamically map mmio regions

2015-05-17 Thread Parth Dixit
In ACPI mmio regions are described in DSDT which requires AML interpreter. Defer the mapping of mmio until DSDT is parsed in DOM0 and map mmio's dynamically at the time of request. Signed-off-by: Parth Dixit --- xen/arch/arm/traps.c | 51 ++- 1 fil