]> git.ipfire.org Git - thirdparty/qemu.git/commit
Fix invalidate if memory requested was not bucket aligned
authorFrediano Ziglio <frediano.ziglio@citrix.com>
Wed, 22 Aug 2012 10:17:04 +0000 (10:17 +0000)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 28 Aug 2012 06:50:02 +0000 (01:50 -0500)
commitc7e6d6b1158910460b395232faeb053593da2a96
treee29cddc99b0188e53001cbbd18854cefa4f2d5ef
parent886c62a3ff5aefca7b595a830ef2def5fedb636d
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>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
(cherry picked from commit 27b7652ef515bb4c694f79d657d2052c72b19536)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
xen-mapcache.c