Re: [Qemu-devel] [V11 2/4] hw/i386: ACPI IVRS table

2016-06-19 Thread Peter Xu
On Sat, Jun 18, 2016 at 02:34:26PM +0200, Jan Kiszka wrote: > On 2016-06-18 14:32, Peter Xu wrote: > > On Sat, Jun 18, 2016 at 11:18:29AM +0300, David Kiarie wrote: [...] > >> I missed this is the last version of the patch I should fix it in next > >> version. > >> > >> On taking a closer look at

Re: [Qemu-devel] [V11 2/4] hw/i386: ACPI IVRS table

2016-06-18 Thread Jan Kiszka
On 2016-06-18 14:32, Peter Xu wrote: > On Sat, Jun 18, 2016 at 11:18:29AM +0300, David Kiarie wrote: >> On Tue, May 24, 2016 at 10:06 AM, Valentine Sinitsyn >> wrote: >>> Hi all, >>> >>> >>> On 24.05.2016 11:54, Peter Xu wrote: On Sun, May 22, 2016 at 01:21:52PM +0300, David Kiarie wrote

Re: [Qemu-devel] [V11 2/4] hw/i386: ACPI IVRS table

2016-06-18 Thread Peter Xu
On Sat, Jun 18, 2016 at 11:18:29AM +0300, David Kiarie wrote: > On Tue, May 24, 2016 at 10:06 AM, Valentine Sinitsyn > wrote: > > Hi all, > > > > > > On 24.05.2016 11:54, Peter Xu wrote: > >> > >> On Sun, May 22, 2016 at 01:21:52PM +0300, David Kiarie wrote: > >> [...] > >>> > >>> +static void > >

Re: [Qemu-devel] [V11 2/4] hw/i386: ACPI IVRS table

2016-06-18 Thread David Kiarie
On Tue, May 24, 2016 at 10:06 AM, Valentine Sinitsyn wrote: > Hi all, > > > On 24.05.2016 11:54, Peter Xu wrote: >> >> On Sun, May 22, 2016 at 01:21:52PM +0300, David Kiarie wrote: >> [...] >>> >>> +static void >>> +build_amd_iommu(GArray *table_data, GArray *linker) >>> +{ >>> +int iommu_star

Re: [Qemu-devel] [V11 2/4] hw/i386: ACPI IVRS table

2016-05-24 Thread Valentine Sinitsyn
Hi all, On 24.05.2016 11:54, Peter Xu wrote: On Sun, May 22, 2016 at 01:21:52PM +0300, David Kiarie wrote: [...] +static void +build_amd_iommu(GArray *table_data, GArray *linker) +{ +int iommu_start = table_data->len; +bool iommu_ambig; + +/* IVRS definition - table header has an e

Re: [Qemu-devel] [V11 2/4] hw/i386: ACPI IVRS table

2016-05-23 Thread Peter Xu
On Sun, May 22, 2016 at 01:21:52PM +0300, David Kiarie wrote: [...] > +static void > +build_amd_iommu(GArray *table_data, GArray *linker) > +{ > +int iommu_start = table_data->len; > +bool iommu_ambig; > + > +/* IVRS definition - table header has an extra 2-byte field */ > +acpi_da

[Qemu-devel] [V11 2/4] hw/i386: ACPI IVRS table

2016-05-22 Thread David Kiarie
Add IVRS table for AMD IOMMU. Generate IVRS or DMAR depending on emulated IOMMU. Signed-off-by: David Kiarie --- hw/acpi/aml-build.c | 2 +- hw/i386/acpi-build.c| 93 +++-- include/hw/acpi/acpi-defs.h | 13 +++ include/hw/acpi/aml-buil