From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dhT6H-0007XW-LU for qemu-devel@nongnu.org; Tue, 15 Aug 2017 00:05:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dhT6G-00054k-T0 for qemu-devel@nongnu.org; Tue, 15 Aug 2017 00:05:05 -0400 From: Fam Zheng Date: Tue, 15 Aug 2017 12:04:50 +0800 Message-Id: <20170815040454.4223-1-famz@redhat.com> Subject: [Qemu-devel] [PATCH for-2.10 0/4] block: Fix non-shared storage migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , qemu-block@nongnu.org, Eric Blake , Kevin Wolf , Max Reitz "nbd-server-add -w" doesn't work when we are in "-incoming defer" state: (qemu) nbd_server_add -w drive-virtio-disk0 Block node is read-only Two problems are faced: - nbd_export_new() calls bdrv_invalidate_cache() too late. - bdrv_invalidate_cache() restores qdev permission (which are temporarily masked by BlockBackend.disable_perm during INMIGRATE) too early. Fix both, and add a regression iotest. Fam Zheng (3): stubs: Add vm state change handler stubs block-backend: Defer shared_perm tightening migration completion iotests: Add non-shared storage migration case 192 Kevin Wolf (1): nbd: Fix order of bdrv_set_perm and bdrv_invalidate_cache block/block-backend.c | 37 ++++++++++++++++++++++++++ nbd/server.c | 20 +++++++------- stubs/Makefile.objs | 1 + stubs/change-state-handler.c | 14 ++++++++++ tests/qemu-iotests/192 | 63 ++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/192.out | 7 +++++ tests/qemu-iotests/group | 1 + 7 files changed, 134 insertions(+), 9 deletions(-) create mode 100644 stubs/change-state-handler.c create mode 100755 tests/qemu-iotests/192 create mode 100644 tests/qemu-iotests/192.out -- 2.13.4