Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8988343imu; Sat, 29 Dec 2018 08:00:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN78Vu0qRhcmmhTs6QPB6okO117WTV6fH2BtkRbXKHK3tH5SGrGkikSVW+itCj+u3qMHBiuh X-Received: by 2002:a17:902:b707:: with SMTP id d7mr30156193pls.29.1546099201153; Sat, 29 Dec 2018 08:00:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546099201; cv=none; d=google.com; s=arc-20160816; b=JZl+8Wd6n2+/NeEPaR3hsP1r3Kxj8qHBHPmQVyVOXjxPx00tchZ7p2jzRrVpLjI3/p 9lqSJwk+9TguV+nZPTSE2PdKy00yu4v0VnILt9dj2X9JsgxH9507PthXJRj8dY1va5zS NJwzVw7qstBcq6EIli8XHRFhfIWj9GSYad1XqloD/rGU0FHaY6GWsKT8sf3Nxs8VzOOO xVr+MqSbzTB04j0SxK9b0NCYsOcJTISceixZd5jf2G24BK/+xHUOwM+ao2MRPVyoA9wS j3/8HWLYrAoW6qOjMfsYZ/Yz5umwxL4LSDRodGRnr6Dp2lGQ140WDXKKlDizvXlZg93P Vl3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:to:from :date:dkim-signature; bh=82sywlYOAeV8UaIFIdJCf7vcII62g+c4ZPgXSn4ULUk=; b=VRvG26Y/MajcR5qgW96/g7glycrnQJ+gGwn9S8SWNz18rwemBQUpvzaCFdh5m1FmsT B6rEzkhkKhzOq9shbmnVb9ZCq+CPgulB2KIJGslXYZTOgZsjHi18RJbceimYtPcobZh4 UF3OyXRxPbXyZr8fkeHXB/7fjZPMHx3ROWTaogyZ4jXtOzfK4Uk9sRo+7BoASjcQRmLF ChFNnmRrzBJ76Jj8R45ZnsdptuqoY9XvehetgEdljlM4bnjoUBnUAYiyZpitpQZpDc6y +1UPUWUyvkSuIh9Dc4hMx+BkWr25nwVHwJdzt49gpxhYthCAwYblAAm7tySfvu9qTBNa IWIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mit.edu header.s=selector1 header.b=QDFruL5U; 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 e188si41757178pfa.16.2018.12.29.07.59.21; Sat, 29 Dec 2018 08:00:00 -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; dkim=pass header.i=@mit.edu header.s=selector1 header.b=QDFruL5U; 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 S1726908AbeL2ESp (ORCPT + 99 others); Fri, 28 Dec 2018 23:18:45 -0500 Received: from mail-eopbgr680112.outbound.protection.outlook.com ([40.107.68.112]:10223 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726011AbeL2ESp (ORCPT ); Fri, 28 Dec 2018 23:18:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=82sywlYOAeV8UaIFIdJCf7vcII62g+c4ZPgXSn4ULUk=; b=QDFruL5UTYveCEXxAczX3pBVczqTgiCQJ6BtTvjU0jPx9sFDiZFf3hEHRaQ4QtAtcXGBRwZAJ7xcMRzdo5t8cC8GbCoPm+CQhbbEZrYMDaq73cBfl/Us/W3zJxRc9bwcu2qS66NFgVJRgvLc4Nv7OPdiwVrnwf8MdkiiQmApeK0= Received: from BYAPR01CA0024.prod.exchangelabs.com (2603:10b6:a02:80::37) by DM6PR01MB4027.prod.exchangelabs.com (2603:10b6:5:2e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1471.20; Sat, 29 Dec 2018 03:14:24 +0000 Received: from DM3NAM03FT062.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::206) by BYAPR01CA0024.outlook.office365.com (2603:10b6:a02:80::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1471.20 via Frontend Transport; Sat, 29 Dec 2018 03:14:24 +0000 Authentication-Results: spf=pass (sender IP is 18.9.28.11) smtp.mailfrom=mit.edu; zytor.com; dkim=none (message not signed) header.d=none;zytor.com; dmarc=bestguesspass action=none header.from=mit.edu; Received-SPF: Pass (protection.outlook.com: domain of mit.edu designates 18.9.28.11 as permitted sender) receiver=protection.outlook.com; client-ip=18.9.28.11; helo=outgoing.mit.edu; Received: from outgoing.mit.edu (18.9.28.11) by DM3NAM03FT062.mail.protection.outlook.com (10.152.83.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1471.13 via Frontend Transport; Sat, 29 Dec 2018 03:14:22 +0000 Received: from callcc.thunk.org ([208.250.98.2]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id wBT3EGU5017675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 28 Dec 2018 22:14:18 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id C6BC27A4918; Fri, 28 Dec 2018 22:14:16 -0500 (EST) Date: Fri, 28 Dec 2018 22:14:16 -0500 From: "Theodore Y. Ts'o" To: Peter Maydell , Andreas Dilger , Florian Weimer , linux-fsdevel , Linux API , Ext4 Developers List , , , Arnd Bergmann , , , lkml - Kernel Mailing List , QEMU Developers , , Subject: Re: [Qemu-devel] d_off field in struct dirent and 32-on-64 emulation Message-ID: <20181229031416.GH5864@mit.edu> Mail-Followup-To: "Theodore Y. Ts'o" , Peter Maydell , Andreas Dilger , Florian Weimer , linux-fsdevel , Linux API , Ext4 Developers List , lucho@ionkov.net, libc-alpha@sourceware.org, Arnd Bergmann , ericvh@gmail.com, hpa@zytor.com, lkml - Kernel Mailing List , QEMU Developers , rminnich@sandia.gov, v9fs-developer@lists.sourceforge.net References: <87bm56vqg4.fsf@mid.deneb.enyo.de> <9C6A7D45-CF53-4C61-B5DD-12CA0D419972@dilger.ca> <20181229021157.GG5864@mit.edu> <20181229023721.GA9291@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20181229023721.GA9291@nautica> User-Agent: Mutt/1.10.1 (2018-07-13) X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:18.9.28.11;IPV:CAL;SCL:-1;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10019020)(136003)(39860400002)(346002)(376002)(396003)(2980300002)(54094003)(189003)(199004)(229853002)(356004)(97756001)(47776003)(23726003)(486006)(246002)(36756003)(1076003)(90966002)(88552002)(305945005)(50466002)(2906002)(75432002)(33656002)(8676002)(8936002)(7416002)(16586007)(26826003)(106466001)(446003)(11346002)(106002)(86362001)(316002)(336012)(36906005)(42186006)(786003)(52956003)(93886005)(2201001)(46406003)(103686004)(110136005)(126002)(186003)(26005)(76176011)(5660300001)(6266002)(478600001)(58126008)(6246003)(39060400002)(476003)(2616005)(18370500001)(921003)(1121003)(2101003)(83996005);DIR:OUT;SFP:1102;SCL:1;SRVR:DM6PR01MB4027;H:outgoing.mit.edu;FPR:;SPF:Pass;LANG:en;PTR:outgoing-auth-1.mit.edu;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM03FT062;1:nVbC1I4pg41P+YMuZgyj+aXsa45tqTSt93fmJk9oEkkTGUDPO9LT5ifnFNBlpTIof4uZkzq6o1EvpnEsTYujjH7wCZBIb5dqrA/lKZiR99T3+eTpGy0C/XyD4oQ02QEE X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ae6c5713-1fa5-456e-d120-08d66d3bbb9c X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600109)(711020)(4608076)(4709027)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060);SRVR:DM6PR01MB4027; X-Microsoft-Exchange-Diagnostics: 1;DM6PR01MB4027;3:da4dnnipEWxOFhw4/LLePD9NeebsLryNlugGBcSi+taneS8UlRkniQ+wz06CgYassXt1TFtci/wTtq4rn4sbpn9drlX8R7it+BohQLeYRaQZoSarPeGcZxL/vHnjGb0oKw2j3PCmkeP2Xnxrdg07reNzpSn2NdtjcxQllmCRba4AsB002WeJBMA+R3vXmXro72pbqLfWdE5NeW+WXLzS3u4tgckMyQqlmQ68MB6FKf4pdnQPPExEabm4sEylfFq1c8/IZ/8RX35BrTXla2fkP0TeX0lm69agdiPyUN9Oi3HFrsSFoFO4ZmGOjuDvtxLKgOIsz0bvh/WmkyfxrzvX2A==;25:+DNAdd5jrsh53fU1xVni4OLda9pxObIhbeEtauwrXDMspbO/26cJpM4VsbGzTccY6XmFAIaA//mBU0YgVfMQqhTFGHKn0e//7+3Iyybq4/hUw8VYjVB1TJzjBpQqGDvMFEAWvMWgogE5Z5+h9upZ/r+Fvr2psG7KoaJP6XowdEKpFeJxzIIhU91o0RrfLnfVpDB9bYmZ/Mixv8EFkCAkSq/J9d5hC8KkahxwGg8uG6WzExOSwjc2lLQkLlZmct92VxT61/enCdc+p2mgeifQpco9npwON9uZma+EKV8cw65VOFz9i9Gkpw2UGlmgccWS7dgVfsoJ0qMQYqa6etVIxQ==;31:NwDJheCF/sBicQ4CH6ig665jcuYzSSc8VV2w47r5ssql1WpG/my1IGmz8wqPzdmNpLFjBhqWiYMeOYS+42bWK5QEIiLu8pbz2W4f7tqB/Kn8n6HeAEc2TBIqw5LmbK27kz9MHuWngrdEhW7UYI50ubjNphj1WjXvFEMyEveXx7B5GBQCUUAXvppa/eDwYcOuOmx8/FabScC/cYN4PQd/sM9zFG5hsBECBhcgp7vRnoY= X-MS-TrafficTypeDiagnostic: DM6PR01MB4027: X-LD-Processed: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;DM6PR01MB4027;20:0MAUzAKQKDdKlIuv8NSb1763Dr+bPVjuLmg2T78cHULSDK2olSYMK3izzKtiE4qwo+4+NzVLEqO/HkwFV2BVssd+HJu+7DCoAql3auBWs0wGYa3kfOUxoh3TLPnRSaHqrt9/enaEPyCyI3ySByBnBYpFbtTHG3knjYTLMFJpFQntzmCl7JcqaEGRdOlrsg/3u3zTURgjz2FP1mtarsN+mfGt3T6/zSSWjyz/eSYFOm44M9y77/seZpFKoJdgnXuusEX8rNS0NRFSpiWI2Og+crWTr6DFEXyvaanymbiOJH3x9ignLh6/YMIQ89qlRbsOBwJ7tHj5hTvkQMEOLMfcHbfxYNJPE3IaJjHgAmeoADsmpodcP7NTzzQ2itv/loSzZ4eat464+4CwhTo4rm9uSB57sIYM8LvzsWyMxSQfK5qHlP6oHfCZdBFeA6qv/RxzZHcb3jee8bZiaYWFER805OpFTcpZvqSPOIGZEjukTaTCOYHF9UPm2RZjXf+dmYLJ;4:g0B8woMNIJrYJKZ72fMdfAfwr/HjMi5Ap80fCyxNg1cAecl42DZfN6PXnbUP9ZVe2H0I6cU/jK3QC/aj4cvNdViIVGhdfQGb48e7fVaBVEnRCngmk/fBuFgHBQMzMEWEDRdThZfI6v6G/jCGFxPCk14oTtL2NnxObZ8NCCkJp794dh8fvoe/yzVynYv48Uuc0dZNVlVC6ff3CEZHZ0C0joZMeWF9O3yKE/j84PtHKTfrrSePJOGyfBndFLmSJXGb+ookDT2ZG6n5BDxbiXmLXA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(2401047)(8121501046)(93006095)(93004095)(3231475)(944501520)(52105112)(3002001)(10201501046)(6041310)(20161123564045)(201703131423095)(201702281528075)(201702281529075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:DM6PR01MB4027;BCL:0;PCL:0;RULEID:;SRVR:DM6PR01MB4027; X-Forefront-PRVS: 09011458FC X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM6PR01MB4027;23:KpT1yO3tJN7loE7tKkh7V4owyxxfrAV/awhYnSCXs?= =?us-ascii?Q?QkKS7l8QhfbE2MJhI4LlURIjNpixf3A3WlLqEXa9YjiWgCqZjsDBdQiLVB67?= =?us-ascii?Q?YDdtEAGygvv+rYq3paDfwgnCoS+AE+E8kxkxzl7S3aLSlS1vFsPFjDSzYS9H?= =?us-ascii?Q?9DRJTUCBzqhP9QrrGiUU29rPJ26zx2yG6Dw01gkI5ay84RGYvzwF23xMKoEl?= =?us-ascii?Q?3o+RL2h5RwpKbNv93UnSrNWVizYza8t40OqU3JrFpv2fQw2rHTGxRyBAKiew?= =?us-ascii?Q?ltLacWfw9Vbk5qtthQv5yIHG8O4o+x6xSuCuUcFfPj9fmrRY7MaMBu4f2bsC?= =?us-ascii?Q?AjAsAEng96qWBe3S1s8vlUjsanhNgSbQBRoTxmF9xy5WhKyGDSEtRIXUWzF9?= =?us-ascii?Q?MbOum6IlPdC8zFq41eSdnS5Ze5+1XII4mYAtqqR37SJVtxVtajuAxVxVWxNJ?= =?us-ascii?Q?raGE0TzGJ61ig89JUfrPiBsmrYCePZc1cmK3mZB/XxUtXu0lrmADAjjNLD51?= =?us-ascii?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3QK1m6xOTN4Jblt4+RmhTUJWyL4AKQ35JGrT5Ne5dcU79mtTs7BHbaksYLLmi8tlk4zYDl97242zuWp5RB9N+e/zRxMpPTVqw== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: mit.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Dec 2018 03:14:22.8243 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ae6c5713-1fa5-456e-d120-08d66d3bbb9c X-MS-Exchange-CrossTenant-Id: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=64afd9ba-0ecf-4acf-bc36-935f6235ba8b;Ip=[18.9.28.11];Helo=[outgoing.mit.edu] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR01MB4027 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 29, 2018 at 03:37:21AM +0100, Dominique Martinet wrote: > > Are there going to be cases where a process or a thread will sometimes > > want the 64-bit interface, and sometimes want the 32-bit interface? > > Or is it always going to be one or the other? I wonder if we could > > simply add a new flag to the process personality(2) flags. > > That would likely work for qemu user, but the qemu system+9p case is > going to be more painful.. > More precisely, the 9p protocol does not plan for anything other than > 64bit offset so if the vfs needs to hand out a 32bit offset we'll need > to make a correspondance table between the 32bit offsets we hand off and > the 64bit ones to use; unless some flag can be passed at lopen to tell > the server to always hand out 32bit offsets for this directory... And if > we do that then 9p servers will need a way to use both APIs in parallel > for both types of directories. How about if we add a fcntl(2) mediated flag, which is tied to a struct file? Would that be more or less painful for 9p and qemu system+9p? - Ted