Re: [Qemu-devel] [PATCH v2 6/6] virtio-blk: release reference to RAM's memoryRegion

2013-05-05 Thread liu ping fan
On Fri, May 3, 2013 at 6:09 PM, Stefan Hajnoczi wrote: > On Fri, May 03, 2013 at 10:45:22AM +0800, Liu Ping Fan wrote: >> From: Liu Ping Fan >> >> virtio-blk will unref RAM's memoryRegion when the io-req has been >> done. So we can avoid to call bdrv_drain_all() when RAM hot unplug. >> >> Signed-

Re: [Qemu-devel] [PATCH v2 6/6] virtio-blk: release reference to RAM's memoryRegion

2013-05-03 Thread Stefan Hajnoczi
On Fri, May 03, 2013 at 10:45:22AM +0800, Liu Ping Fan wrote: > From: Liu Ping Fan > > virtio-blk will unref RAM's memoryRegion when the io-req has been > done. So we can avoid to call bdrv_drain_all() when RAM hot unplug. > > Signed-off-by: Liu Ping Fan > --- > hw/block/dataplane/virtio-blk.c

[Qemu-devel] [PATCH v2 6/6] virtio-blk: release reference to RAM's memoryRegion

2013-05-02 Thread Liu Ping Fan
From: Liu Ping Fan virtio-blk will unref RAM's memoryRegion when the io-req has been done. So we can avoid to call bdrv_drain_all() when RAM hot unplug. Signed-off-by: Liu Ping Fan --- hw/block/dataplane/virtio-blk.c | 51 +- 1 files changed, 39 insertions