[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/9] exec: make address_space_cache_destroy idempote
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 4/9] exec: make address_space_cache_destroy idempotent |
Date: |
Fri, 27 Jan 2017 16:40:15 +0100 |
Clear cache->mr so that address_space_cache_destroy does nothing
the second time it is called.
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
exec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/exec.c b/exec.c
index f2bed92..5de15cf 100644
--- a/exec.c
+++ b/exec.c
@@ -3165,6 +3165,7 @@ void address_space_cache_destroy(MemoryRegionCache *cache)
xen_invalidate_map_cache_entry(cache->ptr);
}
memory_region_unref(cache->mr);
+ cache->mr = NULL;
}
/* Called from RCU critical section. This function has the same
--
1.8.3.1
- [Qemu-devel] [PATCH v3 0/9] virtio: use MemoryRegionCache for descriptors and rings, Paolo Bonzini, 2017/01/27
- [Qemu-devel] [PATCH 1/9] memory: make memory_listener_unregister idempotent, Paolo Bonzini, 2017/01/27
- [Qemu-devel] [PATCH 2/9] virtio: add virtio_*_phys_cached, Paolo Bonzini, 2017/01/27
- [Qemu-devel] [PATCH 3/9] virtio: use address_space_map/unmap to access descriptors, Paolo Bonzini, 2017/01/27
- [Qemu-devel] [PATCH 5/9] virtio: use MemoryRegionCache to access descriptors, Paolo Bonzini, 2017/01/27
- [Qemu-devel] [PATCH 7/9] virtio: use VRingMemoryRegionCaches for descriptor ring, Paolo Bonzini, 2017/01/27
- [Qemu-devel] [PATCH 4/9] exec: make address_space_cache_destroy idempotent,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 6/9] virtio: add MemoryListener to cache ring translations, Paolo Bonzini, 2017/01/27
- [Qemu-devel] [PATCH 8/9] virtio: check for vring setup in virtio_queue_update_used_idx, Paolo Bonzini, 2017/01/27
- [Qemu-devel] [PATCH 9/9] virtio: use VRingMemoryRegionCaches for avail and used rings, Paolo Bonzini, 2017/01/27