Re: [Patch Part3 V5 1/8] iommu/vt-d: Introduce helper function dmar_walk_resources()

2014-09-16 Thread Yijing Wang
>>> #include "irq_remapping.h" >>> >>> +typedef int (*dmar_res_handler_t)(struct acpi_dmar_header *, void *); >>> +struct dmar_res_callback { >>> + dmar_res_handler_t cb[ACPI_DMAR_TYPE_RESERVED]; >>> + void*arg[ACPI_DMAR_TYPE_RESERVED]; >>> + bool

Re: [Patch Part3 V5 1/8] iommu/vt-d: Introduce helper function dmar_walk_resources()

2014-09-16 Thread Jiang Liu
On 2014/9/12 17:16, Yijing Wang wrote: > On 2014/9/12 10:10, Jiang Liu wrote: >> Introduce helper function dmar_walk_resources to walk resource entries >> in DMAR table and ACPI buffer object returned by ACPI _DSM method >> for IOMMU hot-plug. >> >> Signed-off-by: Jiang Liu > > Hi Gerry. some com

Re: [Patch Part3 V5 1/8] iommu/vt-d: Introduce helper function dmar_walk_resources()

2014-09-12 Thread Yijing Wang
On 2014/9/12 10:10, Jiang Liu wrote: > Introduce helper function dmar_walk_resources to walk resource entries > in DMAR table and ACPI buffer object returned by ACPI _DSM method > for IOMMU hot-plug. > > Signed-off-by: Jiang Liu Hi Gerry. some comments below. > --- > drivers/iommu/dmar.c

[Patch Part3 V5 1/8] iommu/vt-d: Introduce helper function dmar_walk_resources()

2014-09-11 Thread Jiang Liu
Introduce helper function dmar_walk_resources to walk resource entries in DMAR table and ACPI buffer object returned by ACPI _DSM method for IOMMU hot-plug. Signed-off-by: Jiang Liu --- drivers/iommu/dmar.c| 209 +++ drivers/iommu/intel-iommu.c |