]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commit
mapcache: Fix invalidate if memory requested was not bucket aligned xen-4.2.0-rc2
authorFrediano Ziglio <frediano.ziglio@citrix.com>
Tue, 7 Aug 2012 17:17:27 +0000 (18:17 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 7 Aug 2012 17:17:27 +0000 (18:17 +0100)
commitd94efd9aa814f17f3243dae91476dc42b5ad052e
treefcebffee0db85406d9161bf985265dfd5a576291
parent00fb2aae68e915b7f456fd5e3997ddf31339004a
mapcache: Fix invalidate if memory requested was not bucket aligned

When memory is mapped in qemu_map_cache with lock != 0 a reverse mapping
is created pointing to the virtual address of location requested.
The cached mapped entry is saved in last_address_vaddr with the memory
location of the base virtual address (without bucket offset).
However when this entry is invalidated the virtual address saved in the
reverse mapping is used. This cause that the mapping is freed but the
last_address_vaddr is not reset.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/xen_machine_fv.c