Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5972992ybe; Tue, 10 Sep 2019 11:33:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvunc8CbqPpdr3BgyG/AorggX/nLcNQ0/7iGjiiP1AVfYzAvlac7GfCvyxskd+8Sc2wvCR X-Received: by 2002:a17:906:5c52:: with SMTP id c18mr26464713ejr.156.1568140408995; Tue, 10 Sep 2019 11:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568140408; cv=none; d=google.com; s=arc-20160816; b=R2ooYMcpCcB2D6yLBVGE/jic7Pfko72M0jOnXwoTRz4g2d6dhAtSG9Q/t8ThZCB2Jc /KuhB66gDQNYoOlI8QI7M2IM6nAFyJFWv6aO2p0EdSUaBKMw+j3nalZ7JBiNmykcvrv0 YfdtqJCjdS54Y7tMnfxOBRL+9fGtTAc2xkydBYBot6KBV/E76wgjcffrc11J5rk4vz0b ktIAjkpyKUmIS8IcgH5NtW7fCU4GdX66k8PiGUHucdsFnmoGq9aj+P7VU/Ho/iy90iup RcXG+0Uw0S4+5ywGmYzm/3U4khsvZIaVoAj/Pyyldp93jkUrMQX4xRz/XlCP2Vsv+979 lc4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZJ6f6evLulSTzwGhBCj3kZcEdiowzmYjsdRcFXVIIsI=; b=a4UYduwh+Yz0TOKjEQHXAmgXSzPqkGlYAJNRnIF2o4RxWL6+Wu5V8J5rXn3DftlQX4 mOVLHN/a1vsVSICnZvIwD/PLiwEvQjJxmlljutevAt7HZXVIXiGO4zxUbMoXzmxVZyN8 U0eFkwadayNZ7Y6fFRq0NyMBxf7a44PVXRY8momDK/fphWh04dMKozwkLkBiuyOHbMco /tXriq6eS0X/nsnfc5uGkiO8sD3RrEtf0pHaLjP5l9phpr3dKvF3We7UOf+lmZLOfERj HYHb7BF5juETf+hjMty9RkwIZEPitfCjaaT5FRWZ9M9u0522XBf3o2DO1O+sPGe4awc6 wjgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k55si12419041edd.179.2019.09.10.11.32.57; Tue, 10 Sep 2019 11:33:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387859AbfIIQPI (ORCPT + 99 others); Mon, 9 Sep 2019 12:15:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54622 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726783AbfIIQPI (ORCPT ); Mon, 9 Sep 2019 12:15:08 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 866CB8D65C1; Mon, 9 Sep 2019 16:15:07 +0000 (UTC) Received: from localhost (ovpn-117-107.ams2.redhat.com [10.36.117.107]) by smtp.corp.redhat.com (Postfix) with ESMTP id 60D745B6A5; Mon, 9 Sep 2019 16:15:00 +0000 (UTC) Date: Mon, 9 Sep 2019 18:14:55 +0200 From: Stefan Hajnoczi To: piaojun Cc: Miklos Szeredi , "Michael S. Tsirkin" , linux-kernel@vger.kernel.org, virtio-fs@redhat.com, linux-fsdevel@vger.kernel.org, virtualization@lists.linux-foundation.org, Vivek Goyal Subject: Re: [Virtio-fs] [PATCH 00/18] virtiofs: Fix various races and cleanups round 1 Message-ID: <20190909161455.GG20875@stefanha-x1.localdomain> References: <20190905194859.16219-1-vgoyal@redhat.com> <20190906103613.GH5900@stefanha-x1.localdomain> <866a1469-2c4b-59ce-cf3f-32f65e861b99@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="w/VI3ydZO+RcZ3Ux" Content-Disposition: inline In-Reply-To: <866a1469-2c4b-59ce-cf3f-32f65e861b99@huawei.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.69]); Mon, 09 Sep 2019 16:15:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --w/VI3ydZO+RcZ3Ux Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 08, 2019 at 07:53:55PM +0800, piaojun wrote: >=20 >=20 > On 2019/9/6 19:52, Miklos Szeredi wrote: > > On Fri, Sep 6, 2019 at 12:36 PM Stefan Hajnoczi w= rote: > >> > >> On Fri, Sep 06, 2019 at 10:15:14AM +0200, Miklos Szeredi wrote: > >>> On Thu, Sep 5, 2019 at 9:49 PM Vivek Goyal wrote: > >>>> > >>>> Hi, > >>>> > >>>> Michael Tsirkin pointed out issues w.r.t various locking related TODO > >>>> items and races w.r.t device removal. > >>>> > >>>> In this first round of cleanups, I have taken care of most pressing > >>>> issues. > >>>> > >>>> These patches apply on top of following. > >>>> > >>>> git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#virt= iofs-v4 > >>>> > >>>> I have tested these patches with mount/umount and device removal usi= ng > >>>> qemu monitor. For example. > >>> > >>> Is device removal mandatory? Can't this be made a non-removable > >>> device? Is there a good reason why removing the virtio-fs device > >>> makes sense? > >> > >> Hot plugging and unplugging virtio PCI adapters is common. I'd very > >> much like removal to work from the beginning. > >=20 > > Can you give an example use case? >=20 > I think VirtFS migration need hot plugging, or it may cause QEMU crash > or some problems. Live migration is currently unsupported. Hot unplugging the virtio-fs device would allow the guest to live migrate successfully, so it's a useful feature to work around the missing live migration support. Is this what you mean? Stefan --w/VI3ydZO+RcZ3Ux Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl12en8ACgkQnKSrs4Gr c8j5Gwf+PMUBgG0DDiGxgIJ9i33+mYbozJP8G8CAlJzhYOlYXTssDTBCI4KVr4+L whMUfQBmjkS5vgoxrqktdwUX96bfRf1OgqwMe39jj82/GfFlyt3tF2kK/olvv7Ft 3IRp3H9IjDbPQecA9uTK8sMphB+wz9oEIFBbdQ3TjXaKxsoybJ8fpneKbTdcAv9B 0FVPgSuSCnTJfYZnMVaMO80HY9BDZet02NAKc1Pk1vcYoLrsjZkIjIHITI2FcKWs gw2scF509EL/gGlYnAIzTeZpdkvn24ukIsBUGOwSBggPDMC7/EiK9YXOm0DFJCvn m7UpoL8u4SB5YbzaQQBO1AAxjGbK4w== =wp+o -----END PGP SIGNATURE----- --w/VI3ydZO+RcZ3Ux--