5d360b
From d7b246e19d4e81f231b3aff6c3885c325be9a9d2 Mon Sep 17 00:00:00 2001
5d360b
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
5d360b
Date: Wed, 13 Dec 2017 13:38:41 +0100
5d360b
Subject: [PATCH 10/41] i386: expose fw_cfg QEMU0002 in SSDT
5d360b
MIME-Version: 1.0
5d360b
Content-Type: text/plain; charset=UTF-8
5d360b
Content-Transfer-Encoding: 8bit
5d360b
5d360b
RH-Author: Marc-André Lureau <marcandre.lureau@redhat.com>
5d360b
Message-id: <20171213133912.26176-11-marcandre.lureau@redhat.com>
5d360b
Patchwork-id: 78360
5d360b
O-Subject: [RHEL-7.5 qemu-kvm PATCH v3 10/41] i386: expose fw_cfg QEMU0002 in SSDT
5d360b
Bugzilla: 1411490
5d360b
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
5d360b
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
5d360b
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
5d360b
5d360b
RHEL only: This is needed so kernel module can find the device and
5d360b
load the driver. Upstream qemu uses different API to build ACPI
5d360b
tables.
5d360b
5d360b
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
5d360b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
5d360b
---
5d360b
 hw/i386/ssdt-misc.dsl | 10 ++++++++++
5d360b
 1 file changed, 10 insertions(+)
5d360b
5d360b
diff --git a/hw/i386/ssdt-misc.dsl b/hw/i386/ssdt-misc.dsl
5d360b
index a4484b8..d124c74 100644
5d360b
--- a/hw/i386/ssdt-misc.dsl
5d360b
+++ b/hw/i386/ssdt-misc.dsl
5d360b
@@ -74,6 +74,16 @@ DefinitionBlock ("ssdt-misc.aml", "SSDT", 0x01, "BXPC", "BXSSDTSUSP", 0x1)
5d360b
     External(\_SB.PCI0, DeviceObj)
5d360b
     External(\_SB.PCI0.ISA, DeviceObj)
5d360b
 
5d360b
+    Scope(\_SB.PCI0) {
5d360b
+        Device(FWCF) {
5d360b
+            Name(_HID, "QEMU0002")
5d360b
+            Name(_STA, 0x0B)
5d360b
+            Name(_CRS, ResourceTemplate () {
5d360b
+                IO(Decode16, 0x0510, 0x0510, 0x01, 0x0C, IO)
5d360b
+            })
5d360b
+        }
5d360b
+    }
5d360b
+
5d360b
     Scope(\_SB.PCI0.ISA) {
5d360b
         Device(PEVT) {
5d360b
             Name(_HID, "QEMU0001")
5d360b
-- 
5d360b
1.8.3.1
5d360b