[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/5] virtio-blk: release reference to RAM's memo
From: |
liu ping fan |
Subject: |
Re: [Qemu-devel] [PATCH 4/5] virtio-blk: release reference to RAM's memoryRegion |
Date: |
Fri, 12 Apr 2013 12:48:12 +0800 |
On Thu, Apr 11, 2013 at 6:20 PM, Stefan Hajnoczi <address@hidden> wrote:
> On Mon, Apr 01, 2013 at 04:20:33PM +0800, Liu Ping Fan wrote:
>> From: Liu Ping Fan <address@hidden>
>>
>> virtio-blk will reference to RAM's memoryRegion when the req has been
>> done. So we can avoid to call bdrv_drain_all() when RAM hot unplug.
>
> How does the hot unplug operation work without bdrv_drain_all()? In
> other words, how do we safely remove a MemoryRegion and wait for it to
> become unreferenced?
>
bdrv_drain_all() forces the end of usage of memoryRegion. But we can
let the req done callback ( marks this req finish the end of usage of
mr) to release the refcnt of memoryRegion.
> Stefan
- Re: [Qemu-devel] [PATCH 2/5] hostmem: make hostmem global and RAM hotunplg safe, (continued)
[Qemu-devel] [PATCH 3/5] vring: use hostmem's RAM safe api, Liu Ping Fan, 2013/04/01
[Qemu-devel] [PATCH 4/5] virtio-blk: release reference to RAM's memoryRegion, Liu Ping Fan, 2013/04/01
[Qemu-devel] [PATCH 5/5] hostmem: init/finalize hostmem listener, Liu Ping Fan, 2013/04/01