From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33022) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjOJa-0000Ep-GG for qemu-devel@nongnu.org; Tue, 06 Oct 2015 05:13:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjOJX-0004Un-6r for qemu-devel@nongnu.org; Tue, 06 Oct 2015 05:13:42 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:43143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjOJW-0004RH-S2 for qemu-devel@nongnu.org; Tue, 06 Oct 2015 05:13:39 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 6 Oct 2015 10:13:34 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id C7ECC2190066 for ; Tue, 6 Oct 2015 10:13:28 +0100 (BST) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t969DT7Z32571478 for ; Tue, 6 Oct 2015 09:13:29 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t969DTaD016515 for ; Tue, 6 Oct 2015 03:13:29 -0600 Date: Tue, 6 Oct 2015 11:13:27 +0200 From: Greg Kurz Message-ID: <20151006111327.2bd7fedd@bahia.local> In-Reply-To: <20151006080914.GB19089@stefanha-thinkpad> References: <20151005090710.20420.26941.stgit@bahia.huguette.org> <20151005090722.20420.71571.stgit@bahia.huguette.org> <20151006080914.GB19089@stefanha-thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] virtio-9p: add unrealize handler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: "Michael S. Tsirkin" , aneesh.kumar@linux.vnet.ibm.com, qemu-devel@nongnu.org On Tue, 6 Oct 2015 09:09:14 +0100 Stefan Hajnoczi wrote: > On Mon, Oct 05, 2015 at 11:07:23AM +0200, Greg Kurz wrote: > > If the user tries to hot unplug a virtio-9p device, it seems to succeed but > > in fact: > > - virtio-9p coroutines thread pool and async queue are leaked > > - QEMU crashes in virtio_vmstate_change() if the user tries to live migrate > > > > This patch brings hot unplug support to virtio-9p-device. It fixes both > > above issues. > > > > Signed-off-by: Greg Kurz > > --- > > hw/9pfs/virtio-9p-device.c | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > What happens to in-flight I/O requests? We cannot assume that the guest > driver quiesces the device. > We can assume that the guest has unmounted the 9p share otherwise migration is blocked... is it possible we still have in-flight I/O requests in this scenario ?