* [Qemu-devel] [PATCH 0/2] Clean up the ppc default configs
@ 2018-01-15 9:30 Thomas Huth
2018-01-15 9:30 ` [Qemu-devel] [PATCH 1/2] default-configs/ppc64-softmmu: Include 32-bit configs instead of copying them Thomas Huth
` (4 more replies)
0 siblings, 5 replies; 13+ messages in thread
From: Thomas Huth @ 2018-01-15 9:30 UTC (permalink / raw)
To: David Gibson, qemu-ppc, qemu-devel
ppc64-softmmu is a superset of ppc-softmmu which in turn is a superset
of ppcemb-softmmu. But since the config files are currently independent
from each other, we missed to define some CONFIG switches in the super-
sets: CONFIG_SUNGEM is missing from the ppc64-softmmu config, and the
CONFIG_IDE_SII3112 switch is only defined in ppcemb-softmmu.
Let's fix this by including the subsets instead of duplicating all the
switches all over the place.
(off-topic question: Do we still need a separate ppcemb-softmmu nowadays?
It seemed to be useful 10 years ago when everybody was doing KVM on
embedded PPC, but these days seem to be pretty much over now, so IMHO
just using ppc-softmmu for embedded should be enough nowadays? We could
save quite some compilation- and "make check"-time if we could finally get
rid of ppcemb-softmmu again...)
Thomas Huth (2):
default-configs/ppc64-softmmu: Include 32-bit configs instead of
copying them
default-configs/ppc-softmmu: Restructure the switches according to the
machines
default-configs/ppc-softmmu.mak | 59 +++++++++++++++----------------------
default-configs/ppc64-softmmu.mak | 61 +++++----------------------------------
2 files changed, 32 insertions(+), 88 deletions(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Qemu-devel] [PATCH 1/2] default-configs/ppc64-softmmu: Include 32-bit configs instead of copying them
2018-01-15 9:30 [Qemu-devel] [PATCH 0/2] Clean up the ppc default configs Thomas Huth
@ 2018-01-15 9:30 ` Thomas Huth
2018-01-15 9:30 ` [Qemu-devel] [PATCH 2/2] default-configs/ppc-softmmu: Restructure the switches according to the machines Thomas Huth
` (3 subsequent siblings)
4 siblings, 0 replies; 13+ messages in thread
From: Thomas Huth @ 2018-01-15 9:30 UTC (permalink / raw)
To: David Gibson, qemu-ppc, qemu-devel
qemu-softmmu-ppc64 is supposed to be a superset of qemu-softmmu-ppc.
However, instead of simply including the 32-bit config file, we've
duplicated all CONFIG_xxx settings there instead. This way, we've missed
some CONFIG switches in ppc64-softmmu.mak which were only added to the
32-bit config file (e.g. CONFIG_SUNGEM). Let's fix this problem by
including the 32-bit config file into the 64-bit config file instead
of duplicating all the CONFIG switches there.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
default-configs/ppc64-softmmu.mak | 61 +++++----------------------------------
1 file changed, 8 insertions(+), 53 deletions(-)
diff --git a/default-configs/ppc64-softmmu.mak b/default-configs/ppc64-softmmu.mak
index d1b3a6d..b94af6c 100644
--- a/default-configs/ppc64-softmmu.mak
+++ b/default-configs/ppc64-softmmu.mak
@@ -1,64 +1,19 @@
# Default configuration for ppc64-softmmu
-include pci.mak
-include sound.mak
-include usb.mak
-CONFIG_PPC4XX=y
-CONFIG_VIRTIO_VGA=y
-CONFIG_ESCC=y
-CONFIG_M48T59=y
+# Include all 32-bit boards
+include ppc-softmmu.mak
+
+# For PowerNV
+CONFIG_POWERNV=y
CONFIG_IPMI=y
CONFIG_IPMI_LOCAL=y
CONFIG_IPMI_EXTERN=y
CONFIG_ISA_IPMI_BT=y
-CONFIG_SERIAL=y
-CONFIG_PARALLEL=y
-CONFIG_I8254=y
-CONFIG_PCKBD=y
-CONFIG_FDC=y
-CONFIG_I8257=y
-CONFIG_I82374=y
-CONFIG_OPENPIC=y
-CONFIG_PREP_PCI=y
-CONFIG_I82378=y
-CONFIG_PC87312=y
-CONFIG_MACIO=y
-CONFIG_PCSPK=y
-CONFIG_CUDA=y
-CONFIG_ADB=y
-CONFIG_MAC_NVRAM=y
-CONFIG_MAC_DBDMA=y
-CONFIG_HEATHROW_PIC=y
-CONFIG_GRACKLE_PCI=y
-CONFIG_UNIN_PCI=y
-CONFIG_DEC_PCI=y
-CONFIG_PPCE500_PCI=y
-CONFIG_IDE_ISA=y
-CONFIG_IDE_CMD646=y
-CONFIG_IDE_MACIO=y
-CONFIG_NE2000_ISA=y
-CONFIG_PFLASH_CFI01=y
-CONFIG_PFLASH_CFI02=y
-CONFIG_PTIMER=y
-CONFIG_I8259=y
-CONFIG_XILINX=y
-CONFIG_XILINX_ETHLITE=y
-CONFIG_PSERIES=y
-CONFIG_POWERNV=y
-CONFIG_PREP=y
-CONFIG_MAC=y
-CONFIG_E500=y
-CONFIG_OPENPIC_KVM=$(call land,$(CONFIG_E500),$(CONFIG_KVM))
-CONFIG_PLATFORM_BUS=y
-CONFIG_ETSEC=y
-CONFIG_SM501=y
+
# For pSeries
+CONFIG_PSERIES=y
+CONFIG_VIRTIO_VGA=y
CONFIG_XICS=$(CONFIG_PSERIES)
CONFIG_XICS_SPAPR=$(CONFIG_PSERIES)
CONFIG_XICS_KVM=$(call land,$(CONFIG_PSERIES),$(CONFIG_KVM))
-# For PReP
-CONFIG_SERIAL_ISA=y
-CONFIG_MC146818RTC=y
-CONFIG_ISA_TESTDEV=y
CONFIG_MEM_HOTPLUG=y
-CONFIG_RS6000_MC=y
--
1.8.3.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Qemu-devel] [PATCH 2/2] default-configs/ppc-softmmu: Restructure the switches according to the machines
2018-01-15 9:30 [Qemu-devel] [PATCH 0/2] Clean up the ppc default configs Thomas Huth
2018-01-15 9:30 ` [Qemu-devel] [PATCH 1/2] default-configs/ppc64-softmmu: Include 32-bit configs instead of copying them Thomas Huth
@ 2018-01-15 9:30 ` Thomas Huth
2018-01-15 11:05 ` [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs Greg Kurz
` (2 subsequent siblings)
4 siblings, 0 replies; 13+ messages in thread
From: Thomas Huth @ 2018-01-15 9:30 UTC (permalink / raw)
To: David Gibson, qemu-ppc, qemu-devel
Order the CONFIG switches in ppc-softmmu.mak according to the machine
classes where they are used (embedded, Mac or PReP), so that it is
easier for the users to disable a set of switches completely if they
are not needed.
For the embedded part, we now also include ppcemb-softmmu.mak instead
of duplicating all the CONFIG switches again, to make sure that the
ppc-softmmu build always contains all switches from ppcemb-softmmu (e.g.
the switch CONFIG_IDE_SII3112 from ppcemb was missing in ppc-softmmu).
While we're at it, also remove the CONFIG_IDE_CMD646 since this controller
does not seem to be used by any ppc machine in QEMU.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
default-configs/ppc-softmmu.mak | 59 +++++++++++++++++------------------------
1 file changed, 24 insertions(+), 35 deletions(-)
diff --git a/default-configs/ppc-softmmu.mak b/default-configs/ppc-softmmu.mak
index bb225c6..460e6f4 100644
--- a/default-configs/ppc-softmmu.mak
+++ b/default-configs/ppc-softmmu.mak
@@ -1,26 +1,18 @@
# Default configuration for ppc-softmmu
-include pci.mak
-include sound.mak
-include usb.mak
-CONFIG_PPC4XX=y
+# For embedded PPCs:
+include ppcemb-softmmu.mak
+CONFIG_E500=y
+CONFIG_ETSEC=y
+CONFIG_PLATFORM_BUS=y
+CONFIG_PPCE500_PCI=y
+CONFIG_OPENPIC_KVM=$(call land,$(CONFIG_E500),$(CONFIG_KVM))
+
+# For Macs
+CONFIG_MAC=y
CONFIG_ESCC=y
-CONFIG_M48T59=y
-CONFIG_SERIAL=y
-CONFIG_PARALLEL=y
-CONFIG_I8254=y
-CONFIG_PCKBD=y
-CONFIG_FDC=y
-CONFIG_I8257=y
-CONFIG_I82374=y
-CONFIG_OPENPIC=y
-CONFIG_PREP_PCI=y
-CONFIG_I82378=y
-CONFIG_PC87312=y
CONFIG_MACIO=y
CONFIG_SUNGEM=y
-CONFIG_PCSPK=y
-CONFIG_CS4231A=y
CONFIG_CUDA=y
CONFIG_ADB=y
CONFIG_MAC_NVRAM=y
@@ -29,26 +21,23 @@ CONFIG_HEATHROW_PIC=y
CONFIG_GRACKLE_PCI=y
CONFIG_UNIN_PCI=y
CONFIG_DEC_PCI=y
-CONFIG_PPCE500_PCI=y
-CONFIG_IDE_ISA=y
-CONFIG_IDE_CMD646=y
CONFIG_IDE_MACIO=y
-CONFIG_NE2000_ISA=y
-CONFIG_PFLASH_CFI01=y
-CONFIG_PFLASH_CFI02=y
-CONFIG_PTIMER=y
-CONFIG_I8259=y
-CONFIG_XILINX=y
-CONFIG_XILINX_ETHLITE=y
-CONFIG_PREP=y
-CONFIG_MAC=y
-CONFIG_E500=y
-CONFIG_OPENPIC_KVM=$(call land,$(CONFIG_E500),$(CONFIG_KVM))
-CONFIG_PLATFORM_BUS=y
-CONFIG_ETSEC=y
-CONFIG_SM501=y
+
# For PReP
+CONFIG_PREP=y
+CONFIG_PREP_PCI=y
CONFIG_SERIAL_ISA=y
CONFIG_MC146818RTC=y
CONFIG_ISA_TESTDEV=y
CONFIG_RS6000_MC=y
+CONFIG_PARALLEL=y
+CONFIG_I82374=y
+CONFIG_I82378=y
+CONFIG_I8254=y
+CONFIG_FDC=y
+CONFIG_PCKBD=y
+CONFIG_NE2000_ISA=y
+CONFIG_PCSPK=y
+CONFIG_PC87312=y
+CONFIG_IDE_ISA=y
+CONFIG_CS4231A=y
--
1.8.3.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs
2018-01-15 9:30 [Qemu-devel] [PATCH 0/2] Clean up the ppc default configs Thomas Huth
2018-01-15 9:30 ` [Qemu-devel] [PATCH 1/2] default-configs/ppc64-softmmu: Include 32-bit configs instead of copying them Thomas Huth
2018-01-15 9:30 ` [Qemu-devel] [PATCH 2/2] default-configs/ppc-softmmu: Restructure the switches according to the machines Thomas Huth
@ 2018-01-15 11:05 ` Greg Kurz
2018-01-15 14:26 ` Thomas Huth
2018-01-15 12:00 ` BALATON Zoltan
2018-01-15 13:01 ` [Qemu-devel] " Peter Maydell
4 siblings, 1 reply; 13+ messages in thread
From: Greg Kurz @ 2018-01-15 11:05 UTC (permalink / raw)
To: Thomas Huth
Cc: David Gibson, qemu-ppc, qemu-devel, Murilo Opsfelder Araújo
On Mon, 15 Jan 2018 10:30:53 +0100
Thomas Huth <thuth@redhat.com> wrote:
> ppc64-softmmu is a superset of ppc-softmmu which in turn is a superset
Hi Thomas,
Per curiosity. I understand that a 64-bit ppc CPU is expected to support
32-bit ppc code, but does QEMU really need to emulate setups that likely
never existed in real life (like a PowerMac G5 or a pSeries with an
internal floppy disk controller for example) ?
I ask because Murilo and I had a chat about removing CONFIG_FDC from
default-configs/ppc64-softmmu.mak the other day :)
Cheers,
--
Greg
> of ppcemb-softmmu. But since the config files are currently independent
> from each other, we missed to define some CONFIG switches in the super-
> sets: CONFIG_SUNGEM is missing from the ppc64-softmmu config, and the
> CONFIG_IDE_SII3112 switch is only defined in ppcemb-softmmu.
>
> Let's fix this by including the subsets instead of duplicating all the
> switches all over the place.
>
> (off-topic question: Do we still need a separate ppcemb-softmmu nowadays?
> It seemed to be useful 10 years ago when everybody was doing KVM on
> embedded PPC, but these days seem to be pretty much over now, so IMHO
> just using ppc-softmmu for embedded should be enough nowadays? We could
> save quite some compilation- and "make check"-time if we could finally get
> rid of ppcemb-softmmu again...)
>
> Thomas Huth (2):
> default-configs/ppc64-softmmu: Include 32-bit configs instead of
> copying them
> default-configs/ppc-softmmu: Restructure the switches according to the
> machines
>
> default-configs/ppc-softmmu.mak | 59 +++++++++++++++----------------------
> default-configs/ppc64-softmmu.mak | 61 +++++----------------------------------
> 2 files changed, 32 insertions(+), 88 deletions(-)
>
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs
2018-01-15 9:30 [Qemu-devel] [PATCH 0/2] Clean up the ppc default configs Thomas Huth
` (2 preceding siblings ...)
2018-01-15 11:05 ` [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs Greg Kurz
@ 2018-01-15 12:00 ` BALATON Zoltan
2018-01-15 14:38 ` Thomas Huth
2018-01-16 10:41 ` Thomas Huth
2018-01-15 13:01 ` [Qemu-devel] " Peter Maydell
4 siblings, 2 replies; 13+ messages in thread
From: BALATON Zoltan @ 2018-01-15 12:00 UTC (permalink / raw)
To: Thomas Huth; +Cc: David Gibson, qemu-ppc, qemu-devel
On Mon, 15 Jan 2018, Thomas Huth wrote:
> ppc64-softmmu is a superset of ppc-softmmu which in turn is a superset
> of ppcemb-softmmu. But since the config files are currently independent
> from each other, we missed to define some CONFIG switches in the super-
> sets: CONFIG_SUNGEM is missing from the ppc64-softmmu config, and the
> CONFIG_IDE_SII3112 switch is only defined in ppcemb-softmmu.
I'm not sure about this. The Sun GEM network interface is a device
typically found on Apple PowerMacs but also seems to be found on G5 based
Macs so it's probably OK to add. The SiI3112 is now only used on the (not
yet fully merged) Sam460EX emulation which is to be added to ppcemb,
that's why I've only added it to that target. Defining it on other targets
does no harm (other than making the binary bigger) just maybe not
necessary. If you think this makes the configs simpler I'm OK with this
change just note that it probably makes it impossible to add options only
for ppcemb without also adding them to ppc and ppc64. If that's OK then go
ahead.
> (off-topic question: Do we still need a separate ppcemb-softmmu nowadays?
> It seemed to be useful 10 years ago when everybody was doing KVM on
> embedded PPC, but these days seem to be pretty much over now, so IMHO
> just using ppc-softmmu for embedded should be enough nowadays? We could
> save quite some compilation- and "make check"-time if we could finally get
> rid of ppcemb-softmmu again...)
I've also noticed that most of the boards were available both in ppcemb
and ppc targets so maybe these could be merged now to avoid confusion but
I don't know the reason why ppcemb existed in the first place so I don't
know what other implications dropping ppcemb may have.
Regards,
BALATON Zoltan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [PATCH 0/2] Clean up the ppc default configs
2018-01-15 9:30 [Qemu-devel] [PATCH 0/2] Clean up the ppc default configs Thomas Huth
` (3 preceding siblings ...)
2018-01-15 12:00 ` BALATON Zoltan
@ 2018-01-15 13:01 ` Peter Maydell
2018-01-15 14:42 ` [Qemu-devel] [Qemu-ppc] " Thomas Huth
4 siblings, 1 reply; 13+ messages in thread
From: Peter Maydell @ 2018-01-15 13:01 UTC (permalink / raw)
To: Thomas Huth; +Cc: David Gibson, qemu-ppc, QEMU Developers
On 15 January 2018 at 09:30, Thomas Huth <thuth@redhat.com> wrote:
> (off-topic question: Do we still need a separate ppcemb-softmmu nowadays?
> It seemed to be useful 10 years ago when everybody was doing KVM on
> embedded PPC, but these days seem to be pretty much over now, so IMHO
> just using ppc-softmmu for embedded should be enough nowadays? We could
> save quite some compilation- and "make check"-time if we could finally get
> rid of ppcemb-softmmu again...)
There are some specific differences guarded by TARGET_PPCEMB, like
the way it has a different TARGET_PAGE_BITS value, and some code
in target/ppc/kvm.c related to telling KVM about interrupts. You
would need to make those all be runtime decisions I assume.
thanks
-- PMM
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs
2018-01-15 11:05 ` [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs Greg Kurz
@ 2018-01-15 14:26 ` Thomas Huth
0 siblings, 0 replies; 13+ messages in thread
From: Thomas Huth @ 2018-01-15 14:26 UTC (permalink / raw)
To: Greg Kurz
Cc: Murilo Opsfelder Araújo, qemu-ppc, qemu-devel, David Gibson
On 15.01.2018 12:05, Greg Kurz wrote:
> On Mon, 15 Jan 2018 10:30:53 +0100
> Thomas Huth <thuth@redhat.com> wrote:
>
>> ppc64-softmmu is a superset of ppc-softmmu which in turn is a superset
>
> Hi Thomas,
>
> Per curiosity. I understand that a 64-bit ppc CPU is expected to support
> 32-bit ppc code, but does QEMU really need to emulate setups that likely
> never existed in real life (like a PowerMac G5 or a pSeries with an
> internal floppy disk controller for example) ?
I think the CONFIG_FDC switch is there for the PReP machine, not for the
Macs.
Thomas
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs
2018-01-15 12:00 ` BALATON Zoltan
@ 2018-01-15 14:38 ` Thomas Huth
2018-01-16 10:41 ` Thomas Huth
1 sibling, 0 replies; 13+ messages in thread
From: Thomas Huth @ 2018-01-15 14:38 UTC (permalink / raw)
To: BALATON Zoltan; +Cc: qemu-ppc, qemu-devel, David Gibson
On 15.01.2018 13:00, BALATON Zoltan wrote:
> On Mon, 15 Jan 2018, Thomas Huth wrote:
>> ppc64-softmmu is a superset of ppc-softmmu which in turn is a superset
>> of ppcemb-softmmu. But since the config files are currently independent
>> from each other, we missed to define some CONFIG switches in the super-
>> sets: CONFIG_SUNGEM is missing from the ppc64-softmmu config, and the
>> CONFIG_IDE_SII3112 switch is only defined in ppcemb-softmmu.
>
> I'm not sure about this. The Sun GEM network interface is a device
> typically found on Apple PowerMacs but also seems to be found on G5
> based Macs so it's probably OK to add. The SiI3112 is now only used on
> the (not yet fully merged) Sam460EX emulation which is to be added to
> ppcemb, that's why I've only added it to that target.
But as I wrote: ppc-softmmu is currently a superset of ppcemb-softmmu. I
think people expect to be able to run the same amount of machines with
ppc-softmmu than with ppcemb-softmmu, don't they?
>> (off-topic question: Do we still need a separate ppcemb-softmmu nowadays?
>> It seemed to be useful 10 years ago when everybody was doing KVM on
>> embedded PPC, but these days seem to be pretty much over now, so IMHO
>> just using ppc-softmmu for embedded should be enough nowadays? We could
>> save quite some compilation- and "make check"-time if we could finally
>> get rid of ppcemb-softmmu again...)
>
> I've also noticed that most of the boards were available both in ppcemb
> and ppc targets so maybe these could be merged now to avoid confusion
> but I don't know the reason why ppcemb existed in the first place so I
> don't know what other implications dropping ppcemb may have.
An alternative would be to remove the embedded configs from the
ppc-softmmu.mak and only include them in ppcemb-softmmu.mak, so that
there is a stricter distinction. I think the current situation is rather
confusing, where it is possible that the user could try to run a pseries
machine with an embedded PPC CPU for example ... so strictly separating
the embedded stuff into ppcemb-softmmu would maybe really make sense.
Thomas
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs
2018-01-15 13:01 ` [Qemu-devel] " Peter Maydell
@ 2018-01-15 14:42 ` Thomas Huth
2018-01-16 1:19 ` David Gibson
0 siblings, 1 reply; 13+ messages in thread
From: Thomas Huth @ 2018-01-15 14:42 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-ppc, QEMU Developers, David Gibson
On 15.01.2018 14:01, Peter Maydell wrote:
> On 15 January 2018 at 09:30, Thomas Huth <thuth@redhat.com> wrote:
>> (off-topic question: Do we still need a separate ppcemb-softmmu nowadays?
>> It seemed to be useful 10 years ago when everybody was doing KVM on
>> embedded PPC, but these days seem to be pretty much over now, so IMHO
>> just using ppc-softmmu for embedded should be enough nowadays? We could
>> save quite some compilation- and "make check"-time if we could finally get
>> rid of ppcemb-softmmu again...)
>
> There are some specific differences guarded by TARGET_PPCEMB, like
> the way it has a different TARGET_PAGE_BITS value, and some code
> in target/ppc/kvm.c related to telling KVM about interrupts. You
> would need to make those all be runtime decisions I assume.
True ... but while we maybe could turn those into runtime checks, I now
rather think it's maybe better to go the other way round: Maybe we
should not include each and everything into ppc64-softmmu, but put the
embedded stuff only in ppcemb-softmmu and the 32-bit stuff only in
ppc-softmmu instead? That way we could, for example, also make the
output of "-cpu help" and "-device help" a little bit more user friendly...
Thomas
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs
2018-01-15 14:42 ` [Qemu-devel] [Qemu-ppc] " Thomas Huth
@ 2018-01-16 1:19 ` David Gibson
0 siblings, 0 replies; 13+ messages in thread
From: David Gibson @ 2018-01-16 1:19 UTC (permalink / raw)
To: Thomas Huth; +Cc: Peter Maydell, qemu-ppc, QEMU Developers
[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]
On Mon, Jan 15, 2018 at 03:42:09PM +0100, Thomas Huth wrote:
> On 15.01.2018 14:01, Peter Maydell wrote:
> > On 15 January 2018 at 09:30, Thomas Huth <thuth@redhat.com> wrote:
> >> (off-topic question: Do we still need a separate ppcemb-softmmu nowadays?
> >> It seemed to be useful 10 years ago when everybody was doing KVM on
> >> embedded PPC, but these days seem to be pretty much over now, so IMHO
> >> just using ppc-softmmu for embedded should be enough nowadays? We could
> >> save quite some compilation- and "make check"-time if we could finally get
> >> rid of ppcemb-softmmu again...)
> >
> > There are some specific differences guarded by TARGET_PPCEMB, like
> > the way it has a different TARGET_PAGE_BITS value, and some code
> > in target/ppc/kvm.c related to telling KVM about interrupts. You
> > would need to make those all be runtime decisions I assume.
>
> True ... but while we maybe could turn those into runtime checks, I now
> rather think it's maybe better to go the other way round: Maybe we
> should not include each and everything into ppc64-softmmu, but put the
> embedded stuff only in ppcemb-softmmu and the 32-bit stuff only in
> ppc-softmmu instead? That way we could, for example, also make the
> output of "-cpu help" and "-device help" a little bit more user friendly...
I tend to agree.
--
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: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs
2018-01-15 12:00 ` BALATON Zoltan
2018-01-15 14:38 ` Thomas Huth
@ 2018-01-16 10:41 ` Thomas Huth
2018-01-16 10:51 ` Peter Maydell
1 sibling, 1 reply; 13+ messages in thread
From: Thomas Huth @ 2018-01-16 10:41 UTC (permalink / raw)
To: BALATON Zoltan; +Cc: qemu-ppc, qemu-devel, David Gibson, Alexander Graf
On 15.01.2018 13:00, BALATON Zoltan wrote:
[...]
> I've also noticed that most of the boards were available both in ppcemb
> and ppc targets so maybe these could be merged now to avoid confusion
> but I don't know the reason why ppcemb existed in the first place so I
> don't know what other implications dropping ppcemb may have.
FYI: I've had a chat with Alexander Graf this morning in IRC, and the
qemu-system-ppcemb was indeed only created for supporting the CPUs with
page sizes < 4k. Everything else is supposed to work with
qemu-system-ppc, too. Since likely nobody is using page sizes < 4k on
embedded PPCs nowadays anymore (and Alex was also only aware of one
home-brew OS that did this in the past is likely not available now
anymore), I think we can go forward and start the deprecation of ppcemb.
Thomas
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs
2018-01-16 10:41 ` Thomas Huth
@ 2018-01-16 10:51 ` Peter Maydell
2018-01-16 11:10 ` Thomas Huth
0 siblings, 1 reply; 13+ messages in thread
From: Peter Maydell @ 2018-01-16 10:51 UTC (permalink / raw)
To: Thomas Huth
Cc: BALATON Zoltan, Alexander Graf, qemu-ppc, QEMU Developers,
David Gibson
On 16 January 2018 at 10:41, Thomas Huth <thuth@redhat.com> wrote:
> On 15.01.2018 13:00, BALATON Zoltan wrote:
> [...]
>> I've also noticed that most of the boards were available both in ppcemb
>> and ppc targets so maybe these could be merged now to avoid confusion
>> but I don't know the reason why ppcemb existed in the first place so I
>> don't know what other implications dropping ppcemb may have.
>
> FYI: I've had a chat with Alexander Graf this morning in IRC, and the
> qemu-system-ppcemb was indeed only created for supporting the CPUs with
> page sizes < 4k. Everything else is supposed to work with
> qemu-system-ppc, too. Since likely nobody is using page sizes < 4k on
> embedded PPCs nowadays anymore (and Alex was also only aware of one
> home-brew OS that did this in the past is likely not available now
> anymore), I think we can go forward and start the deprecation of ppcemb.
We do now support runtime-settable page sizes (as a board model property),
so you could roll support for 1K pages into ppc-softmmu/ppc64-softmmu
if you wanted.
thanks
-- PMM
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs
2018-01-16 10:51 ` Peter Maydell
@ 2018-01-16 11:10 ` Thomas Huth
0 siblings, 0 replies; 13+ messages in thread
From: Thomas Huth @ 2018-01-16 11:10 UTC (permalink / raw)
To: Peter Maydell; +Cc: QEMU Developers, David Gibson, qemu-ppc, BALATON Zoltan
On 16.01.2018 11:51, Peter Maydell wrote:
> On 16 January 2018 at 10:41, Thomas Huth <thuth@redhat.com> wrote:
>> On 15.01.2018 13:00, BALATON Zoltan wrote:
>> [...]
>>> I've also noticed that most of the boards were available both in ppcemb
>>> and ppc targets so maybe these could be merged now to avoid confusion
>>> but I don't know the reason why ppcemb existed in the first place so I
>>> don't know what other implications dropping ppcemb may have.
>>
>> FYI: I've had a chat with Alexander Graf this morning in IRC, and the
>> qemu-system-ppcemb was indeed only created for supporting the CPUs with
>> page sizes < 4k. Everything else is supposed to work with
>> qemu-system-ppc, too. Since likely nobody is using page sizes < 4k on
>> embedded PPCs nowadays anymore (and Alex was also only aware of one
>> home-brew OS that did this in the past is likely not available now
>> anymore), I think we can go forward and start the deprecation of ppcemb.
>
> We do now support runtime-settable page sizes (as a board model property),
> so you could roll support for 1K pages into ppc-softmmu/ppc64-softmmu
> if you wanted.
Yes, I've noticed this TARGET_PAGE_BITS_VARY stuff in target/arm/
already ... I think that's a good plan B if someone speaks up claiming
that <4k page sizes are still required after we've marked ppcemb as
deprecated.
Thomas
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2018-01-16 11:11 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-15 9:30 [Qemu-devel] [PATCH 0/2] Clean up the ppc default configs Thomas Huth
2018-01-15 9:30 ` [Qemu-devel] [PATCH 1/2] default-configs/ppc64-softmmu: Include 32-bit configs instead of copying them Thomas Huth
2018-01-15 9:30 ` [Qemu-devel] [PATCH 2/2] default-configs/ppc-softmmu: Restructure the switches according to the machines Thomas Huth
2018-01-15 11:05 ` [Qemu-devel] [Qemu-ppc] [PATCH 0/2] Clean up the ppc default configs Greg Kurz
2018-01-15 14:26 ` Thomas Huth
2018-01-15 12:00 ` BALATON Zoltan
2018-01-15 14:38 ` Thomas Huth
2018-01-16 10:41 ` Thomas Huth
2018-01-16 10:51 ` Peter Maydell
2018-01-16 11:10 ` Thomas Huth
2018-01-15 13:01 ` [Qemu-devel] " Peter Maydell
2018-01-15 14:42 ` [Qemu-devel] [Qemu-ppc] " Thomas Huth
2018-01-16 1:19 ` David Gibson
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).