Skip to contentSkip to conversation

Add config options for some not-always-sensible devices

PATCH Superseded David Gibson 3 participants 14 messages Feb 23, 2015 – Feb 26, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Add config options for some not-always-sensible devices

This series adds explicit config options to control inclusion of a number of devices. These are generally things that could theoretically appear on anything (or at least a wide range of targets), but are in practice only likely to appear on a much smaller set of targets.

In some cases the set of default targets where these are included is also trimmed, but either way it allows users or distributors to more easily tweak which devices are and aren't included in the build.

David Gibson (3):
Add specific config options for PCI-E bridges Create specific config option for "platform-bus" Give ivshmem its own config option

 default-configs/arm-softmmu.mak    | 5 +++++
 default-configs/i386-softmmu.mak   | 3 +++
 default-configs/pci.mak            | 1 +
 default-configs/ppc-softmmu.mak    | 1 +
 default-configs/ppc64-softmmu.mak  | 1 +
 default-configs/x86_64-softmmu.mak | 3 +++
 hw/core/Makefile.objs              | 2 +-
 hw/misc/Makefile.objs              | 4 +---
 hw/pci-bridge/Makefile.objs        | 5 +++--
 9 files changed, 19 insertions(+), 6 deletions(-)
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/3 Add specific config options for PCI-E bridges

The i82801b11, ioh3420 and xio3130 PCI Express devices are currently included in the build unconditionally.

While they could theoretically appear on any target platform with PCI-E, they're pretty unlikely to appear on platforms that aren't Intel derived.

Therefore, to avoid presenting unlikely-to-be-relevant devices to the user, add config options to enable these componenets, and enable they by default only on x86 and arm platforms.

(Note that this patch does include these for aarch64, via its inclusion of arm-softmmu.mak).

---
 default-configs/arm-softmmu.mak    | 4 ++++
 default-configs/i386-softmmu.mak   | 3 +++
 default-configs/x86_64-softmmu.mak | 3 +++
 hw/pci-bridge/Makefile.objs        | 5 +++--
 4 files changed, 13 insertions(+), 2 deletions(-)
default-configs/arm-softmmu.mak +4 -0
index b00c2e1..6ee9b43 100644
@@ -91,3 +91,7 @@ CONFIG_INTEGRATOR_DEBUG=y
 CONFIG_ALLWINNER_A10_PIT=y
 CONFIG_ALLWINNER_A10_PIC=y
 CONFIG_ALLWINNER_A10=y
+
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
default-configs/i386-softmmu.mak +3 -0
index bd99af9..0b8ce4b 100644
@@ -43,3 +43,6 @@ CONFIG_IOAPIC=y
 CONFIG_ICC_BUS=y
 CONFIG_PVPANIC=y
 CONFIG_MEM_HOTPLUG=y
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
default-configs/x86_64-softmmu.mak +3 -0
index e7c2734..6add04a 100644
@@ -43,3 +43,6 @@ CONFIG_IOAPIC=y
 CONFIG_ICC_BUS=y
 CONFIG_PVPANIC=y
 CONFIG_MEM_HOTPLUG=y
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
hw/pci-bridge/Makefile.objs +3 -2
index 968b369..96c596e 100644
@@ -1,5 +1,6 @@
 common-obj-y += pci_bridge_dev.o
-common-obj-y += ioh3420.o xio3130_upstream.o xio3130_downstream.o
-common-obj-y += i82801b11.o
+common-obj-$(CONFIG_XIO3130) += xio3130_upstream.o xio3130_downstream.o
+common-obj-$(CONFIG_IOH3420) += ioh3420.o
+common-obj-$(CONFIG_I82801B11) += i82801b11.o
 # NewWorld PowerMac
 common-obj-$(CONFIG_DEC_PCI) += dec.o
Signature · 1 line
2.1.0
Reviewed-by on v1 1/3
#2 lore raw

Re: [Qemu-devel] [PATCH 1/3] Add specific config options for PCI-E bridges

Quoted 8 lines · David Gibson

The i82801b11, ioh3420 and xio3130 PCI Express devices are currently included in the build unconditionally.

While they could theoretically appear on any target platform with PCI-E, they're pretty unlikely to appear on platforms that aren't Intel derived.

Therefore, to avoid presenting unlikely-to-be-relevant devices to the user, add config options to enable these componenets, and enable they by default

"components", "them"

Quoted 5 lines

only on x86 and arm platforms.

(Note that this patch does include these for aarch64, via its inclusion of arm-softmmu.mak).

"it's"

Quoted 1 line

Otherwise,

Quoted 58 lines
---
 default-configs/arm-softmmu.mak    | 4 ++++
 default-configs/i386-softmmu.mak   | 3 +++
 default-configs/x86_64-softmmu.mak | 3 +++
 hw/pci-bridge/Makefile.objs        | 5 +++--
 4 files changed, 13 insertions(+), 2 deletions(-)
default-configs/arm-softmmu.mak +4 -0
index b00c2e1..6ee9b43 100644
@@ -91,3 +91,7 @@ CONFIG_INTEGRATOR_DEBUG=y
 CONFIG_ALLWINNER_A10_PIT=y
 CONFIG_ALLWINNER_A10_PIC=y
 CONFIG_ALLWINNER_A10=y
+
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
default-configs/i386-softmmu.mak +3 -0
index bd99af9..0b8ce4b 100644
@@ -43,3 +43,6 @@ CONFIG_IOAPIC=y
 CONFIG_ICC_BUS=y
 CONFIG_PVPANIC=y
 CONFIG_MEM_HOTPLUG=y
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
default-configs/x86_64-softmmu.mak +3 -0
index e7c2734..6add04a 100644
@@ -43,3 +43,6 @@ CONFIG_IOAPIC=y
 CONFIG_ICC_BUS=y
 CONFIG_PVPANIC=y
 CONFIG_MEM_HOTPLUG=y
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
hw/pci-bridge/Makefile.objs +3 -3
index 968b369..96c596e 100644
@@ -1,5 +1,6 @@
 common-obj-y += pci_bridge_dev.o
-common-obj-y += ioh3420.o xio3130_upstream.o xio3130_downstream.o
-common-obj-y += i82801b11.o
+common-obj-$(CONFIG_XIO3130) += xio3130_upstream.o xio3130_downstream.o
+common-obj-$(CONFIG_IOH3420) += ioh3420.o
+common-obj-$(CONFIG_I82801B11) += i82801b11.o
 # NewWorld PowerMac
 common-obj-$(CONFIG_DEC_PCI) += dec.o
--

2.1.0

#3 lore raw

Re: [Qemu-devel] [PATCH 1/3] Add specific config options for PCI-E bridges

Quoted 5 lines · Peter Crosthwaite
Quoted 3 lines · David Gibson

The i82801b11, ioh3420 and xio3130 PCI Express devices are currently included in the build unconditionally.

Quoted 7 lines
Quoted 5 lines

While they could theoretically appear on any target platform with PCI-E, they're pretty unlikely to appear on platforms that aren't Intel derived.

Therefore, to avoid presenting unlikely-to-be-relevant devices to the user, add config options to enable these componenets, and enable they by default

"components", "them"

Oops, those are embarrassing.

Quoted 7 lines
Quoted 5 lines

only on x86 and arm platforms.

(Note that this patch does include these for aarch64, via its inclusion of arm-softmmu.mak).

"it's"

No, "its" is correct. It's a possessive, not a contraction.

Quoted 63 lines
Quoted 1 line

Otherwise,

Quoted 56 lines
---
 default-configs/arm-softmmu.mak    | 4 ++++
 default-configs/i386-softmmu.mak   | 3 +++
 default-configs/x86_64-softmmu.mak | 3 +++
 hw/pci-bridge/Makefile.objs        | 5 +++--
 4 files changed, 13 insertions(+), 2 deletions(-)
default-configs/arm-softmmu.mak +4 -0
index b00c2e1..6ee9b43 100644
@@ -91,3 +91,7 @@ CONFIG_INTEGRATOR_DEBUG=y
 CONFIG_ALLWINNER_A10_PIT=y
 CONFIG_ALLWINNER_A10_PIC=y
 CONFIG_ALLWINNER_A10=y
+
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
default-configs/i386-softmmu.mak +3 -0
index bd99af9..0b8ce4b 100644
@@ -43,3 +43,6 @@ CONFIG_IOAPIC=y
 CONFIG_ICC_BUS=y
 CONFIG_PVPANIC=y
 CONFIG_MEM_HOTPLUG=y
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
default-configs/x86_64-softmmu.mak +3 -0
index e7c2734..6add04a 100644
@@ -43,3 +43,6 @@ CONFIG_IOAPIC=y
 CONFIG_ICC_BUS=y
 CONFIG_PVPANIC=y
 CONFIG_MEM_HOTPLUG=y
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
hw/pci-bridge/Makefile.objs +3 -2
index 968b369..96c596e 100644
@@ -1,5 +1,6 @@
 common-obj-y += pci_bridge_dev.o
-common-obj-y += ioh3420.o xio3130_upstream.o xio3130_downstream.o
-common-obj-y += i82801b11.o
+common-obj-$(CONFIG_XIO3130) += xio3130_upstream.o xio3130_downstream.o
+common-obj-$(CONFIG_IOH3420) += ioh3420.o
+common-obj-$(CONFIG_I82801B11) += i82801b11.o
 # NewWorld PowerMac
 common-obj-$(CONFIG_DEC_PCI) += dec.o
Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#4 lore raw

Re: [Qemu-devel] [PATCH 1/3] Add specific config options for PCI-E bridges

Quoted 18 lines · David Gibson
Quoted 5 lines · Peter Crosthwaite
Quoted 3 lines · David Gibson

The i82801b11, ioh3420 and xio3130 PCI Express devices are currently included in the build unconditionally.

Quoted 7 lines
Quoted 5 lines

While they could theoretically appear on any target platform with PCI-E, they're pretty unlikely to appear on platforms that aren't Intel derived.

Therefore, to avoid presenting unlikely-to-be-relevant devices to the user, add config options to enable these componenets, and enable they by default

"components", "them"

Oops, those are embarrassing.

Quoted 2 lines
Quoted 2 lines

only on x86 and arm platforms.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

(Note that this patch does include these for aarch64, via its inclusion of arm-softmmu.mak).

"it's"

No, "its" is correct. It's a possessive, not a contraction.

OK, my bad.

Regards,
Peter

Quoted 69 lines
Quoted 54 lines
Quoted 1 line

Otherwise,

Quoted 48 lines
---
 default-configs/arm-softmmu.mak    | 4 ++++
 default-configs/i386-softmmu.mak   | 3 +++
 default-configs/x86_64-softmmu.mak | 3 +++
 hw/pci-bridge/Makefile.objs        | 5 +++--
 4 files changed, 13 insertions(+), 2 deletions(-)
default-configs/arm-softmmu.mak +4 -0
index b00c2e1..6ee9b43 100644
@@ -91,3 +91,7 @@ CONFIG_INTEGRATOR_DEBUG=y
 CONFIG_ALLWINNER_A10_PIT=y
 CONFIG_ALLWINNER_A10_PIC=y
 CONFIG_ALLWINNER_A10=y
+
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
default-configs/i386-softmmu.mak +3 -0
index bd99af9..0b8ce4b 100644
@@ -43,3 +43,6 @@ CONFIG_IOAPIC=y
 CONFIG_ICC_BUS=y
 CONFIG_PVPANIC=y
 CONFIG_MEM_HOTPLUG=y
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
default-configs/x86_64-softmmu.mak +3 -0
index e7c2734..6add04a 100644
@@ -43,3 +43,6 @@ CONFIG_IOAPIC=y
 CONFIG_ICC_BUS=y
 CONFIG_PVPANIC=y
 CONFIG_MEM_HOTPLUG=y
+CONFIG_XIO3130=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
hw/pci-bridge/Makefile.objs +0 -1
index 968b369..96c596e 100644
@@ -1,5 +1,6 @@
 common-obj-y += pci_bridge_dev.o
-common-obj-y += ioh3420.o xio3130_upstream.o xio3130_downstream.o
Quoted 9 lines

hw/pci-bridge/Makefile.objs line 6

Quoted 8 lines
hw/pci-bridge/Makefile.objs +3 -1
-common-obj-y += i82801b11.o
+common-obj-$(CONFIG_XIO3130) += xio3130_upstream.o xio3130_downstream.o
+common-obj-$(CONFIG_IOH3420) += ioh3420.o
+common-obj-$(CONFIG_I82801B11) += i82801b11.o
 # NewWorld PowerMac
 common-obj-$(CONFIG_DEC_PCI) += dec.o

--

David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!

http://www.ozlabs.org/~dgibson

#5 lore raw

Re: [Qemu-devel] [PATCH 1/3] Add specific config options for PCI-E bridges

In reply to Peter Crosthwaite
Quoted 13 lines · Peter Crosthwaite
Quoted 8 lines · David Gibson

The i82801b11, ioh3420 and xio3130 PCI Express devices are currently included in the build unconditionally.

While they could theoretically appear on any target platform with PCI-E, they're pretty unlikely to appear on platforms that aren't Intel derived.

Therefore, to avoid presenting unlikely-to-be-relevant devices to the user, add config options to enable these componenets, and enable they by default

"components", "them"

Quoted 7 lines
Quoted 5 lines

only on x86 and arm platforms.

(Note that this patch does include these for aarch64, via its inclusion of arm-softmmu.mak).

"it's"

"it's" is only correct when you can replace "it is" (or "it has"); this is a place where "its" is correct.

Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#6 lore raw

PATCH 2/3 Create specific config option for "platform-bus"

In reply to David Gibson

Currently the "platform-bus" device is included for all softmmu builds. This bridge is intended for use on any platforms that require dynamic creation of sysbus devices. However, at present it is used only for the PPC E500 target, with plans for the ARM "virt" target in the immediate future.

To avoid a not-very-useful entry appearing in "qemu -device ?" output on other targets, this patch makes a specific config option for platform-bus and enables it (for now) only on ppc configurations which include E500 and on ARM (which always includes the "virt" target).

---
 default-configs/arm-softmmu.mak   | 1 +
 default-configs/ppc-softmmu.mak   | 1 +
 default-configs/ppc64-softmmu.mak | 1 +
 hw/core/Makefile.objs             | 2 +-
 4 files changed, 4 insertions(+), 1 deletion(-)
default-configs/arm-softmmu.mak +1 -0
index 6ee9b43..cc2745f 100644
@@ -79,6 +79,7 @@ CONFIG_NSERIES=y
 CONFIG_REALVIEW=y
 CONFIG_ZAURUS=y
 CONFIG_ZYNQ=y
+CONFIG_PLATFORM_BUS=y
 
 CONFIG_VERSATILE_PCI=y
 CONFIG_VERSATILE_I2C=y
default-configs/ppc-softmmu.mak +1 -0
index aebfab9..4b60e69 100644
@@ -43,6 +43,7 @@ CONFIG_PREP=y
 CONFIG_MAC=y
 CONFIG_E500=y
 CONFIG_OPENPIC_KVM=$(and $(CONFIG_E500),$(CONFIG_KVM))
+CONFIG_PLATFORM_BUS=y
 CONFIG_ETSEC=y
 CONFIG_LIBDECNUMBER=y
 # For PReP
default-configs/ppc64-softmmu.mak +1 -0
index f195a87..de71e41 100644
@@ -44,6 +44,7 @@ CONFIG_PREP=y
 CONFIG_MAC=y
 CONFIG_E500=y
 CONFIG_OPENPIC_KVM=$(and $(CONFIG_E500),$(CONFIG_KVM))
+CONFIG_PLATFORM_BUS=y
 CONFIG_ETSEC=y
 CONFIG_LIBDECNUMBER=y
 # For pSeries
hw/core/Makefile.objs +1 -1
index 9dce1bc..abb3560 100644
@@ -14,4 +14,4 @@ common-obj-$(CONFIG_SOFTMMU) += machine.o
 common-obj-$(CONFIG_SOFTMMU) += null-machine.o
 common-obj-$(CONFIG_SOFTMMU) += loader.o
 common-obj-$(CONFIG_SOFTMMU) += qdev-properties-system.o
-common-obj-$(CONFIG_SOFTMMU) += platform-bus.o
+common-obj-$(CONFIG_PLATFORM_BUS) += platform-bus.o
Signature · 1 line
2.1.0
#7 lore raw

Re: [Qemu-devel] [PATCH 2/3] Create specific config option for "platform-bus"

Quoted 24 lines · David Gibson

Currently the "platform-bus" device is included for all softmmu builds. This bridge is intended for use on any platforms that require dynamic creation of sysbus devices. However, at present it is used only for the PPC E500 target, with plans for the ARM "virt" target in the immediate future.

To avoid a not-very-useful entry appearing in "qemu -device ?" output on other targets, this patch makes a specific config option for platform-bus and enables it (for now) only on ppc configurations which include E500 and on ARM (which always includes the "virt" target).

---
 default-configs/arm-softmmu.mak   | 1 +
 default-configs/ppc-softmmu.mak   | 1 +
 default-configs/ppc64-softmmu.mak | 1 +
 hw/core/Makefile.objs             | 2 +-
 4 files changed, 4 insertions(+), 1 deletion(-)
default-configs/arm-softmmu.mak +0 -0
index 6ee9b43..cc2745f 100644

default-configs/arm-softmmu.mak CONFIG_NSERIES=y · line 83

Quoted 5 lines
default-configs/arm-softmmu.mak +1 -0
@@ -79,6 +79,7 @@ CONFIG_NSERIES=y
 CONFIG_REALVIEW=y
 CONFIG_ZAURUS=y
 CONFIG_ZYNQ=y
+CONFIG_PLATFORM_BUS=y
 

This location might not fit best for this config. REALVIEW, and ZYNQ are ARM specific boards and this logical grouping of configs seems to be about ARM boards and their specific devs.

Should it just be in it's own category? Alternatively, the first block of configs seems to contain all the generic stuff (like SSI, SD, SERIAL and pci.mak) so I think it fits in that bucket most closely.

Regards,
Peter

Quoted 40 lines
default-configs/arm-softmmu.mak +0 -0
 CONFIG_VERSATILE_PCI=y
 CONFIG_VERSATILE_I2C=y
default-configs/ppc-softmmu.mak +1 -0
index aebfab9..4b60e69 100644
@@ -43,6 +43,7 @@ CONFIG_PREP=y
 CONFIG_MAC=y
 CONFIG_E500=y
 CONFIG_OPENPIC_KVM=$(and $(CONFIG_E500),$(CONFIG_KVM))
+CONFIG_PLATFORM_BUS=y
 CONFIG_ETSEC=y
 CONFIG_LIBDECNUMBER=y
 # For PReP
default-configs/ppc64-softmmu.mak +1 -0
index f195a87..de71e41 100644
@@ -44,6 +44,7 @@ CONFIG_PREP=y
 CONFIG_MAC=y
 CONFIG_E500=y
 CONFIG_OPENPIC_KVM=$(and $(CONFIG_E500),$(CONFIG_KVM))
+CONFIG_PLATFORM_BUS=y
 CONFIG_ETSEC=y
 CONFIG_LIBDECNUMBER=y
 # For pSeries
hw/core/Makefile.objs +1 -2
index 9dce1bc..abb3560 100644
@@ -14,4 +14,4 @@ common-obj-$(CONFIG_SOFTMMU) += machine.o
 common-obj-$(CONFIG_SOFTMMU) += null-machine.o
 common-obj-$(CONFIG_SOFTMMU) += loader.o
 common-obj-$(CONFIG_SOFTMMU) += qdev-properties-system.o
-common-obj-$(CONFIG_SOFTMMU) += platform-bus.o
+common-obj-$(CONFIG_PLATFORM_BUS) += platform-bus.o
--

2.1.0

#8 lore raw

Re: [Qemu-devel] [PATCH 2/3] Create specific config option for "platform-bus"

Quoted 36 lines · Peter Crosthwaite
Quoted 24 lines · David Gibson

Currently the "platform-bus" device is included for all softmmu builds. This bridge is intended for use on any platforms that require dynamic creation of sysbus devices. However, at present it is used only for the PPC E500 target, with plans for the ARM "virt" target in the immediate future.

To avoid a not-very-useful entry appearing in "qemu -device ?" output on other targets, this patch makes a specific config option for platform-bus and enables it (for now) only on ppc configurations which include E500 and on ARM (which always includes the "virt" target).

---
 default-configs/arm-softmmu.mak   | 1 +
 default-configs/ppc-softmmu.mak   | 1 +
 default-configs/ppc64-softmmu.mak | 1 +
 hw/core/Makefile.objs             | 2 +-
 4 files changed, 4 insertions(+), 1 deletion(-)
default-configs/arm-softmmu.mak +0 -0
index 6ee9b43..cc2745f 100644

default-configs/arm-softmmu.mak CONFIG_NSERIES=y · line 83

Quoted 5 lines
default-configs/arm-softmmu.mak +1 -0
@@ -79,6 +79,7 @@ CONFIG_NSERIES=y
 CONFIG_REALVIEW=y
 CONFIG_ZAURUS=y
 CONFIG_ZYNQ=y
+CONFIG_PLATFORM_BUS=y
 

This location might not fit best for this config. REALVIEW, and ZYNQ are ARM specific boards and this logical grouping of configs seems to be about ARM boards and their specific devs.

Quoted 3 lines

Should it just be in it's own category? Alternatively, the first block of configs seems to contain all the generic stuff (like SSI, SD, SERIAL and pci.mak) so I think it fits in that bucket most closely.

I really don't know ARM well enough to have any intuition on this. I'm happy to put it wherever I'm told is best.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
#9 lore raw

Re: [Qemu-devel] [PATCH 2/3] Create specific config option for "platform-bus"

Quoted 37 lines · David Gibson
Quoted 36 lines · Peter Crosthwaite
Quoted 24 lines · David Gibson

Currently the "platform-bus" device is included for all softmmu builds. This bridge is intended for use on any platforms that require dynamic creation of sysbus devices. However, at present it is used only for the PPC E500 target, with plans for the ARM "virt" target in the immediate future.

To avoid a not-very-useful entry appearing in "qemu -device ?" output on other targets, this patch makes a specific config option for platform-bus and enables it (for now) only on ppc configurations which include E500 and on ARM (which always includes the "virt" target).

---
 default-configs/arm-softmmu.mak   | 1 +
 default-configs/ppc-softmmu.mak   | 1 +
 default-configs/ppc64-softmmu.mak | 1 +
 hw/core/Makefile.objs             | 2 +-
 4 files changed, 4 insertions(+), 1 deletion(-)
default-configs/arm-softmmu.mak +0 -0
index 6ee9b43..cc2745f 100644

default-configs/arm-softmmu.mak CONFIG_NSERIES=y · line 83

Quoted 5 lines
default-configs/arm-softmmu.mak +1 -0
@@ -79,6 +79,7 @@ CONFIG_NSERIES=y
 CONFIG_REALVIEW=y
 CONFIG_ZAURUS=y
 CONFIG_ZYNQ=y
+CONFIG_PLATFORM_BUS=y
 

This location might not fit best for this config. REALVIEW, and ZYNQ are ARM specific boards and this logical grouping of configs seems to be about ARM boards and their specific devs.

Quoted 7 lines
Quoted 3 lines

Should it just be in it's own category? Alternatively, the first block of configs seems to contain all the generic stuff (like SSI, SD, SERIAL and pci.mak) so I think it fits in that bucket most closely.

I really don't know ARM well enough to have any intuition on this. I'm happy to put it wherever I'm told is best.

First grouping of configs IMO.

Regards,
Peter

Quoted 5 lines

--

David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!

http://www.ozlabs.org/~dgibson

#10 lore raw

PATCH 3/3 Give ivshmem its own config option

In reply to David Gibson

Currently the ivshmem device is built whenever both PCI and KVM support are included. This patch gives it its own config option to allow easier customization of whether to include it. It's enabled by default in the same circumstances as now - when both PCI and KVM are available.

---
 default-configs/pci.mak | 1 +
 hw/misc/Makefile.objs   | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)
default-configs/pci.mak +1 -0
index bea6b01..58a2c0a 100644
@@ -35,3 +35,4 @@ CONFIG_SDHCI=y
 CONFIG_EDU=y
 CONFIG_VGA=y
 CONFIG_VGA_PCI=y
+CONFIG_IVSHMEM=$(CONFIG_KVM)
hw/misc/Makefile.objs +1 -3
index 029a56f..6c6e296 100644
@@ -19,9 +19,7 @@ common-obj-$(CONFIG_PUV3) += puv3_pm.o
 
 common-obj-$(CONFIG_MACIO) += macio/
 
-ifeq ($(CONFIG_PCI), y)
-obj-$(CONFIG_KVM) += ivshmem.o
-endif
+obj-$(CONFIG_IVSHMEM) += ivshmem.o
 
 obj-$(CONFIG_REALVIEW) += arm_sysctl.o
 obj-$(CONFIG_NSERIES) += cbus.o
Signature · 1 line
2.1.0
#11 lore raw

Re: [Qemu-devel] [PATCH 3/3] Give ivshmem its own config option

Quoted 16 lines · David Gibson

Currently the ivshmem device is built whenever both PCI and KVM support are included. This patch gives it its own config option to allow easier customization of whether to include it. It's enabled by default in the same circumstances as now - when both PCI and KVM are available.

---
 default-configs/pci.mak | 1 +
 hw/misc/Makefile.objs   | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)
default-configs/pci.mak +0 -0
index bea6b01..58a2c0a 100644

default-configs/pci.mak CONFIG_SDHCI=y · line 38

Quoted 4 lines
default-configs/pci.mak +1 -0
@@ -35,3 +35,4 @@ CONFIG_SDHCI=y
 CONFIG_EDU=y
 CONFIG_VGA=y
 CONFIG_VGA_PCI=y
+CONFIG_IVSHMEM=$(CONFIG_KVM)

Does this create an order of definition requirement between the configs? I guess its ok as CONFIG_KVM is defined super-early but it seems to be avoided where one config def depends on another.

Regards,
Peter

Quoted 19 lines
hw/misc/Makefile.objs +1 -4
index 029a56f..6c6e296 100644
@@ -19,9 +19,7 @@ common-obj-$(CONFIG_PUV3) += puv3_pm.o
 
 common-obj-$(CONFIG_MACIO) += macio/
 
-ifeq ($(CONFIG_PCI), y)
-obj-$(CONFIG_KVM) += ivshmem.o
-endif
+obj-$(CONFIG_IVSHMEM) += ivshmem.o
 
 obj-$(CONFIG_REALVIEW) += arm_sysctl.o
 obj-$(CONFIG_NSERIES) += cbus.o
--

2.1.0

#12 lore raw

Re: [Qemu-devel] [PATCH 3/3] Give ivshmem its own config option

Quoted 13 lines · Peter Crosthwaite
Quoted 11 lines · David Gibson

Currently the ivshmem device is built whenever both PCI and KVM support are included. This patch gives it its own config option to allow easier customization of whether to include it. It's enabled by default in the same circumstances as now - when both PCI and KVM are available.

---
 default-configs/pci.mak | 1 +
 hw/misc/Makefile.objs   | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)
Quoted 13 lines

default-configs/pci.mak CONFIG_SDHCI=y · line 38

Quoted 9 lines
default-configs/pci.mak +1 -0
index bea6b01..58a2c0a 100644
@@ -35,3 +35,4 @@ CONFIG_SDHCI=y
 CONFIG_EDU=y
 CONFIG_VGA=y
 CONFIG_VGA_PCI=y
+CONFIG_IVSHMEM=$(CONFIG_KVM)

Does this create an order of definition requirement between the configs? I guess its ok as CONFIG_KVM is defined super-early but it seems to be avoided where one config def depends on another.

Actually, I don't think it does. When "=" is used, rather than ":=" make variables are expanded when used, not when defined.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
Reviewed-by
#13 lore raw

Re: [Qemu-devel] [PATCH 3/3] Give ivshmem its own config option

Quoted 28 lines · David Gibson
Quoted 13 lines · Peter Crosthwaite
Quoted 11 lines · David Gibson

Currently the ivshmem device is built whenever both PCI and KVM support are included. This patch gives it its own config option to allow easier customization of whether to include it. It's enabled by default in the same circumstances as now - when both PCI and KVM are available.

---
 default-configs/pci.mak | 1 +
 hw/misc/Makefile.objs   | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)
Quoted 13 lines

default-configs/pci.mak CONFIG_SDHCI=y · line 38

Quoted 9 lines
default-configs/pci.mak +1 -0
index bea6b01..58a2c0a 100644
@@ -35,3 +35,4 @@ CONFIG_SDHCI=y
 CONFIG_EDU=y
 CONFIG_VGA=y
 CONFIG_VGA_PCI=y
+CONFIG_IVSHMEM=$(CONFIG_KVM)

Does this create an order of definition requirement between the configs? I guess its ok as CONFIG_KVM is defined super-early but it seems to be avoided where one config def depends on another.

Quoted 3 lines

Actually, I don't think it does. When "=" is used, rather than ":=" make variables are expanded when used, not when defined.

Neat, it's all good.

Quoted 5 lines

--

David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!

http://www.ozlabs.org/~dgibson