From patchwork Mon Sep 12 10:08:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Kiarie X-Patchwork-Id: 668702 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sXkFx22NJz9sC4 for ; Mon, 12 Sep 2016 20:15:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=aPJxXrTB; dkim-atps=neutral Received: from localhost ([::1]:41452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjOGb-0006zU-PD for incoming@patchwork.ozlabs.org; Mon, 12 Sep 2016 06:15:09 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0gZUpbGgoounlqxhwkoPXPsJ0/HV4edkFRc8IUzzdRA=; b=aPJxXrTBIoJSTjnZ6MG+07zGMPVa/PuKznDTnqSZG8YPRgfEbhs/xqlM0I9HIiMUkI 8CbTZ9asI8IuZWSsHVedXV6XSVABmeBbmRGDya1QJtuD20xNaST9H6kVE67w2Q87GBJp rJ0aio9ywG9fkAUtQ5AxY0t9SVyIqr5XSR3xkgnIxB99XyIHtTgGfmUIhJZrFUU4UTS6 o0Ht8s73mlDuHPMj0ke0OaRH67Xjq6gVl0ZsqwE4SX+E8BNgXFc8cfJ8oJuqA70hoHSW fqxLmm3uc64KiqB3fXrbtJC6o5KVBq04+Z/0wTdCvEhaV7gwmGTC0oBzuZKqIzIAysws nZPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0gZUpbGgoounlqxhwkoPXPsJ0/HV4edkFRc8IUzzdRA=; b=N19Jtg++19hQp27bT9d0nV3FS+OWKOXzYOcwloO9aQwTZ3PBxjacWjd3o+1gmKb+C/ VFb6bz5d2mluJ5Zf6KZJIrpdl4rWhEjFfnOw/hkQ3ybnpXjzDYabX1bm6TGa3FUxWWTs Fs7O2k2P4rFk42WwwyeUofsbj7S/Z8XyiAXOn++manSLwyceC8v0XitQ/Xn7qMWFhYBi 94kT106U3ubQHNOivR/0UwDzEqnxmWvQVqjf+1WWMOP5Xd62ugjLF0M+2RT0eMjDlu7g TY44tbSqJT1xUsq1ho9hB5qD7KOjnyzVL5GqrqaY90pbtLgUjn3sYXXOXCwr805ksPqX 8waQ== X-Gm-Message-State: AE9vXwPfWs+tj02ARQfXpMWB9nnsfI3UZoia9UOE6VnKD3kx2jaFZ/Bxt1o85oQbJChhCw== X-Received: by 10.194.97.242 with SMTP id ed18mr6291967wjb.188.1473674930439; Mon, 12 Sep 2016 03:08:50 -0700 (PDT) Received: from debian.ameoba ([154.122.106.143]) by smtp.googlemail.com with ESMTPSA id gg10sm17153603wjd.4.2016.09.12.03.08.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Sep 2016 03:08:50 -0700 (PDT) From: David Kiarie To: qemu-devel@nongnu.org Date: Mon, 12 Sep 2016 13:08:08 +0300 Message-Id: <1473674889-2727-6-git-send-email-davidkiarie4@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1473674889-2727-1-git-send-email-davidkiarie4@gmail.com> References: <1473674889-2727-1-git-send-email-davidkiarie4@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.65 Subject: [Qemu-devel] [v4 5/6] hw/acpi: report IOAPIC on IVRS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ehabkost@redhat.com, rkrcmar@redhat.com, mst@redhat.com, peterx@redhat.com, alex.williamson@redhat.com, jan.kiszka@web.de, pbonzini@redhat.com, David Kiarie Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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);