Message ID | 20221219102022.2167736-16-bin.meng@windriver.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 70018C4332F for <qemu-devel@archiver.kernel.org>; Mon, 19 Dec 2022 10:30:10 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1p7DHI-0003Jz-8R; Mon, 19 Dec 2022 05:21:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <prvs=9352c01a6b=bin.meng@windriver.com>) id 1p7DH4-0003Ej-BH for qemu-devel@nongnu.org; Mon, 19 Dec 2022 05:21:37 -0500 Received: from mx0b-0064b401.pphosted.com ([205.220.178.238]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <prvs=9352c01a6b=bin.meng@windriver.com>) id 1p7DH2-0007WF-Qb for qemu-devel@nongnu.org; Mon, 19 Dec 2022 05:21:34 -0500 Received: from pps.filterd (m0250812.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BJ9mDb8010303; Mon, 19 Dec 2022 10:21:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-type : content-transfer-encoding : mime-version; s=PPS06212021; bh=xlnfjBVVSlTgt8rLyj8y5aIPzqOjQBeoW/Whh3osAzk=; b=EIAMbFKk3f+RKuUf0I4pAwLNYSqPiYpy4G5SP/ahACpqVTLS7HSbAkJgFFwk38aN0oxM PtZm34idRlC4glLVuukTz0d7aj0Ie3fRUC4gbKCcNcDBwAyvQWGVpkDAaoFcID00Oo/r a8b60BaU5R3ZlhRtb7GEEkSsaWb9U2ZjM+Gev5lKkgEwzFG5XjjM/P2ku8TzN7zIRXAg L0IjMeuloRimUz2ahyd1ONLh47F8EGcoeMj18+YUjrjmNdaLe4b2P6D3whzFfTx20GSS KeL8PfwjZmzlXZoP3eDwb4zTYxHnwGznzL1nF+No3Z3li4eel73Q7wl72itVses3H3lF ow== Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3mh4r99b7g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 19 Dec 2022 10:21:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BTd2mSHgVjnuWm1tFqHT2Qm0s00Lx2Hd7y10Kr2EWN8qF4NDPKCqHvA4p5obH762MCfMZOdCUwIldMcxIxVXDJCf8+Qf9eRvqtBvdCKiDSijpfxhxG0jNSAIdwGpsKnICJg2HW/ToLV9+9tjCvKv5pNls+nZMJ2Fr80ebQMx48zjYiJ8zE1WtvOZeV7/EtOZQZT55+Zzc5UZnH5gml+Y+PThHcbUZCQ5Z86sBYEpYE2X3bTF2fDKLsbH74XNh0CUd74ynvlmfDOrGaY5JgQhJIp5CcQoUktLEc7eQX0pePQ08q8EJlwCjjT+YNC3Ah8WjrGwTyJ7Gb5Bbu0AmwmJeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xlnfjBVVSlTgt8rLyj8y5aIPzqOjQBeoW/Whh3osAzk=; b=ch0z6GWTxsz+r3hbmHOmCOfomTQ2evrtykr3M448b6aonPjCJyuiLP5TntMjQNWNdVtHgkTa3/COVX+8ZLTgyl8YPywxq2kIrw3J6pP2dLIq6Rz7Nh2utP9fuqXfE5u+971XdBa1en6LQzcK/U5fP6jvDK9ZLaJYbJKjEx/hiWxCM/zZDPz6N5tBfD+ynOs4qoOv6ojDtb7cAlgUWXet8NlEaeIarF373RXx8h++bGgFJN+2VN3gS124CHrFBX2eQirwwssKI0ESSxMAh0PSnbBub3X5SgYwi99CUa6XPFzRNKGoHY39XijfwFWRRJdrn9eRAy50BkldIC1ZYEQcpg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none Received: from DM4PR11MB5358.namprd11.prod.outlook.com (2603:10b6:5:395::7) by CH3PR11MB7201.namprd11.prod.outlook.com (2603:10b6:610:143::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Mon, 19 Dec 2022 10:21:16 +0000 Received: from DM4PR11MB5358.namprd11.prod.outlook.com ([fe80::8e5e:71da:1e29:bc15]) by DM4PR11MB5358.namprd11.prod.outlook.com ([fe80::8e5e:71da:1e29:bc15%5]) with mapi id 15.20.5880.019; Mon, 19 Dec 2022 10:21:15 +0000 From: Bin Meng <bin.meng@windriver.com> To: Greg Kurz <groug@kaod.org>, Christian Schoenebeck <qemu_oss@crudebyte.com>, qemu-devel@nongnu.org Cc: Guohuai Shi <guohuai.shi@windriver.com>, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= <philmd@linaro.org> Subject: [PATCH v3 15/17] hw/9pfs: Update synth fs driver for Windows Date: Mon, 19 Dec 2022 18:20:19 +0800 Message-Id: <20221219102022.2167736-16-bin.meng@windriver.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221219102022.2167736-1-bin.meng@windriver.com> References: <20221219102022.2167736-1-bin.meng@windriver.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SL2P216CA0158.KORP216.PROD.OUTLOOK.COM (2603:1096:101:35::14) To DM4PR11MB5358.namprd11.prod.outlook.com (2603:10b6:5:395::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB5358:EE_|CH3PR11MB7201:EE_ X-MS-Office365-Filtering-Correlation-Id: 69fb60c4-a32d-4390-751a-08dae1aac2d6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: a0B0xh10O/3sfCcX4vd0wTulY8Y2usvGQeTJtpGRVUm96r7+ycCxCzVyaCclU0FaCyz6SWvum0mR9yzQEPvi/Jd6iudCNp7kbzrRWsmqtsfhwFaKwXQ9JQK0fcvYFQ4A3QcjB0bEqXr8FJDJ/JiC/NbXCwhiSX3RBp6xPlB0MP/PAdRoEpmHyVdsbDVW+cf7DDosCfnW/6IScirn9Ecuqka/Oh7JruxM52JSyurY7orZ497wDLX7+ymotYGPislA/JOoWamFikK5YGmbj9/v4K4sYwc6baju9fClRZCfTbIYj54+7q3ZV9VTB55Fthcgd2eEkTDvioFBnLJ5Pt1Wa7G0eEzQQ5jOi88z/fwfgDphdlJSs6XsDYpL9vdh1OIyWwlKPulltcdEFNC9mbu/cs8CMB4KpDCUigo3nh1KzMlzkp+9re8YqeTQ61GlKK7nJGR1EHnULAPnthSzI44X70sl0SNfWJq5Y+u4BU3GoPwa68PQrR8Zi1ylJ6mKoVDN0tXlczAi/34H6r5ZsUsmUjx6Wuy7PojoIMmFplND9gXitkmzzB6lY2iJIB2cg3vs+HZUdO3XAFzn4A0v0Ad+6AyTc7IJrkurt9Csgt9johWe9b5p306DpWLTlEd03TVnNu/v5vS2vEkoYGMHrHoN0e507KoSbfiRZFBmrQkIcSE3Flkk0SNUwNiLr1dN86/41ufNghMkegFowdb/qzD+Pg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5358.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(376002)(39850400004)(346002)(366004)(396003)(136003)(451199015)(478600001)(41300700001)(38100700002)(38350700002)(26005)(186003)(52116002)(1076003)(2616005)(6506007)(36756003)(86362001)(6486002)(4326008)(2906002)(66476007)(66946007)(6512007)(66556008)(8676002)(5660300002)(8936002)(44832011)(83380400001)(316002)(110136005)(54906003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?mKTEo8O+2rsiDs8YlDRFt3Ir4jn7?= =?utf-8?q?QR8J8cSHFKGMi01ihWTMA/XtrlhSs+nGIBwJfJn7Vl6tgghPG3eQkH8srhkInzP20?= =?utf-8?q?emWi/1a1mQE1E9+G2swE2wGrZcB9Crya+JaQdJD6Nn6B9MACgbYhiHxhnrR2O/q7I?= =?utf-8?q?Ee6OsQX0dWVrri09sDYAFoJRCdV0YLGJQ3h7UV10Bh0cHqHH9sRBpBPRDJtWN4jVc?= =?utf-8?q?vBaNDS5h/jo3XlAWy94WeUaY7yC7HLUdqEKzsefRs8C5ObqKP4WjGIGCToHfiQc3S?= =?utf-8?q?Q+T/Gzwl6q9K+7xysZ7KE1hDXqYxq5fTZMqiiXRmrnWHNQ9aGG4siyDvBE9rodACT?= =?utf-8?q?ktqoJ0riMrpdWpE3PqBeM6Xr8ErtBUr9pXxKvSw/TaQhTzhuKsQtpgfBmE5+lqPeL?= =?utf-8?q?Y4e7FMAjSzG/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sIgcwA0J2ackp2wvoGfN44oKs7kb6Fq6bkyPcMJ96yUsrk4M?= =?utf-8?q?rv3iS3F91kzgPzSeBlbiFDfUrWBDsuWmC7+7g/bJ4qHo5C2KH9MFWiI16dlmnkqjd?= =?utf-8?q?FQtLZBSL4E/6Vzdn+qrxWkYaAl0A0blFb7ALhn//jutCfRP0XXJqzMWb0mxvL/p91?= =?utf-8?q?Mi7uRinMtIzqWRaHte9aZpYOlNxMOuWXYDQIac7bz2tyamnLivNwtCyo7Zn0MiQFB?= =?utf-8?q?sWJsP86YeSXP?= X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69fb60c4-a32d-4390-751a-08dae1aac2d6 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5358.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2022 10:21:15.8526 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zhoFJSSxVC1HsIhywlr8c+4lgvDjlz/Z9SNlSTSMdzKMIN8FL/UMt3+brTa+//Vfa4sD8Gs+9eT2x/8nvWLeZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7201 X-Proofpoint-GUID: i421xtYQpW9JGH3Zt6_YJS8G0ZujSorJ X-Proofpoint-ORIG-GUID: i421xtYQpW9JGH3Zt6_YJS8G0ZujSorJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-18_13,2022-12-15_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1015 phishscore=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 malwarescore=0 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2212190092 Received-SPF: pass client-ip=205.220.178.238; envelope-from=prvs=9352c01a6b=bin.meng@windriver.com; helo=mx0b-0064b401.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org |
Series |
hw/9pfs: Add 9pfs support for Windows
|
expand
|
diff --git a/hw/9pfs/9p-synth.c b/hw/9pfs/9p-synth.c index 38d787f494..dcf8c1624d 100644 --- a/hw/9pfs/9p-synth.c +++ b/hw/9pfs/9p-synth.c @@ -146,8 +146,10 @@ static void synth_fill_statbuf(V9fsSynthNode *node, struct stat *stbuf) stbuf->st_gid = 0; stbuf->st_rdev = 0; stbuf->st_size = 0; +#ifndef CONFIG_WIN32 stbuf->st_blksize = 0; stbuf->st_blocks = 0; +#endif stbuf->st_atime = 0; stbuf->st_mtime = 0; stbuf->st_ctime = 0; @@ -230,7 +232,8 @@ static void synth_direntry(V9fsSynthNode *node, entry->d_ino = node->attr->inode; #ifdef CONFIG_DARWIN entry->d_seekoff = off + 1; -#else +#endif +#ifdef CONFIG_LINUX entry->d_off = off + 1; #endif }