From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjOBY-0002Tg-Cx for qemu-devel@nongnu.org; Mon, 12 Sep 2016 06:09:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjOBT-0004aq-3h for qemu-devel@nongnu.org; Mon, 12 Sep 2016 06:09:55 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjOBS-0004ag-U3 for qemu-devel@nongnu.org; Mon, 12 Sep 2016 06:09:51 -0400 Received: by mail-wm0-f65.google.com with SMTP id g141so1851189wmd.1 for ; Mon, 12 Sep 2016 03:09:50 -0700 (PDT) From: David Kiarie Date: Mon, 12 Sep 2016 13:08:08 +0300 Message-Id: <1473674889-2727-6-git-send-email-davidkiarie4@gmail.com> In-Reply-To: <1473674889-2727-1-git-send-email-davidkiarie4@gmail.com> References: <1473674889-2727-1-git-send-email-davidkiarie4@gmail.com> Subject: [Qemu-devel] [v4 5/6] hw/acpi: report IOAPIC on IVRS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jan.kiszka@web.de, mst@redhat.com, rkrcmar@redhat.com, peterx@redhat.com, ehabkost@redhat.com, pbonzini@redhat.com, alex.williamson@redhat.com, David Kiarie Report IOAPIC via IVRS which effectively allows linux AMD-Vi driver to enable interrupt remapping Signed-off-by: David Kiarie --- hw/i386/acpi-build.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index c20bc71..c9bee8f 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -2615,6 +2615,8 @@ build_amd_iommu(GArray *table_data, BIOSLinker *linker) * Refer to Spec - Table 95:IVHD Device Entry Type Codes(4-byte) */ build_append_int_noprefix(table_data, 0x0000001, 4); + /* IOAPIC represented as an 8-byte entry. Spec v2.62 Tables 97 */ + build_append_int_noprefix(table_data, 0x0100a000cf000048, 8); build_header(linker, table_data, (void *)(table_data->data + iommu_start), "IVRS", table_data->len - iommu_start, 1, NULL, NULL); -- 2.1.4