From patchwork Sun Jun 17 00:56:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keno Fischer X-Patchwork-Id: 930426 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=juliacomputing.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=juliacomputing-com.20150623.gappssmtp.com header.i=@juliacomputing-com.20150623.gappssmtp.com header.b="tcro6kyz"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 417bST07N0z9s29 for ; Sun, 17 Jun 2018 10:58:14 +1000 (AEST) Received: from localhost ([::1]:53353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUM1C-0005iL-Cx for incoming@patchwork.ozlabs.org; Sat, 16 Jun 2018 20:58:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUM0R-0005h5-Lx for qemu-devel@nongnu.org; Sat, 16 Jun 2018 20:57:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUM0M-0003ES-R1 for qemu-devel@nongnu.org; Sat, 16 Jun 2018 20:57:23 -0400 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:45249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUM0M-0003EJ-LL for qemu-devel@nongnu.org; Sat, 16 Jun 2018 20:57:18 -0400 Received: by mail-qt0-x244.google.com with SMTP id i18-v6so12370259qtp.12 for ; Sat, 16 Jun 2018 17:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juliacomputing-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=uLy4EDJg4C+5j3z/EQFsCKAOFhBIw4kYGewayoGFQrs=; b=tcro6kyzVKN6D8nGckwRO7JUzR6bG1TSzqiQbpfxE32H6Zc7gMhZHyBKOx8NVE3v+r jKWvTwKkPxTG8KuNvYoKqqEIXXKFaYHsuj//tSUf+X38o1p/YeeTSk3CqUF2oEuGLHmN jO2TWSjbhmIoekUAEiIpSG57h7moKR/K+3M29Tqaul5W3Oc/m7PtZbV+X6yXm9d4kaSx 8J0gHlu9x4CUwxuwQmTFlBGs6ZncynxUpj2zjGpy2zq+ZD0MW40/poIhUMLDTg8bJhS2 l08CnBD6PmG92zLPAClIoHoCaoUsQk1JUvEQHnSPRa0qh2IIS5o6eYv7CP58j/19I7iV NvcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uLy4EDJg4C+5j3z/EQFsCKAOFhBIw4kYGewayoGFQrs=; b=eJLO7oS1t5Qq4B0DluJx0j0zsjruAUsaXXhn2p6pReykHfoHkwP5w/WFzyu+DnIKJZ JoM4u8AHFcHVKAKnFWLZFnjyFp6iRkisFQK+fa3RirAt6qaC9YPhwxcIiVq4IHu3Z6vx NMJ0DQvt9eUyfE3VQe9iDNolRsZLp7oNwvfGFBHOMuFvTnzrulhMunBFt/AIxxp32F1X kxnVmfGpHJQcgV9csQBv5cemilj5zIHyDer5gDx1O/9DiXZ+ezoGfLl7NrZtRPM97L29 SClDqu6FPXQsBZXfduHQUS3HXSwFic+0XA8H67k2dZRJQCt6iZ3s1l8k6kAuH0++OYE5 7A/w== X-Gm-Message-State: APt69E2a5f6egn37rcVXixzGx0mDGln43St3l9z99WKdEk/xdnuuDV5M Txo7y2bGz7V/klVtZGE4u9qsy+TsSdI= X-Google-Smtp-Source: ADUXVKI9dn8dCSeQWJiMjTnIyahX80fwCSL+8t/s3ucXhvNvBLJ3Ev5KlLhh5BS5sQywe5DxZX5MoA== X-Received: by 2002:a0c:b084:: with SMTP id o4-v6mr6325162qvc.133.1529197037537; Sat, 16 Jun 2018 17:57:17 -0700 (PDT) Received: from localhost.localdomain (96-86-104-61-static.hfc.comcastbusiness.net. [96.86.104.61]) by smtp.gmail.com with ESMTPSA id x21-v6sm7302186qto.2.2018.06.16.17.57.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 16 Jun 2018 17:57:16 -0700 (PDT) From: Keno Fischer To: qemu-devel@nongnu.org Date: Sat, 16 Jun 2018 20:56:44 -0400 Message-Id: X-Mailer: git-send-email 2.8.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::244 Subject: [Qemu-devel] [PATCH v3 00/13] 9p: Add support for Darwin X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Keno Fischer , groug@kaod.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Hi Greg, this is the rebased version of the patch series adding support for building the 9p server on Darwin. As you know a number of patches from the v2 version of this series are already landed. This is the remaining patches. Other than rebasing, there is onnly one minor change in patch 11. Keno Keno Fischer (13): 9p: linux: Fix a couple Linux assumptions 9p: Rename 9p-util -> 9p-util-linux 9p: darwin: Handle struct stat(fs) differences 9p: darwin: Handle struct dirent differences 9p: darwin: Explicitly cast comparisons of mode_t with -1 9p: darwin: Ignore O_{NOATIME, DIRECT} 9p: darwin: Provide a compatibility definition for XATTR_SIZE_MAX 9p: darwin: *xattr_nofollow implementations 9p: darwin: Compatibility for f/l*xattr 9p: darwin: Provide a fallback implementation for utimensat 9p: darwin: Implement compatibility for mknodat 9p: darwin: virtfs-proxy: Implement setuid code for darwin 9p: darwin: configure: Allow VirtFS on Darwin Makefile | 6 ++ Makefile.objs | 1 + configure | 22 +++-- fsdev/file-op-9p.h | 2 +- fsdev/virtfs-proxy-helper.c | 230 ++++++++++++++++++++++++++++---------------- hw/9pfs/9p-local.c | 25 +++-- hw/9pfs/9p-proxy.c | 17 +++- hw/9pfs/9p-synth.c | 4 + hw/9pfs/9p-util-darwin.c | 191 ++++++++++++++++++++++++++++++++++++ hw/9pfs/9p-util-linux.c | 70 ++++++++++++++ hw/9pfs/9p-util.c | 59 ------------ hw/9pfs/9p-util.h | 27 ++++++ hw/9pfs/9p.c | 71 ++++++++++++-- hw/9pfs/Makefile.objs | 4 +- include/qemu/statfs.h | 19 ++++ include/qemu/xattr.h | 4 +- 16 files changed, 579 insertions(+), 173 deletions(-) create mode 100644 hw/9pfs/9p-util-darwin.c create mode 100644 hw/9pfs/9p-util-linux.c delete mode 100644 hw/9pfs/9p-util.c create mode 100644 include/qemu/statfs.h