]> git.proxmox.com Git - mirror_qemu.git/commit
macio ide: Do remainder access asynchronously
authorAlexander Graf <agraf@suse.de>
Mon, 26 May 2014 08:27:58 +0000 (10:27 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:38 +0000 (13:24 +0200)
commit3e300fa6ad4ee19b16339c25773dec8df0bfb982
tree45fb2105bd9e7112fa0fc51428d44da6a37564a7
parent6ab39b1bd3474aab57e10cc90377b9a3b94a72d4
macio ide: Do remainder access asynchronously

The macio IDE controller has some pretty nasty magic in its implementation to
allow for unaligned sector accesses. We used to handle these accesses
synchronously inside the IO callback handler.

However, the block infrastructure changed below our feet and now it's impossible
to call a synchronous block read/write from the aio callback handler of a
previous block access.

Work around that limitation by making the unaligned handling bits also go
through our asynchronous handler.

This fixes booting Mac OS X for me.

Reported-by: John Arbuckle <programmingkidx@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ide/macio.c
hw/misc/macio/mac_dbdma.c
include/hw/ppc/mac_dbdma.h