diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2011-05-19 18:35:46 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2011-06-19 04:40:05 +0200 |
commit | 712c2b41490a986a5dd99bec99b854bac4322201 (patch) | |
tree | c044f52580916414afc691eff27de6e14f1a0b5e /hw/cirrus_vga.c | |
parent | 38bee5dc94ee355640b030d28f311b03ee2f13d1 (diff) |
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/cirrus_vga.c')
0 files changed, 0 insertions, 0 deletions