Blame SOURCES/kvm-build-sys-restrict-vmcoreinfo-to-fw_cfg-dma-capable-.patch

5d360b
From bf8a461cbf2030ed4d18aa9b5dc9c23d7a1059df 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:46 +0100
5d360b
Subject: [PATCH 15/41] build-sys: restrict vmcoreinfo to fw_cfg+dma capable
5d360b
 targets
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-16-marcandre.lureau@redhat.com>
5d360b
Patchwork-id: 78365
5d360b
O-Subject: [RHEL-7.5 qemu-kvm PATCH v3 15/41] build-sys: restrict vmcoreinfo to fw_cfg+dma capable targets
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
vmcoreinfo is built for all targets. However, it requires fw_cfg with
5d360b
DMA operations support (write operation). Restrict vmcoreinfo exposure
5d360b
to x86 architectures that are supporting FW_CFG_DMA.
5d360b
5d360b
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
5d360b
Reviewed-by: Thomas Huth <thuth@redhat.com>
5d360b
Reviewed-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
5d360b
Tested-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
5d360b
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
5d360b
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
5d360b
5d360b
(cherry picked from commit f865da7c369fa00b2ccaf6bce158ad2701b2a27c)
5d360b
5d360b
RHEL: minor build-sys conflicts.
5d360b
5d360b
Removed unsupport architectures, update commit message.
5d360b
5d360b
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
5d360b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
5d360b
---
5d360b
 default-configs/i386-softmmu.mak   | 1 +
5d360b
 default-configs/x86_64-softmmu.mak | 1 +
5d360b
 hw/misc/Makefile.objs              | 2 +-
5d360b
 3 files changed, 3 insertions(+), 1 deletion(-)
5d360b
5d360b
diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak
5d360b
index fb84f80..aeeac4e 100644
5d360b
--- a/default-configs/i386-softmmu.mak
5d360b
+++ b/default-configs/i386-softmmu.mak
5d360b
@@ -45,3 +45,4 @@ CONFIG_APIC=y
5d360b
 CONFIG_IOAPIC=y
5d360b
 CONFIG_ICC_BUS=y
5d360b
 CONFIG_PVPANIC=y
5d360b
+CONFIG_FW_CFG_DMA=y
5d360b
diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak
5d360b
index a6fdf84..19667bf 100644
5d360b
--- a/default-configs/x86_64-softmmu.mak
5d360b
+++ b/default-configs/x86_64-softmmu.mak
5d360b
@@ -38,3 +38,4 @@ CONFIG_APIC=y
5d360b
 CONFIG_IOAPIC=y
5d360b
 CONFIG_ICC_BUS=y
5d360b
 CONFIG_PVPANIC=y
5d360b
+CONFIG_FW_CFG_DMA=y
5d360b
diff --git a/hw/misc/Makefile.objs b/hw/misc/Makefile.objs
5d360b
index 39b6593..f692fcd 100644
5d360b
--- a/hw/misc/Makefile.objs
5d360b
+++ b/hw/misc/Makefile.objs
5d360b
@@ -5,7 +5,7 @@ common-obj-$(CONFIG_ISA_DEBUG) += debugexit.o
5d360b
 common-obj-$(CONFIG_SGA) += sga.o
5d360b
 common-obj-$(CONFIG_ISA_TESTDEV) += pc-testdev.o
5d360b
 common-obj-$(CONFIG_PCI_TESTDEV) += pci-testdev.o
5d360b
-common-obj-y += vmcoreinfo.o
5d360b
+common-obj-$(CONFIG_FW_CFG_DMA) += vmcoreinfo.o
5d360b
 
5d360b
 obj-$(CONFIG_VMPORT) += vmport.o
5d360b
 
5d360b
-- 
5d360b
1.8.3.1
5d360b