Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2093334rwl; Thu, 30 Mar 2023 06:04:25 -0700 (PDT) X-Google-Smtp-Source: AK7set/+1l/y2OEWRSotJ78Z/KaJA20hNsWapImbGyoKWdFztCOyvdRhINCbZZotEeQNpDSAYOK1 X-Received: by 2002:a05:6a20:748c:b0:cd:fc47:dd73 with SMTP id p12-20020a056a20748c00b000cdfc47dd73mr27470852pzd.2.1680181465172; Thu, 30 Mar 2023 06:04:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680181465; cv=pass; d=google.com; s=arc-20160816; b=BtjPm6f491IpxICvaZ1uNO6c4P9t60Lpjz9mQ0EW+EOqmuVOnua+K9O2Yu/04sIkbu g9IWCX0rmQawwn9tVGx1ODODiKuOW6Vz60C8vihwiLHLbPm6Jfuk3T0KsL92FtM59PlZ tUT2fRjfVtxC2kt+QNiE6sYDSgS+cdqEa51vDtIwyIrGET7drw+znYLyzjVtDtMnZQ65 Q2IndwphOhsDdkduWZWKoIxGTonC4sp0nYzIWohrElKoDx4N7APOD6mkuvJdlU4xmCF0 DtZooo/AOs3++T8UJOLtgY34Z8eS4l70rT15E9MNwaDHlJ6GQA8QQUwXnPfIO4ghp8sR KNsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=36ydgif6Uj5MkSyC5HICKfQXM0iKtLTtTV2N9CJwwPI=; b=0fwGVH8ZDC43C07pRpA4UKd4Z/tov7ofDSNmsNe1zIvuj/i4gVVAHo9/3Y6H/yTo15 JGoVwgSGUW2uggDRGJD5uoPjU1fRTtIZyDqh/fZZK+vcQec6MePMhDkOTitTxEAEY8zM XccHti0NLLWHkEIIL2oCh8qgVARX5KIXgsCpu4hohMWj9dnuCB4tFjs+493jkZuhdDUa imAZjKTWRbKmxXO0isvwTHV7Xz1rjCj5mXWo3CPFVdpLjcgsr+ydIEyMgbUdB3ZeX64y rjIUIyphJf/xqxcDSQkhOx56YBcX9ICzF8aKcGIyGuSdHFAQnIHFL8IrJB5cX/o23qWv TTsw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=o+6Uunmy; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c140-20020a624e92000000b0062a52a1c935si16556964pfb.131.2023.03.30.06.04.12; Thu, 30 Mar 2023 06:04:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@corigine.onmicrosoft.com header.s=selector2-corigine-onmicrosoft-com header.b=o+6Uunmy; arc=pass (i=1 spf=pass spfdomain=corigine.com dkim=pass dkdomain=corigine.com dmarc=pass fromdomain=corigine.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=corigine.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231881AbjC3NCs (ORCPT + 99 others); Thu, 30 Mar 2023 09:02:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231817AbjC3NCe (ORCPT ); Thu, 30 Mar 2023 09:02:34 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2100.outbound.protection.outlook.com [40.107.94.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0734DA266; Thu, 30 Mar 2023 06:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nccYyxDLWkc33P4h73/5VwOFz+8LZNQBoVtYpa7Awi7RHCUT0w9HWjOx8KNTd/yJChWaRGcOUzoO6lfss4FiJbULj0Ju4h4AJKYNiQPpk7u0/IRR8UEAK/MwMn7KwnY3KBljBGP5no28tJUUrrATE9bYwfIO9AAdggMKaMoPrtmvEZkL/AHvZtW9DtxOGRFO4b4Ua7d3WmIdvOe7s5ISSvKSfjUQeQvsY2OhrDKMCG1IXwh3nb7VwemTwCZLIggxAEgTspillCGCf9LUucgn93495B+oJDBUOr5iyacDOvW4iRZg8Hffs+wCdDaQx7HSOlqbHDjSzxNU4QVJBWzNxg== 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=36ydgif6Uj5MkSyC5HICKfQXM0iKtLTtTV2N9CJwwPI=; b=hE2L15eDXTCGAu7EDpOLJ4MCNESbxKhNGLK4pJ8XRqjGJElD6C8uJw1rLlDi9q4l8HdkGK9OoAdeqH6SANuUfaAoff6tzZFXhgi+DZkQ9cUEAi4bTvRZXoejbzss1DIG5G3YaYUBmWIgjJ2T+wR/nE0LUqZYshdjXPofNoIZLI4+rv6YWiM99x4NO4pfXsJHWpe3JRCIuHSYnOClJg7bfjTfWyX0oHf1pxatWP+mD49/P4DDPQfXoo9c67lSbpeumzXX6Yk3xkqSGuG89+akhzk/TErlId0igIf8Rp5SLmOIIOVF4UUYosIv6L+2b3/s4nZVBJWIkXfUK2idU/RVuw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=36ydgif6Uj5MkSyC5HICKfQXM0iKtLTtTV2N9CJwwPI=; b=o+6UunmyG9Ns/n4+IoDB+NQLNfjCK2W2VValZwQfB9zhdi5ydB7ZhexE7K2kT6mY8rGCLg2usqQsPKBUssAXGa6mJBlJkFL3ekDVk9uuBmkudoqqjZPp6GPMRdhPRHWEcV6WKcflmFt5A/zsbQEB/yUofHqJ0LCugqwIjAIyUKA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) by BL0PR13MB4434.namprd13.prod.outlook.com (2603:10b6:208:17d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.21; Thu, 30 Mar 2023 13:02:28 +0000 Received: from PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::c506:5243:557e:82cb]) by PH0PR13MB4842.namprd13.prod.outlook.com ([fe80::c506:5243:557e:82cb%5]) with mapi id 15.20.6254.021; Thu, 30 Mar 2023 13:02:28 +0000 Date: Thu, 30 Mar 2023 15:02:21 +0200 From: Simon Horman To: Stefano Garzarella Cc: virtualization@lists.linux-foundation.org, Andrey Zhadchenko , Jason Wang , eperezma@redhat.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, kvm@vger.kernel.org, stefanha@redhat.com, "Michael S. Tsirkin" Subject: Re: [PATCH v4 5/9] vringh: support VA with iotlb Message-ID: References: <20230324153607.46836-1-sgarzare@redhat.com> <20230324153919.47633-1-sgarzare@redhat.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230324153919.47633-1-sgarzare@redhat.com> X-ClientProxiedBy: AM0PR10CA0060.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:150::40) To PH0PR13MB4842.namprd13.prod.outlook.com (2603:10b6:510:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR13MB4842:EE_|BL0PR13MB4434:EE_ X-MS-Office365-Filtering-Correlation-Id: 26032a34-fe19-46f9-efbc-08db311f0394 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9ryR1tODxkRKz7B3qS8vc3PQccihhdY2l3tXOIAL/OM/HiY3yP+/wKoBboLh2j0UIrl3PMQfQJKhRpTC5wpoyNem0s6FE+zh/ImHC7mJ6hE0n3abUqDvrufvYPvnmIrQuIUEdDVRgwu8lSwydcxMSnp+eHzGbmcZiWpVa4fWitLXWepjBk94Xtfs/lpODIjQpd9iiuJiPxtczXNU6rti6MS6BGqR5OEGNOG64L82M1pWZOlmjfgaabsiEihr0bQj13MHZu2pPlSVx2IYRlQWJdCw8x/MmM66NMckrm9imE082afdN5TePoltTFZpMhZY9VT9pYMghKiVOB9VpDHCDITvcrUHCOUUWwR2bNpLRwPzXo3+32lBjhU74osU6apk+m9166CCEQibtJTcNhXF0SKnu1ANlg3Xn3C3OJ7npe9dxCf6di2/LatrqKCp39336KkWM9LgKrs0xGLugXYX75qPjxF6WSywCf5ZW0nNUjYnWYwjBnHx8vaAmeDTE/8hrvWI5inl3oRfx0Xc/MqdpjLn1s8lcutraPRAXcYlf26i3YSNnaDTdoYjE01yzhRh X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4842.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(136003)(346002)(376002)(39830400003)(451199021)(36756003)(83380400001)(2616005)(6506007)(6486002)(478600001)(316002)(186003)(6666004)(2906002)(6512007)(54906003)(5660300002)(7416002)(6916009)(8936002)(38100700002)(66556008)(66946007)(8676002)(66476007)(41300700001)(86362001)(4744005)(44832011)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7f3JjgG3bryTXg/nycFnwmqFsR8HAtHsKmqMUFx9EQtuUcxL3vRFbBbVtSq/?= =?us-ascii?Q?6V2TV0RBfl/jpX9LGBBsUWTGv0/BTIiw9eVaSmYUP82Tf7Ssebj2t0jsghNG?= =?us-ascii?Q?3SslzPIpV/pqR4M7te21ELvTCuoFgyxzg/wj0bQlsE+AARXZxhVrvsX2Ad6n?= =?us-ascii?Q?xfPdkASFcV8JKgQ5m1ukuBjc29PMA6TVD/8dvv4xaaVY+YV5NaAdRf+5KWHx?= =?us-ascii?Q?W6mmHShlVha0iyG617rvrkggwYKgbLMMtM+haJ8e1fISu1nrE+xTPOs885qf?= =?us-ascii?Q?9WEQgRO8S6Ly5Zyzrgi+nNTO6ryEv0Oz4eOzcnmtu/Y2V/slF55eVD6MMNST?= =?us-ascii?Q?xgaJQz4hVzHIXuiAC7OUj2M2URvyalpm1LXZuTLjEKNnMsfLmN+a1JkM6o6p?= =?us-ascii?Q?k4C0OPRO8MhQzq/ZFW/EZ6bOlzWUL7XOVVe0tg34b7rj4p3BjZkCBu9qe8g3?= =?us-ascii?Q?HESey4fHlob3zaHbttQIPwGZZQ4TcBAZ3ysFjf+RMbrV4AieFNDfTJPs8gXT?= =?us-ascii?Q?D1po1UkMKNkDv6qOIdpSNLK+7RgOhdQJLTmb6iGGoj0Mcb+YzsmgNlJcDxIX?= =?us-ascii?Q?idMAl+sTA5K6mVxiuP6go+iysOLXzVQQc8V2Igiek9nItTqBNsfXtluvpxdt?= =?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3JXE8ZXzh9edJuE3b8KyOh30v/jIK?= =?us-ascii?Q?9sb7j0x0fqL+xXiFpfITKNiIKPZdsg23fxe09MG1UVZM79G0gdEY+MjKvXg1?= =?us-ascii?Q?yrBCRTPKACOQUA/6QeXkMOtuS/e6szg4mBBTePs/B7WQlLS75A3MTOqiI7OG?= =?us-ascii?Q?wPyRQA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26032a34-fe19-46f9-efbc-08db311f0394 X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4842.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2023 13:02:27.9421 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SOhvSfjnhQsUYpDGJ2hbmk0uoDh8QMBa7uw9UlvfmonDgDrdgtrIGzpVE31f5dY3rqa/O4HbzVVkPuyFElUb1xprAJjEuiU6YwP4CjN5nBU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR13MB4434 X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 24, 2023 at 04:39:19PM +0100, Stefano Garzarella wrote: > vDPA supports the possibility to use user VA in the iotlb messages. > So, let's add support for user VA in vringh to use it in the vDPA > simulators. > > Signed-off-by: Stefano Garzarella ... > +/** > + * vringh_init_iotlb_va - initialize a vringh for a ring with IOTLB containing > + * user VA. > + * @vrh: the vringh to initialize. > + * @features: the feature bits for this ring. > + * @num: the number of elements. > + * @weak_barriers: true if we only need memory barriers, not I/O. > + * @desc: the userpace descriptor pointer. > + * @avail: the userpace avail pointer. > + * @used: the userpace used pointer. nit: s/userpace/userspace/ ...