From patchwork Sat May 26 05:23:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keno Fischer X-Patchwork-Id: 920911 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="ewS3Xxj9"; 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 40tBP44ZZzz9s0y for ; Sat, 26 May 2018 15:23:51 +1000 (AEST) Received: from localhost ([::1]:47792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMRgC-0005v7-0V for incoming@patchwork.ozlabs.org; Sat, 26 May 2018 01:23:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMRft-0005up-Tq for qemu-devel@nongnu.org; Sat, 26 May 2018 01:23:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMRfq-0003xf-P2 for qemu-devel@nongnu.org; Sat, 26 May 2018 01:23:29 -0400 Received: from mail-qt0-x236.google.com ([2607:f8b0:400d:c0d::236]:43433) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fMRfq-0003xC-JU for qemu-devel@nongnu.org; Sat, 26 May 2018 01:23:26 -0400 Received: by mail-qt0-x236.google.com with SMTP id f13-v6so9169932qtp.10 for ; Fri, 25 May 2018 22:23:26 -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=nHS2x67ZvO5TpYq0QhzQTganoo6f14CTNA35nRnQIdM=; b=ewS3Xxj9bN6bCXx9KkXaeiJGRcvsv7+WzEeirM0S7Rf8dXFy3tl7kgSuZGFvD40NUB qrcPsNZw1xD6zZ+2fisWq1DZUKuBUAoX78kpzu2+gjkSCftj2SiiM45sl3K90gI26kZ2 c0N57XuqbevSjBhXRUIW5DkxMJfXG+iCY1nzu1FsBfgIku9YIBYzPVGM3cVbFchhIzJR 51FTPJVBdaRg4bRZzsHjSZJggef4n9/QhrYAfxqJeAExPWUo4AHVx/US+fY6a7mjRXKY pESxgPike5FHYstWEXFi6LrmvFcbG/MAP0IKw9o51/pG3sVno3uZuGihOehtfwKz+g3S KZLQ== 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=nHS2x67ZvO5TpYq0QhzQTganoo6f14CTNA35nRnQIdM=; b=JRTM4AoDAg+gjLzDzzph+DQmrxEy9qtdHQMuRxELzoLHYQoi39a1q3cjJicN6qxY+X rTGH523GSqXCUSuPs44lTu7mYUiblPneTj+3DW/GBdOOlQ9IsMZMLcfegUk/PMYplX2k VNA8ddseLI1rtFuXg3QtYc2qX1VQeF2N2TRiEzt+ltRTiWesoCl573xWFhA3BFwhDQ3t lpHPTfXawZ2pja+DKHv0i3SggXuHJDXTeHEz5yH5fTSk3KcWFk4xfeVGm67PAla2rkG+ ykumfLHPtuWMzh8klF2jbo0y9kJLUR92v2zyx9j8NJy870y85R+EBh+kV59sCsq+T5Km Zpug== X-Gm-Message-State: ALKqPwclLF49vTk0E8H+DvDBFCup1H3LxOfzX/XDGyzo/oGPUFgWLzb7 k/l0L63mFuP+hmBDBAmJKrV2sGYFXuQ= X-Google-Smtp-Source: ADUXVKJO7l30nwruDL9jYss/EJo8ZZgCpIlHILpvcfP0UJydqic1I+ucB5s0lrK0bY9jYLF33ktCxQ== X-Received: by 2002:a0c:9944:: with SMTP id i4-v6mr5026784qvd.192.1527312205231; Fri, 25 May 2018 22:23:25 -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 n128-v6sm17675166qkf.42.2018.05.25.22.23.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 May 2018 22:23:24 -0700 (PDT) From: keno@juliacomputing.com To: qemu-devel@nongnu.org Date: Sat, 26 May 2018 01:23:02 -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::236 Subject: [Qemu-devel] [PATCH 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" From: Keno Fischer Hi Greg, this series adds support for building the 9p code on Mac OS X. It seems to work decently well (tested by booting up a linux guest and building a copy of qemu on a 9p mount in the guest), but there are probably corner cases I got wrong (particular in the xattr support). Is there a stress test you recommend running for those corner cases? I've split the commits rather finely to hopefully ease review, of each individual concern I ran into while porting. Happy to merge commits back together if you would prefer. Lastly, I should remark that I'm not super familiar with the qemu code base, so please let me know if there's a better place for some of the code (particularly some of the compatibility code). Keno Fischer (13): 9p: linux: Fix a couple Linux assumptions 9p: Avoid warning if FS_IOC_GETVERSION is not defined 9p: Move a couple xattr functions to 9p-util 9p: darwin: Handle struct stat(fs) differences 9p: darwin: Handle struct dirent differences 9p: darwin: Address minor differences 9p: darwin: Properly translate AT_REMOVEDIR flag 9p: darwin: Ignore O_{NOATIME, DIRECT} 9p: darwin: Provide a compatibility definition for XATTR_SIZE_MAX 9p: darwin: *xattr_nofollow implementations 9p: darwin: Mark mknod as unsupported 9p: darwin: Provide a fallback implementation for utimensat 9p: darwin: configure: Allow VirtFS on Darwin Makefile.objs | 1 + configure | 23 ++++++---- fsdev/file-op-9p.h | 6 +++ hw/9pfs/9p-local.c | 84 +++++++++++++++++++++++------------- hw/9pfs/9p-proxy.c | 17 ++++++-- hw/9pfs/9p-synth.c | 6 +++ hw/9pfs/9p-util.c | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++- hw/9pfs/9p-util.h | 13 ++++++ hw/9pfs/9p-xattr.c | 33 -------------- hw/9pfs/9p.c | 79 +++++++++++++++++++++++++-------- include/qemu/xattr.h | 4 +- 11 files changed, 293 insertions(+), 93 deletions(-)