* [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default
@ 2015-02-18 4:59 David Gibson
2015-02-18 6:03 ` David Gibson
2015-02-18 7:57 ` Paolo Bonzini
0 siblings, 2 replies; 8+ messages in thread
From: David Gibson @ 2015-02-18 4:59 UTC (permalink / raw)
To: mst, yamahata; +Cc: pbonzini, qemu-devel, 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 <david@gibson.dropbear.id.au>
---
default-configs/i386-softmmu.mak | 2 ++
hw/pci-bridge/Makefile.objs | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak
index bd99af9..609c73a 100644
--- a/default-configs/i386-softmmu.mak
+++ b/default-configs/i386-softmmu.mak
@@ -43,3 +43,5 @@ CONFIG_IOAPIC=y
CONFIG_ICC_BUS=y
CONFIG_PVPANIC=y
CONFIG_MEM_HOTPLUG=y
+CONFIG_IOH3420=y
+CONFIG_I82801B11=y
diff --git a/hw/pci-bridge/Makefile.objs b/hw/pci-bridge/Makefile.objs
index 968b369..2715721 100644
--- a/hw/pci-bridge/Makefile.objs
+++ b/hw/pci-bridge/Makefile.objs
@@ -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
--
2.1.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default
2015-02-18 4:59 [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default David Gibson
@ 2015-02-18 6:03 ` David Gibson
2015-02-18 7:57 ` Paolo Bonzini
1 sibling, 0 replies; 8+ messages in thread
From: David Gibson @ 2015-02-18 6:03 UTC (permalink / raw)
To: mst, yamahata; +Cc: pbonzini, qemu-devel
[-- Attachment #1: Type: text/plain, Size: 776 bytes --]
On Wed, Feb 18, 2015 at 03:59:56PM +1100, David Gibson wrote:
> 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 <david@gibson.dropbear.id.au>
Guh. I'm an idiot - left out the x86_64-softmmu.mak file. I'll
resend if people think the concept is ok.
--
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
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default
2015-02-18 4:59 [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default David Gibson
2015-02-18 6:03 ` David Gibson
@ 2015-02-18 7:57 ` Paolo Bonzini
2015-02-19 2:05 ` David Gibson
2015-02-19 3:45 ` Peter Maydell
1 sibling, 2 replies; 8+ messages in thread
From: Paolo Bonzini @ 2015-02-18 7:57 UTC (permalink / raw)
To: David Gibson, mst, yamahata; +Cc: qemu-devel
On 18/02/2015 05:59, David Gibson wrote:
> 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.
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default
2015-02-18 7:57 ` Paolo Bonzini
@ 2015-02-19 2:05 ` David Gibson
2015-02-19 3:45 ` Peter Maydell
1 sibling, 0 replies; 8+ messages in thread
From: David Gibson @ 2015-02-19 2:05 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: yamahata, qemu-devel, mst
[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]
On Wed, Feb 18, 2015 at 08:57:39AM +0100, Paolo Bonzini wrote:
>
>
> On 18/02/2015 05:59, David Gibson wrote:
> > 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.
> > 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.
--
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
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default
2015-02-18 7:57 ` Paolo Bonzini
2015-02-19 2:05 ` David Gibson
@ 2015-02-19 3:45 ` Peter Maydell
2015-02-19 5:20 ` David Gibson
2015-02-19 9:57 ` Paolo Bonzini
1 sibling, 2 replies; 8+ messages in thread
From: Peter Maydell @ 2015-02-19 3:45 UTC (permalink / raw)
To: Paolo Bonzini
Cc: Isaku Yamahata, Michael S. Tsirkin, QEMU Developers, David Gibson
On 18 February 2015 at 16:57, Paolo Bonzini <pbonzini@redhat.com> wrote:
> On 18/02/2015 05:59, David Gibson wrote:
>> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default
2015-02-19 3:45 ` Peter Maydell
@ 2015-02-19 5:20 ` David Gibson
2015-02-19 10:30 ` Michael S. Tsirkin
2015-02-19 9:57 ` Paolo Bonzini
1 sibling, 1 reply; 8+ messages in thread
From: David Gibson @ 2015-02-19 5:20 UTC (permalink / raw)
To: Peter Maydell
Cc: Paolo Bonzini, Isaku Yamahata, QEMU Developers,
Michael S. Tsirkin
[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]
On Thu, Feb 19, 2015 at 12:45:23PM +0900, Peter Maydell wrote:
> On 18 February 2015 at 16:57, Paolo Bonzini <pbonzini@redhat.com> wrote:
> > On 18/02/2015 05:59, David Gibson wrote:
> >> 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?
Simply to avoid probably-irrelevant devices showing up in qemu -device
?
--
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
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default
2015-02-19 5:20 ` David Gibson
@ 2015-02-19 10:30 ` Michael S. Tsirkin
0 siblings, 0 replies; 8+ messages in thread
From: Michael S. Tsirkin @ 2015-02-19 10:30 UTC (permalink / raw)
To: David Gibson
Cc: Peter Maydell, Isaku Yamahata, QEMU Developers, Paolo Bonzini
On Thu, Feb 19, 2015 at 04:20:36PM +1100, David Gibson wrote:
>
> On Thu, Feb 19, 2015 at 12:45:23PM +0900, Peter Maydell wrote:
> > On 18 February 2015 at 16:57, Paolo Bonzini <pbonzini@redhat.com> wrote:
> > > On 18/02/2015 05:59, David Gibson wrote:
> > >> 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?
>
> Simply to avoid probably-irrelevant devices showing up in qemu -device
> ?
And make the binary smaller.
--
MST
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default
2015-02-19 3:45 ` Peter Maydell
2015-02-19 5:20 ` David Gibson
@ 2015-02-19 9:57 ` Paolo Bonzini
1 sibling, 0 replies; 8+ messages in thread
From: Paolo Bonzini @ 2015-02-19 9:57 UTC (permalink / raw)
To: Peter Maydell
Cc: Isaku Yamahata, David Gibson, QEMU Developers, Michael S. Tsirkin
On 19/02/2015 04:45, Peter Maydell wrote:
> > 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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-02-19 10:30 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-18 4:59 [Qemu-devel] [PATCH] Make i82801b11 and ioh3420 x86 only by default David Gibson
2015-02-18 6:03 ` David Gibson
2015-02-18 7:57 ` Paolo Bonzini
2015-02-19 2:05 ` David Gibson
2015-02-19 3:45 ` Peter Maydell
2015-02-19 5:20 ` David Gibson
2015-02-19 10:30 ` Michael S. Tsirkin
2015-02-19 9:57 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).