From patchwork Wed Jun 26 18:57:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhijian Li (Fujitsu)\" via" X-Patchwork-Id: 11018469 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A9766112C for ; Wed, 26 Jun 2019 20:55:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B5A728716 for ; Wed, 26 Jun 2019 20:55:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F37428747; Wed, 26 Jun 2019 20:55:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3DF7128716 for ; Wed, 26 Jun 2019 20:55:45 +0000 (UTC) Received: from localhost ([::1]:44866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgExE-0006du-Gw for patchwork-qemu-devel@patchwork.kernel.org; Wed, 26 Jun 2019 16:55:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44645) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgErE-0002ji-Ff for qemu-devel@nongnu.org; Wed, 26 Jun 2019 16:49:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgEr6-0004j1-OG for qemu-devel@nongnu.org; Wed, 26 Jun 2019 16:49:28 -0400 Received: from lizzy.crudebyte.com ([91.194.90.13]:47113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hgEqx-0003yc-SE for qemu-devel@nongnu.org; Wed, 26 Jun 2019 16:49:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Subject:Date:Cc:To:From:Message-Id:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Btj2NNaVSNMjsXpEYNmXQm1oG+b8mCN5x+DYgs/ykg8=; b=Lu9VNHgW8pnZM1Pp4lh6bbUxpI Lz3xtabwT3LD6BefeFiPGgtNSSvXtjuFEYK0TXw2j/UAyficiMfPwyf5gwvObbh835tuK/AyB9qkg G2aX00F7cpsvbHm+vA53MKTLCw+5yKFHy8K1aIFoa1fBadq1QWJ3slYfkXs+FQHQNMHZdwKiV0mib Nh5fZymZguY/9AMSuAkBDfORjmK6Df3Iel9kyPbGb58uhqvWayFqllrU95ud0IRtrhvFNSIvSqcnc Oku3r8ExX53c1WW6wlKTvNlEpL0BNBqkOONx19n2UF+kD5E7OcXIw7ATe668s/P6xgEyOzWTk7bAd 5wEKxjqg==; Message-Id: To: qemu-devel@nongnu.org Date: Wed, 26 Jun 2019 20:57:29 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 91.194.90.13 Subject: [Qemu-devel] [PATCH v4 0/5] 9p: Fix file ID collisions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christian Schoenebeck via Qemu-devel From: "Zhijian Li (Fujitsu)\" via" Reply-To: Christian Schoenebeck Cc: =?unknown-8bit?q?=22Daniel_P=2E_Berrang=C3=A9=22_=3Cberrange=40redhat=2E?= =?unknown-8bit?q?com=3E=2C_Greg_Kurz_=3Cgroug=40kaod=2Eorg=3E=2C_Antonios_M?= =?unknown-8bit?q?otakis_=3Cantonios=2Emotakis=40huawei=2Ecom=3E?= Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is v4 of a proposed patch set for fixing file ID collisions with 9pfs. v3->v4: * Rebased to latest git master head. * Splitted Antonios' patch set to its original 4 individual patches. (was merged previously as only 1 patch). * Addressed discussed issues directly on Antonios' patches (was a separate patch before). * Added virtfs command line option "remap_inodes": Unless this option is not enabled, no inode remapping is performed at all, the user just gets an error message when trying to use more than 1 device per export. * Dropped persistency feature of QIDs beyond reboots. * Dropped disputed "vii" feature. Greg, please check if I am doing anything superfluous in patch 3 regarding the new command line parameter "remap_inodes". Daniel, I also have a libvirt patch for this new "remap_inodes" command line parameter, but I guess I wait for this qemu patch set to get through. Christian Schoenebeck (5): 9p: unsigned type for type, version, path 9p: Treat multiple devices on one export as an error 9p: Added virtfs option "remap_inodes" 9p: stat_to_qid: implement slow path 9p: Use variable length suffixes for inode remapping fsdev/9p-marshal.h | 6 +- fsdev/file-op-9p.h | 1 + fsdev/qemu-fsdev-opts.c | 7 +- fsdev/qemu-fsdev.c | 6 + hw/9pfs/9p.c | 448 +++++++++++++++++++++++++++++++++++++++++++++--- hw/9pfs/9p.h | 83 +++++++++ hw/9pfs/trace-events | 14 +- qemu-options.hx | 17 +- vl.c | 3 + 9 files changed, 550 insertions(+), 35 deletions(-)