]> git.proxmox.com Git - mirror_qemu.git/commit - include/exec/memory.h
exec: introduce MemoryRegionCache
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Nov 2016 11:04:52 +0000 (12:04 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Dec 2016 15:00:23 +0000 (16:00 +0100)
commit1f4e496e1fc2eb6c8bf377a0f9695930c380bfd3
tree20ae0a2b754332418a682b5a9361e54708d3b19b
parent715c31ec8e12107f47ac74b464c97e813c76f898
exec: introduce MemoryRegionCache

Device models often have to perform multiple access to a single
memory region that is known in advance, but would to use "DMA-style"
functions instead of address_space_map/unmap.  This can happen
for example when the data has to undergo endianness conversion.
Introduce a new data structure to cache the result of
address_space_translate without forcing usage of a host address
like address_space_map does.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c
include/exec/cpu-all.h
include/exec/memory.h
include/qemu/typedefs.h