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

4a2fec
From bc725b358214c32163d60898e26b24b3ba84a3ca Mon Sep 17 00:00:00 2001
4a2fec
From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com>
4a2fec
Date: Mon, 27 Nov 2017 22:51:11 +0100
4a2fec
Subject: [PATCH 13/21] build-sys: restrict vmcoreinfo to fw_cfg+dma capable
4a2fec
 targets
4a2fec
MIME-Version: 1.0
4a2fec
Content-Type: text/plain; charset=UTF-8
4a2fec
Content-Transfer-Encoding: 8bit
4a2fec
4a2fec
RH-Author: Marc-André Lureau <marcandre.lureau@redhat.com>
4a2fec
Message-id: <20171127225111.24518-10-marcandre.lureau@redhat.com>
4a2fec
Patchwork-id: 77926
4a2fec
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH 9/9] build-sys: restrict vmcoreinfo to fw_cfg+dma capable targets
4a2fec
Bugzilla: 1398633
4a2fec
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
4a2fec
RH-Acked-by: Andrew Jones <drjones@redhat.com>
4a2fec
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
4a2fec
vmcoreinfo is built for all targets. However, it requires fw_cfg with
4a2fec
DMA operations support (write operation). Restrict vmcoreinfo exposure
4a2fec
to architectures that are supporting FW_CFG_DMA, that is arm-virt and
4a2fec
x86 only atm.
4a2fec
4a2fec
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
4a2fec
Reviewed-by: Thomas Huth <thuth@redhat.com>
4a2fec
Reviewed-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
4a2fec
Tested-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
4a2fec
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
4a2fec
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
4a2fec
4a2fec
(cherry picked from commit f865da7c369fa00b2ccaf6bce158ad2701b2a27c)
4a2fec
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
4a2fec
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
---
4a2fec
 default-configs/arm-softmmu.mak    | 2 ++
4a2fec
 default-configs/i386-softmmu.mak   | 1 +
4a2fec
 default-configs/x86_64-softmmu.mak | 1 +
4a2fec
 hw/misc/Makefile.objs              | 2 +-
4a2fec
 4 files changed, 5 insertions(+), 1 deletion(-)
4a2fec
4a2fec
diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak
4a2fec
index 05aaf8f..bbdcc81 100644
4a2fec
--- a/default-configs/arm-softmmu.mak
4a2fec
+++ b/default-configs/arm-softmmu.mak
4a2fec
@@ -128,3 +128,5 @@ CONFIG_ACPI=y
4a2fec
 CONFIG_SMBIOS=y
4a2fec
 CONFIG_ASPEED_SOC=y
4a2fec
 CONFIG_GPIO_KEY=y
4a2fec
+
4a2fec
+CONFIG_FW_CFG_DMA=y
4a2fec
diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak
4a2fec
index d2ab2f6..f7c0b33 100644
4a2fec
--- a/default-configs/i386-softmmu.mak
4a2fec
+++ b/default-configs/i386-softmmu.mak
4a2fec
@@ -59,3 +59,4 @@ CONFIG_SMBIOS=y
4a2fec
 CONFIG_HYPERV_TESTDEV=$(CONFIG_KVM)
4a2fec
 CONFIG_PXB=y
4a2fec
 CONFIG_ACPI_VMGENID=y
4a2fec
+CONFIG_FW_CFG_DMA=y
4a2fec
diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak
4a2fec
index d6d10aa..611fa6f 100644
4a2fec
--- a/default-configs/x86_64-softmmu.mak
4a2fec
+++ b/default-configs/x86_64-softmmu.mak
4a2fec
@@ -61,3 +61,4 @@ CONFIG_SMBIOS=y
4a2fec
 #CONFIG_HYPERV_TESTDEV=$(CONFIG_KVM)
4a2fec
 CONFIG_PXB=y
4a2fec
 CONFIG_ACPI_VMGENID=y
4a2fec
+CONFIG_FW_CFG_DMA=y
4a2fec
diff --git a/hw/misc/Makefile.objs b/hw/misc/Makefile.objs
4a2fec
index b4cbebf..255a35a 100644
4a2fec
--- a/hw/misc/Makefile.objs
4a2fec
+++ b/hw/misc/Makefile.objs
4a2fec
@@ -9,7 +9,7 @@ common-obj-$(CONFIG_PCI_TESTDEV) += pci-testdev.o
4a2fec
 common-obj-$(CONFIG_EDU) += edu.o
4a2fec
 
4a2fec
 #common-obj-y += unimp.o
4a2fec
-common-obj-y += vmcoreinfo.o
4a2fec
+common-obj-$(CONFIG_FW_CFG_DMA) += vmcoreinfo.o
4a2fec
 
4a2fec
 obj-$(CONFIG_VMPORT) += vmport.o
4a2fec
 
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec