From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhgob-00086W-Qy for qemu-devel@nongnu.org; Thu, 01 Oct 2015 12:34:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zhgoa-0005AE-Vd for qemu-devel@nongnu.org; Thu, 01 Oct 2015 12:34:41 -0400 From: John Snow Date: Thu, 1 Oct 2015 12:34:30 -0400 Message-Id: <1443717273-5280-1-git-send-email-jsnow@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] block: prohibit migrations during tasks List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-block@nongnu.org Cc: kwolf@redhat.com, jcody@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, John Snow requires: [PATCH v2] migration: disallow migrate_add_blocker during migration We don't want to allow migrations during sensitive operations such as snapshots or mirroring. In conjunction with the previous patch, we will also prohibit the user from starting any block jobs while migrations are active. Questions: - Are there other actions that need to be guarded? - Are there actions here that are guarded, but should not be? - Is this worth doing at all? libvirt saves us in most cases. - What other cases besides a fully synchronized mirror might be valid in a migration workflow? Known open issues: - Does not guard against incoming migrations, only outgoing ones. Is this a problem? Are there valid use cases for running jobs on a machine before or during an incoming migration? John Snow (3): block: prohibit migration during BlockJobs block/mirror: allow migration after sync block: prohibit migration during transactions block/mirror.c | 2 ++ blockdev.c | 12 ++++++++++++ blockjob.c | 16 ++++++++++++++++ include/block/blockjob.h | 8 ++++++++ 4 files changed, 38 insertions(+) -- 2.4.3