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