Re: [Qemu-block] [Qemu-devel] [PULL 00/29] Block layer patches

2018-01-25 Thread Peter Maydell
On 23 January 2018 at 14:01, Kevin Wolf wrote: > The following changes since commit ee86981bda9ecd40c8daf81b7307b1d2aff68174: > > migration: Revert postcopy-blocktime commit set (2018-01-23 10:08:05 +) > > are available in the git repository at: > > git://repo.or.cz/qemu/kevin.git tags/for

Re: [Qemu-block] [Qemu-devel] [PATCH] block/mirror: fix fail to cancel when VM has heavy BLK IO

2018-01-25 Thread Liang Li
On Wed, Jan 24, 2018 at 01:16:39PM -0600, Eric Blake wrote: > On 01/24/2018 12:17 AM, Liang Li wrote: > > We found that when doing drive mirror to a low speed shared storage, > > if there was heavy BLK IO write workload in VM after the 'ready' event, > > drive mirror block job can't be canceled imm

Re: [Qemu-block] [RFC] block-backend: fix double inc/dec inflight requests number

2018-01-25 Thread Stefan Hajnoczi
On Mon, Jan 22, 2018 at 05:45:49PM +0300, Vladimir Sementsov-Ogievskiy wrote: > Is it a bug or a feature? Why do we call inc/dec twice for read/write? > We don't do this for flush and discard.. It's non-obvious and I asked Paolo the same question previously. > -bdrv_inc_in_flight(bs); > - >

Re: [Qemu-block] (v2. forward to qemu )-Panic with ext4, nbd, qemu-img, block

2018-01-25 Thread Stefan Hajnoczi
On Mon, Jan 22, 2018 at 10:06:26AM +0800, Hongzhi, Song wrote: > Hello, > > I create a virtual disk-image using qemu-img. > > And then I use /dev/nbd to map the image. > > I mount the /dev/nbd to a local dir with ext4-format > > Finally, I have some trouble about ext4-filesystem and block devic

Re: [Qemu-block] [Qemu-devel] [PATCH] block/mirror: fix fail to cancel when VM has heavy BLK IO

2018-01-25 Thread Eric Blake
On 01/24/2018 10:59 PM, Liang Li wrote: >> >> There's ongoing work on adding async mirroring; this may be a better >> solution to the issue you are seeing. >> >> https://lists.gnu.org/archive/html/qemu-devel/2018-01/msg05419.html >> > Hi Eric, > > Thinks for your information, I didn't know libvirt

[Qemu-block] [PATCH] hmp: Add nbd_server_remove to mirror QMP command

2018-01-25 Thread Eric Blake
Since everything else about the nbd-server-* QMP commands is accessible from HMP, we might as well make removing an export available as well. For now, I went with a bool flag rather than a mode string for choosing between safe (default) and hard modes. Signed-off-by: Eric Blake --- Based-on: <2

Re: [Qemu-block] [Qemu-devel] (v2. forward to qemu )-Panic with ext4, nbd, qemu-img, block

2018-01-25 Thread Eric Blake
On 01/21/2018 08:06 PM, Hongzhi, Song wrote: > Hello, > > I create a virtual disk-image using qemu-img. > > And then I use /dev/nbd to map the image. > > I mount the /dev/nbd to a local dir with ext4-format > > Finally, I have some trouble about ext4-filesystem and block device, > with using de

Re: [Qemu-block] [Qemu-devel] [PATCH] hmp: Add nbd_server_remove to mirror QMP command

2018-01-25 Thread Eric Blake
On 01/25/2018 08:45 AM, Eric Blake wrote: > Since everything else about the nbd-server-* QMP commands is > accessible from HMP, we might as well make removing an export > available as well. For now, I went with a bool flag rather > than a mode string for choosing between safe (default) and > hard

Re: [Qemu-block] [PATCH v2] qemu-io: fix EOF Ctrl-D handling in qemu-io readline code

2018-01-25 Thread Daniel P . Berrangé
ping, does any block maintainer want to queue this one ? On Fri, Dec 08, 2017 at 01:34:16PM +, Daniel P. Berrange wrote: > qemu-io puts the TTY into non-canonical mode, which means no EOF processing is > done and thus getchar() will never return the EOF constant. Instead we have to > query the

Re: [Qemu-block] [Qemu-devel] [PATCH] block/mirror: fix fail to cancel when VM has heavy BLK IO

2018-01-25 Thread Liang Li
On Thu, Jan 25, 2018 at 08:48:22AM -0600, Eric Blake wrote: > On 01/24/2018 10:59 PM, Liang Li wrote: > >> > >> There's ongoing work on adding async mirroring; this may be a better > >> solution to the issue you are seeing. > >> > >> https://lists.gnu.org/archive/html/qemu-devel/2018-01/msg05419.ht