mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
xen-mapcache: don't unmap locked entry during mapcache invalidation
When an IOREQ_TYPE_INVALIDATE is sent to QEMU, it invalidates all entry of the map cache even if it's locked. QEMU is not able to know that entry was invalidated, so when an IO access is requested a segfault occured. Signed-off-by: Julien Grall <julien.grall@citrix.com> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
This commit is contained in:
parent
09ab48ee6c
commit
852a7cec90
1 changed files with 3 additions and 0 deletions
|
@ -387,6 +387,9 @@ void xen_invalidate_map_cache(void)
|
|||
if (entry->vaddr_base == NULL) {
|
||||
continue;
|
||||
}
|
||||
if (entry->lock > 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (munmap(entry->vaddr_base, entry->size) != 0) {
|
||||
perror("unmap fails");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue