From: Igor Mammedov <imammedo@redhat.com>
To: Eric Auger <eric.auger@redhat.com>
Cc: peter.maydell@linaro.org, drjones@redhat.com, tn@semihalf.com,
qemu-devel@nongnu.org, qemu-arm@nongnu.org,
shannon.zhao@linaro.org, prem.mallappa@broadcom.com,
christoffer.dall@linaro.org, eric.auger.pro@gmail.com
Subject: Re: [Qemu-arm] [Qemu-devel] [PATCH v2 2/2] ARM: Virt: ACPI: Build an IORT table with RC and ITS nodes
Date: Fri, 14 Oct 2016 14:41:29 +0200 [thread overview]
Message-ID: <20161014144129.7826bfc8@nial.brq.redhat.com> (raw)
In-Reply-To: <1476435295-21885-3-git-send-email-eric.auger@redhat.com>
On Fri, 14 Oct 2016 10:54:55 +0200
Eric Auger <eric.auger@redhat.com> wrote:
> From: Prem Mallappa <prem.mallappa@broadcom.com>
>
> This patch builds an IORT table that features a root complex node and
> an ITS node. This complements the ITS description in the ACPI MADT
> table and allows vhost-net on ACPI guest.
>
> Signed-off-by: Prem Mallappa <prem.mallappa@broadcom.com>
> Signed-off-by: Eric Auger <eric.auger@redhat.com>
>
> ---
>
> v1 -> v2:
> - its_class_name() || !guest_info->no_its now wraps acpi_add_table
> and build_iort
> - add cpu_to_le*
> - CCA = CPM = DACS = 1
> - cleanup according to Drew's comments
> - remove comments listing tables and spec revisions
> ---
> hw/arm/virt-acpi-build.c | 73 ++++++++++++++++++++++++++++++++++++++++--------
> 1 file changed, 62 insertions(+), 11 deletions(-)
>
> diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c
> index fa0655a..5fc0fd7 100644
> --- a/hw/arm/virt-acpi-build.c
> +++ b/hw/arm/virt-acpi-build.c
[...]
> +static void
> build_spcr(GArray *table_data, BIOSLinker *linker, VirtGuestInfo *guest_info)
> {
> AcpiSerialPortConsoleRedirection *spcr;
> @@ -667,17 +724,6 @@ void virt_acpi_build(VirtGuestInfo *guest_info, AcpiBuildTables *tables)
> ACPI_BUILD_TABLE_FILE, tables_blob,
> 64, false /* high memory */);
>
> - /*
> - * The ACPI v5.1 tables for Hardware-reduced ACPI platform are:
> - * RSDP
> - * RSDT
> - * FADT
> - * GTDT
> - * MADT
> - * MCFG
> - * DSDT
> - */
deleting unrelated hunk?
> -
> /* DSDT is pointed to by FADT */
> dsdt = tables_blob->len;
> build_dsdt(tables_blob, tables->linker, guest_info);
> @@ -703,6 +749,11 @@ void virt_acpi_build(VirtGuestInfo *guest_info, AcpiBuildTables *tables)
> build_srat(tables_blob, tables->linker, guest_info);
> }
>
> + if (its_class_name() && !guest_info->no_its) {
> + acpi_add_table(table_offsets, tables_blob);
> + build_iort(tables_blob, tables->linker, guest_info);
> + }
> +
> /* RSDT is pointed to by RSDP */
> rsdt = tables_blob->len;
> build_rsdt(tables_blob, tables->linker, table_offsets, NULL, NULL);
next prev parent reply other threads:[~2016-10-14 12:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 8:54 [Qemu-arm] [PATCH v2 0/2] ACPI IORT generation for ITS support Eric Auger
2016-10-14 8:54 ` [Qemu-arm] [PATCH v2 1/2] ACPI: Add IORT Structure definition Eric Auger
2016-10-14 11:30 ` Andrew Jones
2016-10-14 11:59 ` Auger Eric
2016-10-14 12:42 ` [Qemu-arm] [Qemu-devel] " Igor Mammedov
2016-10-14 13:32 ` Andrew Jones
2016-10-14 14:03 ` [Qemu-arm] " Auger Eric
2016-10-14 8:54 ` [Qemu-arm] [PATCH v2 2/2] ARM: Virt: ACPI: Build an IORT table with RC and ITS nodes Eric Auger
2016-10-14 11:57 ` [Qemu-arm] [Qemu-devel] " Andrew Jones
2016-10-14 12:03 ` Auger Eric
2016-10-14 12:41 ` Igor Mammedov [this message]
2016-10-14 13:51 ` Auger Eric
2016-10-14 9:02 ` [Qemu-arm] [Qemu-devel] [PATCH v2 0/2] ACPI IORT generation for ITS support no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161014144129.7826bfc8@nial.brq.redhat.com \
--to=imammedo@redhat.com \
--cc=christoffer.dall@linaro.org \
--cc=drjones@redhat.com \
--cc=eric.auger.pro@gmail.com \
--cc=eric.auger@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=prem.mallappa@broadcom.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=shannon.zhao@linaro.org \
--cc=tn@semihalf.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.