build-sys: restrict vmcoreinfo to fw_cfg+dma capable targets
PATCH 1/1 build-sys: restrict vmcoreinfo to fw_cfg+dma capable targets
vmcoreinfo is built for all targets. However, it requires fw_cfg with DMA operations support (write operation). Restrict vmcoreinfo exposure to architectures that are supporting FW_CFG_DMA, that is arm-virt and x86 only atm.
--- default-configs/arm-softmmu.mak | 2 ++ default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/misc/Makefile.objs | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-)
default-configs/arm-softmmu.mak +2 -0
@@ -130,3 +130,5 @@ CONFIG_SMBIOS=y CONFIG_ASPEED_SOC=y CONFIG_GPIO_KEY=y CONFIG_MSF2=y + +CONFIG_FW_CFG_DMA=y
default-configs/i386-softmmu.mak +1 -0
@@ -60,3 +60,4 @@ CONFIG_SMBIOS=y CONFIG_HYPERV_TESTDEV=$(CONFIG_KVM) CONFIG_PXB=y CONFIG_ACPI_VMGENID=y +CONFIG_FW_CFG_DMA=y
default-configs/x86_64-softmmu.mak +1 -0
@@ -60,3 +60,4 @@ CONFIG_SMBIOS=y CONFIG_HYPERV_TESTDEV=$(CONFIG_KVM) CONFIG_PXB=y CONFIG_ACPI_VMGENID=y +CONFIG_FW_CFG_DMA=y
hw/misc/Makefile.objs +1 -1
@@ -9,7 +9,7 @@ common-obj-$(CONFIG_PCI_TESTDEV) += pci-testdev.o common-obj-$(CONFIG_EDU) += edu.o common-obj-y += unimp.o -common-obj-y += vmcoreinfo.o +common-obj-$(CONFIG_FW_CFG_DMA) += vmcoreinfo.o obj-$(CONFIG_VMPORT) += vmport.o
Signature · 1 line
2.15.0.rc0.40.gaefcc5f6f
Quoted 18 lines · Marc-André Lureau
vmcoreinfo is built for all targets. However, it requires
fw_cfgwith DMA operations support (write operation). Restrict vmcoreinfo exposure to architectures that are supportingFW_CFG_DMA, that is arm-virt and x86 only atm.Signed-off-by Marc-André Lureau <[email protected]>--- default-configs/arm-softmmu.mak | 2 ++ default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/misc/Makefile.objs | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-)default-configs/arm-softmmu.mak +0
-0
default-configs/arm-softmmu.mak CONFIG_SMBIOS=y · line 134
Quoted 5 lines
default-configs/arm-softmmu.mak +2
-0@@ -130,3 +130,5 @@ CONFIG_SMBIOS=y CONFIG_ASPEED_SOC=y CONFIG_GPIO_KEY=y CONFIG_MSF2=y + +CONFIG_FW_CFG_DMA=y
Maybe remove the empty line?
Apart from that, patch looks good to me, so:
Hi
Quoted 14 lines · Thomas Huth
Quoted 13 lines · Marc-André Lureau
vmcoreinfo is built for all targets. However, it requires
fw_cfgwith DMA operations support (write operation). Restrict vmcoreinfo exposure to architectures that are supportingFW_CFG_DMA, that is arm-virt and x86 only atm.Signed-off-by Marc-André Lureau <[email protected]>--- default-configs/arm-softmmu.mak | 2 ++ default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/misc/Makefile.objs | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-)
Quoted 13 lines
default-configs/arm-softmmu.mak CONFIG_SMBIOS=y · line 134
Quoted 10 lines
default-configs/arm-softmmu.mak +2
-0@@ -130,3 +130,5 @@ CONFIG_SMBIOS=y CONFIG_ASPEED_SOC=y CONFIG_GPIO_KEY=y CONFIG_MSF2=y + +CONFIG_FW_CFG_DMA=yMaybe remove the empty line?
This file seems to be organized somehow, although it's hard to figure out how for me at first glance ;) commenting sections would help.
Quoted 4 lines
Apart from that, patch looks good to me, so:
Reviewed-by Thomas Huth <[email protected]>
thanks
Signature · 1 line
Marc-André Lureau
Quoted 7 lines · Marc-André Lureau
vmcoreinfo is built for all targets. However, it requires
fw_cfgwith DMA operations support (write operation). Restrict vmcoreinfo exposure to architectures that are supportingFW_CFG_DMA, that is arm-virt and x86 only atm.Signed-off-by Marc-André Lureau <[email protected]>---
Quoted 47 lines
default-configs/arm-softmmu.mak | 2 ++ default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/misc/Makefile.objs | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-)default-configs/arm-softmmu.mak +2
-0@@ -130,3 +130,5 @@ CONFIG_SMBIOS=y CONFIG_ASPEED_SOC=y CONFIG_GPIO_KEY=y CONFIG_MSF2=y + +CONFIG_FW_CFG_DMA=ydefault-configs/i386-softmmu.mak +1
-0@@ -60,3 +60,4 @@ CONFIG_SMBIOS=y CONFIG_HYPERV_TESTDEV=$(CONFIG_KVM) CONFIG_PXB=y CONFIG_ACPI_VMGENID=y +CONFIG_FW_CFG_DMA=ydefault-configs/x86_64-softmmu.mak +1
-0@@ -60,3 +60,4 @@ CONFIG_SMBIOS=y CONFIG_HYPERV_TESTDEV=$(CONFIG_KVM) CONFIG_PXB=y CONFIG_ACPI_VMGENID=y +CONFIG_FW_CFG_DMA=yhw/misc/Makefile.objs +1
-1@@ -9,7 +9,7 @@ common-obj-$(CONFIG_PCI_TESTDEV) += pci-testdev.o common-obj-$(CONFIG_EDU) += edu.o common-obj-y += unimp.o -common-obj-y += vmcoreinfo.o +common-obj-$(CONFIG_FW_CFG_DMA) += vmcoreinfo.o obj-$(CONFIG_VMPORT) += vmport.o
Michael,
Could you pick this patch for 2.11 ?
thanks
Quoted 68 lines · Daniel Henrique Barboza
Quoted 8 lines · Marc-André Lureau
vmcoreinfo is built for all targets. However, it requires
fw_cfgwith DMA operations support (write operation). Restrict vmcoreinfo exposure to architectures that are supportingFW_CFG_DMA, that is arm-virt and x86 only atm.Signed-off-by Marc-André Lureau <[email protected]>---
Reviewed-by Daniel Henrique Barboza <[email protected]>Quoted 48 lines
default-configs/arm-softmmu.mak | 2 ++ default-configs/i386-softmmu.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + hw/misc/Makefile.objs | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-)default-configs/arm-softmmu.mak +2
-0@@ -130,3 +130,5 @@ CONFIG_SMBIOS=y CONFIG_ASPEED_SOC=y CONFIG_GPIO_KEY=y CONFIG_MSF2=y + +CONFIG_FW_CFG_DMA=ydefault-configs/i386-softmmu.mak +1
-0@@ -60,3 +60,4 @@ CONFIG_SMBIOS=y CONFIG_HYPERV_TESTDEV=$(CONFIG_KVM) CONFIG_PXB=y CONFIG_ACPI_VMGENID=y +CONFIG_FW_CFG_DMA=ydefault-configs/x86_64-softmmu.mak +1
-0@@ -60,3 +60,4 @@ CONFIG_SMBIOS=y CONFIG_HYPERV_TESTDEV=$(CONFIG_KVM) CONFIG_PXB=y CONFIG_ACPI_VMGENID=y +CONFIG_FW_CFG_DMA=yhw/misc/Makefile.objs +1
-1@@ -9,7 +9,7 @@ common-obj-$(CONFIG_PCI_TESTDEV) += pci-testdev.o common-obj-$(CONFIG_EDU) += edu.o common-obj-y += unimp.o -common-obj-y += vmcoreinfo.o +common-obj-$(CONFIG_FW_CFG_DMA) += vmcoreinfo.o obj-$(CONFIG_VMPORT) += vmport.o
Signature · 1 line
Marc-André Lureau