Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3983864imj; Tue, 12 Feb 2019 07:57:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IYlhO7dPrmVqobY2t2s+ylA4zbKQ4jK+bqOad0UdjQAxUqdX8ga1GBk+48H3L45MdeQ/582 X-Received: by 2002:a63:534c:: with SMTP id t12mr4199492pgl.205.1549987045711; Tue, 12 Feb 2019 07:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549987045; cv=none; d=google.com; s=arc-20160816; b=hFvUbrsb708vqhWeJ1sf3sE1eyseQBr2DxmCFXUkJWMQc9+f5nw1JwJLdykJ4TOUzp SBWaG7NMVHGCqxIWnPZQDOCyjJa7R3j2M0yuHP90JrWveLyNVebCDONf6soUR4ROcUP4 ehIwU8zjMc1uFQAimHAI3IY6axkdoL/f/fZ06MbkPw/PnkwulhsvhHrWjyup3D04ffq0 1HEW1VUbZbU1deXshwyIY/weZdUj1YqqsGWNp3Q5UFeVS9FRuBnmlxY8PE7fCgXvIuIz 7PjsilhGe5bTjp2+rWRZoUgRTsUI9Nq3dn/BEzmQNN6/TtvrF4usOP9HbdIWMMxskL7/ EeIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:mime-version:date:references :in-reply-to:subject:cc:to:from; bh=7ByWJLJUN9FxXESF9LNEnhHx6RaX22lObBbmKgrONkw=; b=jdB7ZpLhVC5a71HvJbbip6SbNOJY8C/eDCuxsqQJItnpfHJk6NywOQzxjai/KZoSmQ 7rBzmxSaQghvHgF5Ayff+h46nv4ZcrTDvnIYbtImOjgusctgirk8W/EIXw0wooxxeGyv KY/dXkjQRB4v505sFOfRagQXrID+lgcfAe5BQfO4CBwCo4krk0pmqPzYXvJkSNnenjq6 IUh1QCvzjPdyym1ZsO5XicSXrH6HSmPTmiU9lC8/u5/t3ZHzmlCccVsfO0U4xHFetAE0 sOltXeT0ddvUpWqFrbacSDFy4vo14ymjE6vqC9R3tz5soSsMTcO2SbxUk7xiowMzyXY3 0wtQ== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t11si3291580pgp.209.2019.02.12.07.57.08; Tue, 12 Feb 2019 07:57:25 -0800 (PST) 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730567AbfBLP5B (ORCPT + 99 others); Tue, 12 Feb 2019 10:57:01 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54798 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728347AbfBLP5A (ORCPT ); Tue, 12 Feb 2019 10:57:00 -0500 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1CFs9Aj064059 for ; Tue, 12 Feb 2019 10:56:59 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qm0rssgha-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 12 Feb 2019 10:56:58 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 12 Feb 2019 15:56:56 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 12 Feb 2019 15:56:53 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1CFuqa37405858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Feb 2019 15:56:53 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DA948AE053; Tue, 12 Feb 2019 15:56:52 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 829DBAE04D; Tue, 12 Feb 2019 15:56:50 +0000 (GMT) Received: from skywalker.linux.ibm.com (unknown [9.85.69.204]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 12 Feb 2019 15:56:50 +0000 (GMT) X-Mailer: emacs 26.1 (via feedmail 11-beta-1 I) From: "Aneesh Kumar K.V" To: Vivek Goyal , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: vgoyal@redhat.com, miklos@szeredi.hu, stefanha@redhat.com, dgilbert@redhat.com, sweil@redhat.com, swhiteho@redhat.com Subject: Re: [PATCH 00/52] [RFC] virtio-fs: shared file system for virtual machines In-Reply-To: <20181210171318.16998-1-vgoyal@redhat.com> References: <20181210171318.16998-1-vgoyal@redhat.com> Date: Tue, 12 Feb 2019 21:26:48 +0530 MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 x-cbid: 19021215-0012-0000-0000-000002F4DD0B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19021215-0013-0000-0000-0000212C52C7 Message-Id: <871s4dc85b.fsf@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-12_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=973 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902120113 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vivek Goyal writes: > Hi, > > Here are RFC patches for virtio-fs. Looking for feedback on this approach. > > These patches should apply on top of 4.20-rc5. We have also put code for > various components here. > > https://gitlab.com/virtio-fs > > Problem Description > =================== > We want to be able to take a directory tree on the host and share it with > guest[s]. Our goal is to be able to do it in a fast, consistent and secure > manner. Our primary use case is kata containers, but it should be usable in > other scenarios as well. > > Containers may rely on local file system semantics for shared volumes, > read-write mounts that multiple containers access simultaneously. File > system changes must be visible to other containers with the same consistency > expected of a local file system, including mmap MAP_SHARED. > > Existing Solutions > ================== > We looked at existing solutions and virtio-9p already provides basic shared > file system functionality although does not offer local file system semantics, > causing some workloads and test suites to fail. Can you elaborate on this? Is this with 9p2000.L ? We did quiet a lot of work to make sure posix test suite pass on 9p file system. Also was the mount option with cache=loose? -aneesh