diff options
author | Le Tan | 2014-07-03 10:26:27 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2014-07-07 10:22:43 +0200 |
commit | 5a18e67dfd515992076c5fcae47035fdd3ed2462 (patch) | |
tree | 57f9ad5f936eca9f56e38d605baf70160ed024ef /include | |
parent | raw-posix: Fix raw_getlength() to always return -errno on error (diff) | |
download | qemu-5a18e67dfd515992076c5fcae47035fdd3ed2462.tar.gz qemu-5a18e67dfd515992076c5fcae47035fdd3ed2462.tar.xz qemu-5a18e67dfd515992076c5fcae47035fdd3ed2462.zip |
ahci: map memory via device's address space instead of address_space_memory
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 <tamlokveer@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions