diff options
author | Le Tan <tamlokveer@gmail.com> | 2014-07-03 16:26:27 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-07-07 10:22:43 +0200 |
commit | 5a18e67dfd515992076c5fcae47035fdd3ed2462 (patch) | |
tree | 57f9ad5f936eca9f56e38d605baf70160ed024ef /include/block/block_int.h | |
parent | aa729704f48331787d0afac510df214aedda2843 (diff) |
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/block/block_int.h')
0 files changed, 0 insertions, 0 deletions