Skip to content

PPC: Mac OS X guest bringup v2

Alexander Graf qemu-devel 1 version Applied

Status from this message: Applied to ppc-next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 of 17 patches 2 repliesApplied

v1 -> v2 from the cover letter

- fix spaces
- use non-bitrotting DPRINTF for macio
- clean up
- fix dprintf
- make processing a bool

16 of 17 patches are in this archive. The cover letter announces 17.

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/17PPC: Mac: Fix guest exported tbfreq valueshw/ppc/mac_newworld.c hw/ppc/mac_oldworld.c+6 -40 replies
2/17PPC: g3beige: Move secondary IDE bus to mac-iohw/ide/macio.c hw/misc/macio/macio.c hw/ppc/mac_oldworld.c+64 -480 replies
3/17PPC: Macio: Replace tabs with spaceshw/ide/macio.c+4 -40 replies
4/17PPC: dbdma: Replace tabs with spaceshw/misc/macio/mac_dbdma.c+51 -510 replies
5/17PPC: Mac: Add debug prints in macio and dbdma codehw/ide/macio.c hw/misc/macio/mac_dbdma.c+51 -60 replies
6/17PPC: dbdma: Fix debug printhw/misc/macio/mac_dbdma.c+2 -10 replies
7/17PPC: dbdma: Allow new commands in RUN statehw/misc/macio/mac_dbdma.c+3 -30 replies
8/17PPC: dbdma: Move defines into header filehw/misc/macio/mac_dbdma.c include/hw/ppc/mac_dbdma.h+118 -1170 replies
9/17PPC: dbdma: Introduce kick functionhw/misc/macio/mac_dbdma.c include/hw/ppc/mac_dbdma.h+6 -00 replies
10/17PPC: dbdma: Move static bh variable to device structhw/misc/macio/mac_dbdma.c include/hw/ppc/mac_dbdma.h+16 -90 replies
11/17PPC: dbdma: macio: Add DMA callbackhw/ide/macio.c hw/ppc/mac.h+42 -00 replies
12/17PPC: dbdma: Move processing to iohw/misc/macio/mac_dbdma.c include/hw/ppc/mac_dbdma.h+8 -50 replies
13/17PPC: dbdma: Wait for DMA until we have datahw/ide/macio.c hw/ppc/mac.h+20 -00 replies
14/17PPC: dbdma: Support unaligned DMA accesshw/ide/macio.c include/hw/ppc/mac_dbdma.h+125 -71 reply
15/17PPC: Add timer handler for newworld mac-iohw/misc/macio/macio.c+32 -00 replies
17/17PPC: dbdma: Support more multi-issue DMA requestshw/ide/macio.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/17] PPC: Mac OS X guest bringup v2

Recently there has been a lot of progress on the OpenBIOS side to get Mac OS X to boot.

For a while now it seemed there was only very little to make it a fully working guest os in QEMU.

This patch set is the result of this. With this I can successfully boot Mac OS X 10.2 to 10.4 with the g3beige machine all the way to the GUI. I was not able to boot 10.0 or 10.1, both of which crashed in interrupt controller registration. 10.5 does not include drivers for g3beige anymore. Everything as of 10.6 is x86 only.

The mac99 target doesn't look quite as good, but also very close. FWIW only minor issues in our NVRAM layout keep us from using that one. 10.4 already boots for me.

Please don't try to run this with KVM yet. Mac OS X uses mixed mode (half real, half paged) extensively, which happens to break badly in KVM.

For reference, here are a few pictures:

https://dl.dropboxusercontent.com/u/8976842/Screen%20Shot%202013-06-29%20at%2021.25.38.png
https://dl.dropboxusercontent.com/u/8976842/Screen%20Shot%202013-06-29%20at%2005.21.03.png

If you want to try this out, please apply the patches on top of my ppc-next queue. Or just use this git repo:

git://github.com/agraf/qemu.git macos-v2

Enjoy!

Alex

v1 -> v2:

- fix spaces
- use non-bitrotting DPRINTF for macio
- clean up
- fix dprintf
- make processing a bool

Alexander Graf (17):
PPC: Mac: Fix guest exported tbfreq values
PPC: g3beige: Move secondary IDE bus to mac-io
PPC: Macio: Replace tabs with spaces
PPC: dbdma: Replace tabs with spaces
PPC: Mac: Add debug prints in macio and dbdma code
PPC: dbdma: Fix debug print
PPC: dbdma: Allow new commands in RUN state
PPC: dbdma: Move defines into header file
PPC: dbdma: Introduce kick function
PPC: dbdma: Move static bh variable to device struct
PPC: dbdma: macio: Add DMA callback
PPC: dbdma: Move processing to io
PPC: dbdma: Wait for DMA until we have data
PPC: dbdma: Support unaligned DMA access
PPC: Add timer handler for newworld mac-io
PPC: Update PPC OpenBIOS
PPC: dbdma: Support more multi-issue DMA requests

 hw/ide/macio.c             | 239 ++++++++++++++++++++++++++++++++++++++++++---
 hw/misc/macio/mac_dbdma.c  | 193 ++++++++++--------------------------
 hw/misc/macio/macio.c      | 125 +++++++++++++++++-------
 hw/ppc/mac.h               |   3 +
 hw/ppc/mac_newworld.c      |   5 +-
 hw/ppc/mac_oldworld.c      |  22 ++---
 include/hw/ppc/mac_dbdma.h | 124 +++++++++++++++++++++++
 pc-bios/openbios-ppc       | Bin 733972 -> 1358022 bytes
 8 files changed, 502 insertions(+), 209 deletions(-)
Signature · 1 line
1.8.1.4