diff options
author | Alexander Graf | 2014-05-26 10:27:58 +0200 |
---|---|---|
committer | Alexander Graf | 2014-06-16 13:24:38 +0200 |
commit | 3e300fa6ad4ee19b16339c25773dec8df0bfb982 (patch) | |
tree | 45fb2105bd9e7112fa0fc51428d44da6a37564a7 /include | |
parent | target-ppc: Fix popcntb Opcode Bug (diff) | |
download | qemu-3e300fa6ad4ee19b16339c25773dec8df0bfb982.tar.gz qemu-3e300fa6ad4ee19b16339c25773dec8df0bfb982.tar.xz qemu-3e300fa6ad4ee19b16339c25773dec8df0bfb982.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/ppc/mac_dbdma.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/ppc/mac_dbdma.h b/include/hw/ppc/mac_dbdma.h index 90efd277e4..d7db06c031 100644 --- a/include/hw/ppc/mac_dbdma.h +++ b/include/hw/ppc/mac_dbdma.h @@ -42,6 +42,11 @@ struct DBDMA_io { /* unaligned last sector of a request */ uint8_t remainder[0x200]; int remainder_len; + QEMUIOVector iov; + bool finish_remain_read; + hwaddr finish_addr; + hwaddr finish_len; + int requests; }; /* |