]> git.proxmox.com Git - qemu.git/commit
xen: fix qemu_map_cache with size != MCACHE_BUCKET_SIZE
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 19 May 2011 17:35:42 +0000 (18:35 +0100)
committerAlexander Graf <agraf@suse.de>
Sun, 19 Jun 2011 02:40:04 +0000 (04:40 +0200)
commitc13390cd384a9564e6dded127d01ef0627b6b1c5
treeb9d856d3219a4f0039b5b059f0214b4aac225fa2
parentb4dd7802cac7749de80ceadd622d4209fc31b507
xen: fix qemu_map_cache with size != MCACHE_BUCKET_SIZE

Fix the implementation of qemu_map_cache: correctly support size
arguments different from 0 or MCACHE_BUCKET_SIZE.
The new implementation supports locked mapcache entries with size
multiple of MCACHE_BUCKET_SIZE. qemu_invalidate_entry can correctly
find and unmap these "large" mapcache entries given that the virtual
address passed to qemu_invalidate_entry is the same returned by
qemu_map_cache when the locked mapcache entry was created.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
xen-mapcache.c