Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-24 Thread Lan Tianyu
On 2017年08月24日 14:54, Jan Beulich wrote: On 24.08.17 at 04:33, wrote: >> On 2017年08月23日 16:04, Roger Pau Monné wrote: >>> On Wed, Aug 23, 2017 at 03:52:01PM +0800, Lan Tianyu wrote: On 2017年08月23日 00:41, Roger Pau Monné wrote: >>> +drhd = (struct acpi_dmar_hardware_unit *)((void*

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-23 Thread Jan Beulich
>>> On 24.08.17 at 04:33, wrote: > On 2017年08月23日 16:04, Roger Pau Monné wrote: >> On Wed, Aug 23, 2017 at 03:52:01PM +0800, Lan Tianyu wrote: >>> On 2017年08月23日 00:41, Roger Pau Monné wrote: >> +drhd = (struct acpi_dmar_hardware_unit *)((void*)dmar + >> sizeof(*dmar)); >> +dr

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-23 Thread Lan Tianyu
On 2017年08月23日 16:04, Roger Pau Monné wrote: > On Wed, Aug 23, 2017 at 03:52:01PM +0800, Lan Tianyu wrote: >> On 2017年08月23日 00:41, Roger Pau Monné wrote: > +drhd = (struct acpi_dmar_hardware_unit *)((void*)dmar + > sizeof(*dmar)); > +drhd->type = ACPI_DMAR_TYPE_HARDWARE_UNIT;

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-23 Thread Roger Pau Monné
Small mistake in my message. On Wed, Aug 23, 2017 at 09:04:06AM +0100, Roger Pau Monné wrote: > On Wed, Aug 23, 2017 at 03:52:01PM +0800, Lan Tianyu wrote: > > On 2017年08月23日 00:41, Roger Pau Monné wrote: > > >> > +drhd = (struct acpi_dmar_hardware_unit *)((void*)dmar + > > >> > sizeof(*dmar)

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-23 Thread Wei Liu
On Wed, Aug 23, 2017 at 10:36:45AM +0800, Lan Tianyu wrote: > On 2017年08月22日 21:12, Wei Liu wrote: > > On Wed, Aug 09, 2017 at 04:34:08PM -0400, Lan Tianyu wrote: > >> From: Chao Gao > >> > >> The BIOS reports the remapping hardware units in a platform to system > >> software > >> through the DMA

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-23 Thread Roger Pau Monné
On Wed, Aug 23, 2017 at 03:52:01PM +0800, Lan Tianyu wrote: > On 2017年08月23日 00:41, Roger Pau Monné wrote: > >> > +drhd = (struct acpi_dmar_hardware_unit *)((void*)dmar + > >> > sizeof(*dmar)); > >> > +drhd->type = ACPI_DMAR_TYPE_HARDWARE_UNIT; > >> > +drhd->length = sizeof(*drhd) + io

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-23 Thread Lan Tianyu
On 2017年08月23日 00:41, Roger Pau Monné wrote: >> > +drhd = (struct acpi_dmar_hardware_unit *)((void*)dmar + >> > sizeof(*dmar)); >> > +drhd->type = ACPI_DMAR_TYPE_HARDWARE_UNIT; >> > +drhd->length = sizeof(*drhd) + ioapic_scope_size; >> > +drhd->flags = ACPI_DMAR_INCLUDE_PCI_ALL; >>

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-22 Thread Lan Tianyu
On 2017年08月22日 21:12, Wei Liu wrote: > On Wed, Aug 09, 2017 at 04:34:08PM -0400, Lan Tianyu wrote: >> From: Chao Gao >> >> The BIOS reports the remapping hardware units in a platform to system >> software >> through the DMA Remapping Reporting (DMAR) ACPI table. >> New fields are introduces for D

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-22 Thread Roger Pau Monné
On Wed, Aug 09, 2017 at 04:34:08PM -0400, Lan Tianyu wrote: > From: Chao Gao > > The BIOS reports the remapping hardware units in a platform to system software > through the DMA Remapping Reporting (DMAR) ACPI table. > New fields are introduces for DMAR table. These new fields are set by

Re: [Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-22 Thread Wei Liu
On Wed, Aug 09, 2017 at 04:34:08PM -0400, Lan Tianyu wrote: > From: Chao Gao > > The BIOS reports the remapping hardware units in a platform to system software > through the DMA Remapping Reporting (DMAR) ACPI table. > New fields are introduces for DMAR table. These new fields are set by > toolst

[Xen-devel] [PATCH V2 7/25] tools/libacpi: Add new fields in acpi_config for DMAR table

2017-08-09 Thread Lan Tianyu
From: Chao Gao The BIOS reports the remapping hardware units in a platform to system software through the DMA Remapping Reporting (DMAR) ACPI table. New fields are introduces for DMAR table. These new fields are set by toolstack through parsing guest's config file. construct_dmar() is added to bu