Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Shannon Zhao
On 2016/4/7 18:32, Julien Grall wrote: > Hi Shannon, > > On 07/04/16 02:37, Shannon Zhao wrote: >> >> >> On 2016/4/6 20:16, Julien Grall wrote: +gpfns[j] = XEN_PFN_DOWN(r->start) + j; +idxs[j] = XEN_PFN_DOWN(r->start) + j; +} + +

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Shannon Zhao
On 2016/4/7 18:32, Julien Grall wrote: > Hi Shannon, > > On 07/04/16 02:37, Shannon Zhao wrote: >> >> >> On 2016/4/6 20:16, Julien Grall wrote: +gpfns[j] = XEN_PFN_DOWN(r->start) + j; +idxs[j] = XEN_PFN_DOWN(r->start) + j; +} + +

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Julien Grall
Hi Shannon, On 07/04/16 02:37, Shannon Zhao wrote: On 2016/4/6 20:16, Julien Grall wrote: +gpfns[j] = XEN_PFN_DOWN(r->start) + j; +idxs[j] = XEN_PFN_DOWN(r->start) + j; +} + +xatp.domid = DOMID_SELF; +xatp.size = nr; +xatp.space =

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Julien Grall
Hi Shannon, On 07/04/16 02:37, Shannon Zhao wrote: On 2016/4/6 20:16, Julien Grall wrote: +gpfns[j] = XEN_PFN_DOWN(r->start) + j; +idxs[j] = XEN_PFN_DOWN(r->start) + j; +} + +xatp.domid = DOMID_SELF; +xatp.size = nr; +xatp.space =

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-06 Thread Shannon Zhao
On 2016/4/6 20:16, Julien Grall wrote: >> +gpfns[j] = XEN_PFN_DOWN(r->start) + j; >> +idxs[j] = XEN_PFN_DOWN(r->start) + j; >> +} >> + >> +xatp.domid = DOMID_SELF; >> +xatp.size = nr; >> +xatp.space = XENMAPSPACE_dev_mmio; >> + >> +

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-06 Thread Shannon Zhao
On 2016/4/6 20:16, Julien Grall wrote: >> +gpfns[j] = XEN_PFN_DOWN(r->start) + j; >> +idxs[j] = XEN_PFN_DOWN(r->start) + j; >> +} >> + >> +xatp.domid = DOMID_SELF; >> +xatp.size = nr; >> +xatp.space = XENMAPSPACE_dev_mmio; >> + >> +

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-06 Thread Julien Grall
Hi Shannon, Sorry to come late in the review process. On 01/04/2016 16:49, Shannon Zhao wrote: Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-06 Thread Julien Grall
Hi Shannon, Sorry to come late in the review process. On 01/04/2016 16:49, Shannon Zhao wrote: Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- drivers/xen/Makefile

[PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-01 Thread Shannon Zhao
Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- drivers/xen/Makefile | 1 + drivers/xen/arm-device.c |

[PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-01 Thread Shannon Zhao
Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao Acked-by: Stefano Stabellini --- drivers/xen/Makefile | 1 + drivers/xen/arm-device.c | 141 +++ 2 files