Re: [Qemu-devel] [RFC v3 8/8] memory: add support for deleting HVA mapped MemoryRegion

2015-07-08 Thread Michael S. Tsirkin
On Wed, Jul 08, 2015 at 04:43:55PM +0200, Igor Mammedov wrote: > On Wed, 8 Jul 2015 12:58:55 +0300 > "Michael S. Tsirkin" wrote: > > > On Wed, Jul 08, 2015 at 11:46:48AM +0200, Igor Mammedov wrote: > > > Although memory_region_del_subregion() removes MemoryRegion > > > from current address space,

Re: [Qemu-devel] [RFC v3 8/8] memory: add support for deleting HVA mapped MemoryRegion

2015-07-08 Thread Igor Mammedov
On Wed, 8 Jul 2015 12:58:55 +0300 "Michael S. Tsirkin" wrote: > On Wed, Jul 08, 2015 at 11:46:48AM +0200, Igor Mammedov wrote: > > Although memory_region_del_subregion() removes MemoryRegion > > from current address space, it's possible that it's still > > in use/referenced until old address spac

[Qemu-devel] [RFC v3 8/8] memory: add support for deleting HVA mapped MemoryRegion

2015-07-08 Thread Igor Mammedov
Although memory_region_del_subregion() removes MemoryRegion from current address space, it's possible that it's still in use/referenced until old address space view is destroyed. That doesn't allow to unmap it from HVA region at the time of memory_region_del_subregion(). As a solution track HVA map

Re: [Qemu-devel] [RFC v3 8/8] memory: add support for deleting HVA mapped MemoryRegion

2015-07-08 Thread Michael S. Tsirkin
On Wed, Jul 08, 2015 at 11:46:48AM +0200, Igor Mammedov wrote: > Although memory_region_del_subregion() removes MemoryRegion > from current address space, it's possible that it's still > in use/referenced until old address space view is destroyed. > That doesn't allow to unmap it from HVA region at