Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5986726ybe; Tue, 10 Sep 2019 11:46:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWJv8M2OoeiUTbZoggmesf28eqfLMdfNFlXFe0uUa4XsyZqCvh+JUirjwdjrsWVFkSAaTq X-Received: by 2002:a17:906:7c4e:: with SMTP id g14mr26563261ejp.103.1568141203261; Tue, 10 Sep 2019 11:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141203; cv=none; d=google.com; s=arc-20160816; b=kJUi2Tg8KOV+CUxOqIkZv81X/xOAbHj9Rh0x/6iMP4v3Xxqi5YE+Vxy9zk5iVk7EAv SaM6ntFLHmibZ99wmDYXilUBnf4TEyRX3xA12TJrIRw+COOHrM5Kcq1znbqSPBq/UyOS LSJBsbV2G0x3JtC3GzmfXXxhE3r1A9aSlgI5eyujJFqGUd75pS3qWMa25E6d6s2RACO7 t+5jKV4hUL+iMOCtMWgOctDHb6mh9ewrnx3snUF9kDLyh1HHJqtXtlinwwBw1oXT8ErS Z2A34+OWklvyQWVh2U+jAg83RyiD6DqaLiICCWnepAV9vjwaY5jFtQvAprswilLDxh5T P4yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=bIG0jOFexkqtoEizrRpw3MbyNRPnLFPxHzC7MamyYvQ=; b=ykEsgSRVYLEho20Dow5/HK5BqDWiGdwHNXVTbvRKxVtaF4WPmWkx+W8OdVc/U+CX6/ pGHUvI12VS+4Ek+kDFz/OWdAzNP373zfAeh6t+YsIl7Joi25cXgrQMxqb3xssOfqG1wX JxGi8miRQ9GwsqBwb7A92xhxzITZHUHtkx2z5S7UiXgS0HyPBNsqQpalt1Kl4NOj/qiq DoxkWm3AbhxGv4uj09WXG30F0FhSodzYzZ51+N2pVgbtVHn0Bbrm+Y53IC4/b23c2YuZ e9uneYK1NkHOVQxjMtIUDjDQhX7ruPahWF9ahx7/TjKFtZE48zHVR5PfnjA5lqaa8toP po2w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x47si11234074eda.396.2019.09.10.11.46.19; Tue, 10 Sep 2019 11:46:43 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390240AbfIIXwT (ORCPT + 99 others); Mon, 9 Sep 2019 19:52:19 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2254 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730370AbfIIXwT (ORCPT ); Mon, 9 Sep 2019 19:52:19 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 16035839126179043B18; Tue, 10 Sep 2019 07:52:17 +0800 (CST) Received: from [10.177.253.249] (10.177.253.249) by smtp.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Tue, 10 Sep 2019 07:52:15 +0800 Subject: Re: [Virtio-fs] [PATCH 00/18] virtiofs: Fix various races and cleanups round 1 To: Stefan Hajnoczi References: <20190905194859.16219-1-vgoyal@redhat.com> <20190906103613.GH5900@stefanha-x1.localdomain> <866a1469-2c4b-59ce-cf3f-32f65e861b99@huawei.com> <20190909161455.GG20875@stefanha-x1.localdomain> CC: Miklos Szeredi , "Michael S. Tsirkin" , , , , , Vivek Goyal From: piaojun Message-ID: <5D76E5AE.3090006@huawei.com> Date: Tue, 10 Sep 2019 07:52:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20190909161455.GG20875@stefanha-x1.localdomain> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.253.249] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/10 0:14, Stefan Hajnoczi wrote: > On Sun, Sep 08, 2019 at 07:53:55PM +0800, piaojun wrote: >> >> >> On 2019/9/6 19:52, Miklos Szeredi wrote: >>> On Fri, Sep 6, 2019 at 12:36 PM Stefan Hajnoczi wrote: >>>> >>>> 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#virtiofs-v4 >>>>>> >>>>>> I have tested these patches with mount/umount and device removal using >>>>>> 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. >>> >>> Can you give an example use case? >> >> 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? Agreed, migration support is necessary for user, and hot plugging/unplugging is also common for virtio device. Jun