Make i82801b11 and ioh3420 x86 only by default
PATCH 1/1 Make i82801b11 and ioh3420 x86 only by default
As PCI devices, the i82801b11 and ioh3420 devices could theoretically exist on any platform with a PCI bus. However in practice, they're Intel specific devices, that are very unlikely to appear on anything other than an x86. Therefore this patch gives them their own config options, enabled only for x86 targets by default.
--- default-configs/i386-softmmu.mak | 2 ++ hw/pci-bridge/Makefile.objs | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-)
default-configs/i386-softmmu.mak +2 -0
@@ -43,3 +43,5 @@ CONFIG_IOAPIC=y CONFIG_ICC_BUS=y CONFIG_PVPANIC=y CONFIG_MEM_HOTPLUG=y +CONFIG_IOH3420=y +CONFIG_I82801B11=y
hw/pci-bridge/Makefile.objs +3 -2
@@ -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-y += 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
Quoted 7 lines · David Gibson
As PCI devices, the i82801b11 and ioh3420 devices could theoretically exist on any platform with a PCI bus. However in practice, they're Intel specific devices, that are very unlikely to appear on anything other than an x86. Therefore this patch gives them their own config options, enabled only for x86 targets by default.
Signed-off-by David Gibson <[email protected]>
Guh. I'm an idiot - left out the x86_64-softmmu.mak file. I'll resend if people think the concept is ok.
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
Quoted 3 lines · David Gibson
As PCI devices, the i82801b11 and ioh3420 devices could theoretically exist on any platform with a PCI bus. However in practice, they're Intel specific devices,
They can be used as a generic PCIe root port and PCIe-to-PCI bridge, they're not Intel-specific as long as your firmware doesn't care about the vendor and device id.
Quoted 3 lines
that are very unlikely to appear on anything other than
an x86. Therefore this patch gives them their own config options, enabled only for x86 targets by default.
I think it's quite likely that we'll use them, or at least ioh3420, on any PCIe machine. So you probably want to add ioh3420 to arm-softmmu and aarch64-softmmu as well. I don't know about i82801b11, but it doesn't hurt to have it in ARM/AArch64 either.
Also, the same can be done for xio3130, so you can also limit that one to x86 and ARM/Aarch64.
Paolo
Quoted 10 lines · Paolo Bonzini
Quoted 3 lines · David Gibson
As PCI devices, the i82801b11 and ioh3420 devices could theoretically exist on any platform with a PCI bus. However in practice, they're Intel specific devices,
They can be used as a generic PCIe root port and PCIe-to-PCI bridge, they're not Intel-specific as long as your firmware doesn't care about the vendor and device id.
Hm, ok.
Quoted 11 lines
Quoted 3 lines
that are very unlikely to appear on anything other than
an x86. Therefore this patch gives them their own config options, enabled only for x86 targets by default.I think it's quite likely that we'll use them, or at least ioh3420, on any PCIe machine. So you probably want to add ioh3420 to arm-softmmu and aarch64-softmmu as well. I don't know about i82801b11, but it doesn't hurt to have it in ARM/AArch64 either.
Also, the same can be done for xio3130, so you can also limit that one to x86 and ARM/Aarch64.
Ok, I'll revise accordingly.
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
Quoted 9 lines · Paolo Bonzini
Quoted 3 lines · David Gibson
that are very unlikely to appear on anything other than
an x86. Therefore this patch gives them their own config options, enabled only for x86 targets by default.I think it's quite likely that we'll use them, or at least ioh3420, on any PCIe machine. So you probably want to add ioh3420 to arm-softmmu and aarch64-softmmu as well. I don't know about i82801b11, but it doesn't hurt to have it in ARM/AArch64 either.
What's the motivation for narrowing these down to particular configs anyway?
-- PMM
Quoted 6 lines · Peter Maydell
Quoted 5 lines · Paolo Bonzini
Quoted 3 lines · David Gibson
that are very unlikely to appear on anything other than
an x86. Therefore this patch gives them their own config options, enabled only for x86 targets by default.
Quoted 7 lines
Quoted 4 lines
I think it's quite likely that we'll use them, or at least ioh3420, on any PCIe machine. So you probably want to add ioh3420 to arm-softmmu and aarch64-softmmu as well. I don't know about i82801b11, but it doesn't hurt to have it in ARM/AArch64 either.
What's the motivation for narrowing these down to particular configs anyway?
Simply to avoid probably-irrelevant devices showing up in qemu -device ?
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
Quoted 13 lines · David Gibson
Quoted 11 lines · Peter Maydell
Quoted 9 lines · Paolo Bonzini
Quoted 3 lines · David Gibson
that are very unlikely to appear on anything other than
an x86. Therefore this patch gives them their own config options, enabled only for x86 targets by default.I think it's quite likely that we'll use them, or at least ioh3420, on any PCIe machine. So you probably want to add ioh3420 to arm-softmmu and aarch64-softmmu as well. I don't know about i82801b11, but it doesn't hurt to have it in ARM/AArch64 either.
Quoted 5 lines
Quoted 2 lines
What's the motivation for narrowing these down to particular configs anyway?
Simply to avoid probably-irrelevant devices showing up in qemu -device ?
And make the binary smaller.
Signature · 1 line
MST
Quoted 7 lines · Peter Maydell
Quoted 4 lines
I think it's quite likely that we'll use them, or at least ioh3420, on any PCIe machine. So you probably want to add ioh3420 to arm-softmmu and aarch64-softmmu as well. I don't know about i82801b11, but it doesn't hurt to have it in ARM/AArch64 either.
What's the motivation for narrowing these down to particular configs anyway?
They do not make sense if you do not have a PCIe bus.
Paolo