Remove ppc_newworld/ppc_oldworld
RFC PATCH 1/1 Remove ppc_newworld/ppc_oldworld
First, please notice the 'RFC' tag and the lack of a Signed-off-by. I'm just making a proposal here so please don't bite my head off if this isn't a good idea.
I notice that these two machines have seem to have never really been touched other than tree-wide refactoring since their introduction. Googling for the machine types doesn't hit any user questions or comments about the machine types.
For the most part, the devices haven't been converted to qdev and are actually the only remaining PCI devices that haven't been.
To me this indicates that the code currently isn't being used by anyone. I can do the qdev conversions if it is, but as far as I can tell, it's just bit rotting right now.
Is this accurate? Can we remove this code? If there is future interest here, it's easy enough to revert this, fix up the code, and resubmit.
--- Makefile.objs | 11 - Makefile.target | 4 - hw/cuda.c | 752 ---------------------------------------------- hw/dec_pci.c | 120 -------- hw/grackle_pci.c | 141 --------- hw/heathrow_pic.c | 215 -------------- hw/ide/macio.c | 357 ---------------------- hw/mac_dbdma.c | 854 ----------------------------------------------------- hw/mac_nvram.c | 178 ----------- hw/macio.c | 115 ------- hw/ppc_newworld.c | 425 -------------------------- hw/ppc_oldworld.c | 340 --------------------- hw/unin_pci.c | 393 ------------------------ 13 files changed, 0 insertions(+), 3905 deletions(-) delete mode 100644 hw/cuda.c delete mode 100644 hw/dec_pci.c delete mode 100644 hw/grackle_pci.c delete mode 100644 hw/heathrow_pic.c delete mode 100644 hw/ide/macio.c delete mode 100644 hw/mac_dbdma.c delete mode 100644 hw/mac_nvram.c delete mode 100644 hw/macio.c delete mode 100644 hw/ppc_newworld.c delete mode 100644 hw/ppc_oldworld.c delete mode 100644 hw/unin_pci.c
Makefile.objs +0 -11
@@ -225,17 +225,7 @@ hw-obj-$(CONFIG_I8259) += i8259.o # PPC devices hw-obj-$(CONFIG_PREP_PCI) += prep_pci.o # Mac shared devices -hw-obj-$(CONFIG_MACIO) += macio.o -hw-obj-$(CONFIG_CUDA) += cuda.o hw-obj-$(CONFIG_ADB) += adb.o -hw-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o -hw-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o -# OldWorld PowerMac -hw-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o -hw-obj-$(CONFIG_GRACKLE_PCI) += grackle_pci.o -# NewWorld PowerMac -hw-obj-$(CONFIG_UNIN_PCI) += unin_pci.o -hw-obj-$(CONFIG_DEC_PCI) += dec_pci.o # PowerPC E500 boards hw-obj-$(CONFIG_PPCE500_PCI) += ppce500_pci.o
@@ -268,7 +258,6 @@ hw-obj-$(CONFIG_IDE_PCI) += ide/pci.o hw-obj-$(CONFIG_IDE_ISA) += ide/isa.o hw-obj-$(CONFIG_IDE_PIIX) += ide/piix.o hw-obj-$(CONFIG_IDE_CMD646) += ide/cmd646.o -hw-obj-$(CONFIG_IDE_MACIO) += ide/macio.o hw-obj-$(CONFIG_IDE_VIA) += ide/via.o hw-obj-$(CONFIG_AHCI) += ide/ahci.o hw-obj-$(CONFIG_AHCI) += ide/ich.o
Makefile.target +0 -4
@@ -243,10 +243,6 @@ obj-ppc-y += vga.o # PREP target obj-ppc-y += mc146818rtc.o obj-ppc-y += ppc_prep.o -# OldWorld PowerMac -obj-ppc-y += ppc_oldworld.o -# NewWorld PowerMac -obj-ppc-y += ppc_newworld.o # IBM pSeries (sPAPR) obj-ppc-$(CONFIG_PSERIES) += spapr.o spapr_hcall.o spapr_rtas.o spapr_vio.o obj-ppc-$(CONFIG_PSERIES) += xics.o spapr_vty.o spapr_llan.o spapr_vscsi.o
hw/cuda.c deleted +0 -752
752 lines not on this page · raw message
hw/dec_pci.c deleted +0 -120
120 lines not on this page · raw message
hw/grackle_pci.c deleted +0 -141
141 lines not on this page · raw message
hw/heathrow_pic.c deleted +0 -215
215 lines not on this page · raw message
hw/ide/macio.c deleted +0 -357
357 lines not on this page · raw message
hw/mac_dbdma.c deleted +0 -854
854 lines not on this page · raw message
hw/mac_nvram.c deleted +0 -178
178 lines not on this page · raw message
hw/macio.c deleted +0 -115
115 lines not on this page · raw message
hw/ppc_newworld.c deleted +0 -425
234 lines not on this page · raw message
hw/ppc_oldworld.c deleted +0 -340
340 lines not on this page · raw message
hw/unin_pci.c deleted +0 -393
393 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.4.1
Part of the diff is not shown here. View the raw message.
Am 16.12.2011 19:08, schrieb Anthony Liguori:
Quoted 8 lines
I notice that these two machines have seem to have never really been touched other than tree-wide refactoring since their introduction. Googling for the machine types doesn't hit any user questions or comments about the machine types.
For the most part, the devices haven't been converted to qdev and are actually the only remaining PCI devices that haven't been.
Quoted 6 lines
To me this indicates that the code currently isn't being used by anyone. I can do the qdev conversions if it is, but as far as I can tell, it's just bit rotting right now.
Is this accurate? Can we remove this code? If there is future interest here, it's easy enough to revert this, fix up the code, and resubmit.
No. There's an easy explanation why you might not find much mentions of the machine names: g3beige (ppc_oldworld.c) is the default for qemu-system-ppc, and mac99 (ppc_newworld.c) is the default for qemu-system-ppc64.
If there's something ppc you'd like to remove then I would be open about discussing the current ppc_prep.c machine but not its infrastructure (prep_pci etc. - there we started a qdev'ification) as that's needed for 40p and bebox machines. I was holding back any refactorings while MemoryRegion API was a moving target and now QOM didn't seem inviting either. ;)
Andreas
(something seems odd - I only got Andreas' reply, not the original mail)
Quoted 8 lines · Andreas Färber
Am 16.12.2011 19:08, schrieb Anthony Liguori:
Quoted 7 lines
I notice that these two machines have seem to have never really been touched other than tree-wide refactoring since their introduction. Googling for the machine types doesn't hit any user questions or comments about the machine types.
For the most part, the devices haven't been converted to qdev and are actually the only remaining PCI devices that haven't been.
True point. I just find it frustrating to work on something so it works the same way as before again. Maybe someone a bit less spoiled could convert them over?
Quoted 4 lines
Quoted 4 lines
To me this indicates that the code currently isn't being used by anyone. I can do the qdev conversions if it is, but as far as I can tell, it's just bit rotting right now.
It's the default machine. Admittedly it's not the greatest and best maintained code in the world, but I guess that applies for multiple corners of QEMU.
Quoted 8 lines
Quoted 3 lines
Is this accurate? Can we remove this code? If there is future interest here, it's easy enough to revert this, fix up the code, and resubmit.
No. There's an easy explanation why you might not find much mentions of the machine names: g3beige (
ppc_oldworld.c) is the default for qemu-system-ppc, and mac99 (ppc_newworld.c) is the default for qemu-system-ppc64.
Yeah. We talked about moving the default for ppc64 to pseries. At that point we could start to talk about dropping -M mac99 (which is in horrible shape). For -M g3beige, I don't see an alternative popping up atm. It's the only sane target we have for book3s_32 guests.
Alex