]> xenbits.xensource.com Git - qemu-xen-4.1-testing.git/commit
mapcache: Fix invalidate if memory requested was not bucket aligned xen-4.1.4 xen-4.1.4-rc1 xen-4.1.4-rc2
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 13 Nov 2012 18:25:17 +0000 (18:25 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 13 Nov 2012 18:25:17 +0000 (18:25 +0000)
commitb36c42985575cd6d761d39e5770e57a1f52832ae
treebc950640c7e75a83b8cb01adb2ccfef8158c70b2
parentbdbf5a6aba74658b95756c8d7d26d664fbd9c83d
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>
(cherry picked from commit d94efd9aa814f17f3243dae91476dc42b5ad052e)

Conflicts:
hw/xen_machine_fv.c

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
hw/xen_machine_fv.c