On Thu, Jul 03, 2014 at 04:26:27PM +0800, Le Tan wrote: > In map_page() in hw/ide/ahci.c, replace cpu_physical_memory_map() and > cpu_physical_memory_unmap() with dma_memory_map() and dma_memory_unmap(), > because ahci devices should not access memory directly but via their address > space. Add an AddressSpace parameter to map_page(). In order to call > map_page(), we should pass the AHCIState.as as the AddressSpace argument. > > Signed-off-by: Le Tan <tamlokv...@gmail.com> > --- > hw/ide/ahci.c | 21 +++++++++++---------- > 1 file changed, 11 insertions(+), 10 deletions(-)
Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan
pgp0mIqgTQcjX.pgp
Description: PGP signature