]> xenbits.xensource.com Git - qemu-upstream-4.2-testing.git/commit
Fix invalidate if memory requested was not bucket aligned qemu-xen-4.2.0 qemu-xen-4.2.0-rc5 qemu-xen-4.2.1
authorFrediano Ziglio <frediano.ziglio@citrix.com>
Mon, 10 Sep 2012 18:10:52 +0000 (18:10 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 10 Sep 2012 18:10:52 +0000 (18:10 +0000)
commitcdf4d2bb4006805f209712fbb8ed1f83127e9984
tree76c2c0ffd224b9f88b1677d56f4e0adcae4ffd84
parent9e63a82dd13cdfc80c1f401cc99a682ab4b81542
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.

upstream-commit: 27b7652ef515bb4c694f79d657d2052c72b19536

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen-mapcache.c