diff options
author | Stefano Stabellini | 2011-05-19 19:35:46 +0200 |
---|---|---|
committer | Alexander Graf | 2011-06-19 04:40:05 +0200 |
commit | 712c2b41490a986a5dd99bec99b854bac4322201 (patch) | |
tree | c044f52580916414afc691eff27de6e14f1a0b5e /hw/piix_pci.c | |
parent | exec.c: refactor cpu_physical_memory_map (diff) | |
download | qemu-712c2b41490a986a5dd99bec99b854bac4322201.tar.gz qemu-712c2b41490a986a5dd99bec99b854bac4322201.tar.xz qemu-712c2b41490a986a5dd99bec99b854bac4322201.zip |
xen: mapcache performance improvements
Use qemu_invalidate_entry in cpu_physical_memory_unmap.
Do not lock mapcache entries in qemu_get_ram_ptr if the address falls in
the ramblock with offset == 0. We don't need to do that because the
callers of qemu_get_ram_ptr either try to map an entire block, other
from the main ramblock, or until the end of a page to implement a single
read or write in the main ramblock.
If we don't lock mapcache entries in qemu_get_ram_ptr we don't need to
call qemu_invalidate_entry in qemu_put_ram_ptr anymore because we can
leave with few long lived block mappings requested by devices.
Also move the call to qemu_ram_addr_from_mapcache at the beginning of
qemu_ram_addr_from_host.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/piix_pci.c')
0 files changed, 0 insertions, 0 deletions