Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2707691rdb; Mon, 4 Dec 2023 05:34:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxq29OZx0dcG5QrCseUbEYLDtNNUz4KLo5/sD0fpVnYFdtIIfKAsSg855qLREWLUgR9d20 X-Received: by 2002:a17:902:ea84:b0:1cf:7683:93e with SMTP id x4-20020a170902ea8400b001cf7683093emr4090066plb.24.1701696852195; Mon, 04 Dec 2023 05:34:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701696852; cv=pass; d=google.com; s=arc-20160816; b=OMraDJJHEfTk5tGn+cILGUkfkW7f39mkj7IhloJ8nYTAKpDmyqGIkvT4nlCFOqMnV1 CflTnfxe2RfDHmNRI1Rb/Hxdqk1Bc72XEqS0AnJYFL7AKcRw2YF2gaxAFEeyo6E6Yl51 FvNcEU/YGa++zHnabyjpNALX8BE3dnvoHAlvoskvcVT1tOFDdRoaJmDueEaVwJrlHm7T 44gygiqAU2QXi0bf7xBYnU0A13OsLWJAY4sJ87+DUS4S6XVF9px1F+HkH+FKxfCCBp8R fRvGvrKiq0W3fAMQaQV+bjcFxGy+WMzzLWWbQr5zpPeRmhx4GFYM7K25r/cTUg9n5s5+ jl8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:content-language:references:cc:to :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=SRwMhwuEEER4AJQfQwP5HScE1yn7GepKUPvFiJPmXIE=; fh=rucqZp02Kg1LpdDmFz8u7Zp2syqLtkDdq5K4Chd8OvA=; b=v/JAKCfwNIg7RDLF5j3UWvdn3E6ipnlBsM/q/FCgPnfS7wzA6Zp4B531YtJzYEjpIg e33pdhjZXqyr3tRg8Bz75MR2Jc8SlQ2G1lIiAth9j0Y0rSAWK5LFM8PcE5X6j+gbmpzS KtGZmErl4m8YMPcs7gxSuNgcifRM3+SmoGLS+em0Es0b1GSdatJtfLt2VloAYlYDgt6Y gEZTT/aEXcY0AKetyOEvflvnRhoBu9wCLzPJ8p/B28pf/P+4GaRlr8+w3FAAT+PpNQFg GB19A6mkAYIxYYcEqM3P+34PJ6gNRL0GdKPoY3Fhoouq9i2zpvSAKG/pd9/i0mujMBo/ T/MA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=gLGPiuoz; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=E6btnMNw; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id gj22-20020a17090b109600b002869e1309fdsi2213378pjb.132.2023.12.04.05.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:34:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=gLGPiuoz; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=E6btnMNw; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id F1598803D825; Mon, 4 Dec 2023 05:34:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233894AbjLDNds (ORCPT + 99 others); Mon, 4 Dec 2023 08:33:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbjLDNdr (ORCPT ); Mon, 4 Dec 2023 08:33:47 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D152B2 for ; Mon, 4 Dec 2023 05:33:53 -0800 (PST) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4DUeaT029480; Mon, 4 Dec 2023 13:33:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=SRwMhwuEEER4AJQfQwP5HScE1yn7GepKUPvFiJPmXIE=; b=gLGPiuozM/gdlISkJOE39BMIYdJOcAVqAXFfo5Xnjaa84jeGfiYFinP4TbKMaCkzA3Jk O4+0ecvRiX6fmLliXw/3U+8mb2jC8FKNe8DjjUMQa0dPS14bci6pX/3EVbJfih7EI8HV 6eeJZIDeWg0lbIL5MzlrIBXH5dKIH10fKLjfiuHgJKxE70YYQY+dCubcL9GZoxEsUSpa hJiKhrIhc6T9X3ejb7gTny8Z83qCd2ble4XKlrEUqJ114H34o7RCWpO97fYsbpgqno9s jG8m9rTyLWtvQ4A9u5Qyo5Ywb3J9OvaW/Tp4Ku0q6uqWuB2Q+Vm65uOBPS+P6qudDVU5 AQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3usf0pr2wh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Dec 2023 13:33:43 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4Bmx4Y014733; Mon, 4 Dec 2023 13:33:43 GMT Received: from nam04-dm6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2041.outbound.protection.outlook.com [104.47.73.41]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3uqu15rtrx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Dec 2023 13:33:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kBSt/WYfVs6SQUREYfYyXBvNctnU+IgSWryi0ouS52H56XlnLnA1h9uRKIEL4Sj6p8B37dXwriqwUh/FJ3Xk7CCvPw2mu5r7nzs6JbhSkkmoQeDkXTdAs4EruJibZBWe+bE55u3EOuZc8WWiSGxaR2BTDJ3letamgHQcvPW8XOyWzj0Q4cz/YhSPdl6a6b4z9ChWE4UcbKYTq/Ks/IReuH1oME82JvrOGj2TkxtW1JHPv6bbEChBwbw7IUWRrdhSfMqn8a8ivUG1VjeC0UlJDq/1vEfNefhnpCtyEk+Fz+lEvuO1+62jzaW3WYB2/WXnZ0YAGrwgrTq9oYPQakPD6A== 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=SRwMhwuEEER4AJQfQwP5HScE1yn7GepKUPvFiJPmXIE=; b=n9dufB1fG4vRmdSbG5tmrvqXOvnWbbz6VdSeUUQVbElhDCOF6xqGgOsRvPA7sDth2m1SgXD1fULPLxX/uwqTaYRL9kfXL0wm5y4Lv9nwKvgbAKEgIHw9qUOy9rWefrFn2h8i9n1ZIqBKSpP38pERXr+PajLeL2/BcSRco+OqcNT2n9F3+uDYbSjm6UV8eknoKMliTqVBWvReV9qHzJs6pi/Vg5t86XGCtYIk1v1MU7IxHJfYyrnUR2aLN+IvQ8mY+ownri+tt4LOAeP5Dk3BOyDMzVu50FdhQ+QbjzUXb6wBM2EOxQ3Q83wFG1GKUuAg9nOKUF/wNT32HAnH4bSJsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SRwMhwuEEER4AJQfQwP5HScE1yn7GepKUPvFiJPmXIE=; b=E6btnMNwyqw/1kg/ruKj65AMaf/o511xj8HvYapzNEx8J9kIwtvxoew3qzlX/HJe1sDcooAGA3ILR0iLdmWV/HjTqGD3ZsB3kbRnDm2oPc7KwNCNtZZA3J/EGRahyCJppws5fx5TwEaL4gZca5/gdF7Vdfu8Qqg1OMeV/Kc7QTo= Received: from SA2PR10MB4684.namprd10.prod.outlook.com (2603:10b6:806:119::14) by BLAPR10MB4897.namprd10.prod.outlook.com (2603:10b6:208:30f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.34; Mon, 4 Dec 2023 13:33:26 +0000 Received: from SA2PR10MB4684.namprd10.prod.outlook.com ([fe80::d609:b162:ba7c:4e96]) by SA2PR10MB4684.namprd10.prod.outlook.com ([fe80::d609:b162:ba7c:4e96%4]) with mapi id 15.20.7046.028; Mon, 4 Dec 2023 13:33:25 +0000 Message-ID: <22981f62-5c57-41c4-8ed2-a11b7b93d062@oracle.com> Date: Mon, 4 Dec 2023 08:33:22 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V3] vdpa/mlx5: preserve CVQ vringh index To: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: "Michael S. Tsirkin" , Jason Wang , Eli Cohen , Si-Wei Liu , Dragos Tatulea , Xuan Zhuo , Eugenio Perez Martin References: <1699014387-194368-1-git-send-email-steven.sistare@oracle.com> Content-Language: en-US From: Steven Sistare Organization: Oracle Corporation In-Reply-To: <1699014387-194368-1-git-send-email-steven.sistare@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SJ0PR05CA0071.namprd05.prod.outlook.com (2603:10b6:a03:332::16) To SA2PR10MB4684.namprd10.prod.outlook.com (2603:10b6:806:119::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PR10MB4684:EE_|BLAPR10MB4897:EE_ X-MS-Office365-Filtering-Correlation-Id: 291c99b8-6e63-43d7-fcf4-08dbf4cd97b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FyudS3Q4TgVNSc8wdDXBBpxyByYQ7ZAT/03MAWGa9qnSnPF2bUxVKrOmVBrKUwcYhoJdM5dFl88PRoOwWWNsfa/iP+16NWIJfiEt6qNysex1d4xUr1q7eu2mYQ0qXrllq5kg0GEUr0mG5O9Z/JSSnlm+Q7q2LfAvJIaouqC98EprIlJUwfRokUqV5fCjOUZB9mbJ1uRz7oRN0mnhhRfEvl7TgIwMPWt+4a979dClBhwpxvTBSvGpvkdRG/GbgsF9jjbkAV4V9Kr0AlkCb5nlAvnkXXgbIycoJMeGVRB0hnyYG+N7u/egRrLj7kxhTNwCF0I0aea6ieKZOR3UJZdubbWb3G+EEc3vZ6HG6W8qRKvsms0FLZMOOUEOcmR4D+M9JTe5R7QF0xFkjuvUqr5w3OmmcpMsPukSDSEg3CkH7UjsUQbbaWDgs8950DsVKRPYKJXA8ADQHirgZXmKxbbTP8zYceX2QqFTXvr8e4J25sunmjBTzoYrgf3UqO158AeMMSWeFN5UIRcRDsbrBmrcZB3ohz1EVq9N1+UQ2K6S3gJNroxR1ampjwmvlEMplmuvDHKqbzOgE5u0g+R9cKPI3qOkN4szFm9eDLUFqkyN3c+BJCX8G0kQ2+8BQ7T9y1RjP1JRz0yafsrL0qNfNcc69Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA2PR10MB4684.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(366004)(376002)(346002)(39860400002)(396003)(230922051799003)(186009)(64100799003)(1800799012)(451199024)(66556008)(66476007)(54906003)(66946007)(316002)(478600001)(6486002)(6666004)(38100700002)(5660300002)(36756003)(41300700001)(2906002)(31696002)(44832011)(86362001)(4326008)(8676002)(8936002)(31686004)(2616005)(83380400001)(26005)(66574015)(6512007)(53546011)(36916002)(6506007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N1Z3Q0wwdnA3SnBQVTh6SUVZOE1MYzA1S2x0UHh1RXIyVlhZaFFCUW8wTlpY?= =?utf-8?B?K1g0MHFUYzdNZ0I3bmJoSXg0REg3ZWdGQnNINHFQSnM3cVd1d250MXJBL1o2?= =?utf-8?B?bG1yK3J0U0wwdVdrU3U4MXdOallGYTZ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pScEY0R09kNEx2?= =?utf-8?B?ekxKRkNiRThGT05LL0hDVVQxQitTOE9lN1hVMU1BeklzTUllQnpQWEN6Z1dW?= =?utf-8?B?dzJXc0NuZnZtUzlzRi9HSTA2MkRvWjJYaEJuZXJJbEppVnBjcXl4ZnFIMUNN?= =?utf-8?B?YUdvSnVxRTNCREsxSlZxUmdCUHNyYm1kbU5zQ25oTzJXS28wS0M0WXVOWVgr?= =?utf-8?B?R2hPKzE2bHBtamZEMGdZRVduNjZ6QkJlR2wxREFQUytPUVczY0hKTmJqMTh3?= =?utf-8?B?L09LZm5XSTIvcDl1LzhNWXRGOTViVEpTZk9CNDZ2VXNJZ0djZDgzbWhWV3Zx?= =?utf-8?B?MDhmZVZBWWxiWWk3MU01R2MxZURrOGE4WjRBTUhJZXZjQ20yUFJwY202b0hN?= =?utf-8?B?emhQVUo4N085STNJK1B1WDVKNFJLWGRiM1o4MVB1bjNKd1o2VW5tTlJBU1Fp?= =?utf-8?B?SjUxK3BHTzBGYzlsVGpqbEZOVmNUeEpMK0VGYTcyUVpaRTAxUGlqYTZSazZ2?= =?utf-8?B?ODNNV1NKNGJBdTlnSTBWYStDRG56V0EvU3dyMmFEMDFRRDhLMldURVZUR25Q?= =?utf-8?B?a2d0cHZrR3dRbnY5aU9MOURjbHRzN2RyTjg0bFZTQWR4c1gxdTByM2pQeFFB?= =?utf-8?B?SmNaZHV3bThFVEhUTGZyb1pKcnpTNnJMUGZGY0hkM01zaVNBY1BwK1lPWHZx?= =?utf-8?Q?ssCQKzbgkJN+28M?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 291c99b8-6e63-43d7-fcf4-08dbf4cd97b5 X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4684.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 13:33:25.8778 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fO0KTfneDYl2Fqmrzqz54pXcumMdicTaJxNZbJp1ejggQCJIL85A9PSJctsfDKpf7GZg6H1O8r1AYKkXHMdFyMSRkgIktTYYw9/iUb6XQII= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB4897 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-04_12,2023-12-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 malwarescore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 adultscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312040102 X-Proofpoint-ORIG-GUID: jZUmIk7MO51UaMDkwU6CnN9JKWzZ7bPU X-Proofpoint-GUID: jZUmIk7MO51UaMDkwU6CnN9JKWzZ7bPU X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 05:34:10 -0800 (PST) What's the decision here, pull it, or do not fix it? - Steve On 11/3/2023 8:26 AM, Steve Sistare wrote: > mlx5_vdpa does not preserve userland's view of vring base for the control > queue in the following sequence: > > ioctl VHOST_SET_VRING_BASE > ioctl VHOST_VDPA_SET_STATUS VIRTIO_CONFIG_S_DRIVER_OK > mlx5_vdpa_set_status() > setup_cvq_vring() > vringh_init_iotlb() > vringh_init_kern() > vrh->last_avail_idx = 0; > ioctl VHOST_GET_VRING_BASE > > To fix, restore the value of cvq->vring.last_avail_idx after calling > vringh_init_iotlb. > > Fixes: 5262912ef3cf ("vdpa/mlx5: Add support for control VQ and MAC setting") > > Signed-off-by: Steve Sistare > Acked-by: Eugenio PĂ©rez > Acked-by: Jason Wang > --- > drivers/vdpa/mlx5/net/mlx5_vnet.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/mlx5_vnet.c > index 946488b8989f..ca972af3c89a 100644 > --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c > +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c > @@ -2795,13 +2795,18 @@ static int setup_cvq_vring(struct mlx5_vdpa_dev *mvdev) > struct mlx5_control_vq *cvq = &mvdev->cvq; > int err = 0; > > - if (mvdev->actual_features & BIT_ULL(VIRTIO_NET_F_CTRL_VQ)) > + if (mvdev->actual_features & BIT_ULL(VIRTIO_NET_F_CTRL_VQ)) { > + u16 idx = cvq->vring.last_avail_idx; > + > err = vringh_init_iotlb(&cvq->vring, mvdev->actual_features, > MLX5_CVQ_MAX_ENT, false, > (struct vring_desc *)(uintptr_t)cvq->desc_addr, > (struct vring_avail *)(uintptr_t)cvq->driver_addr, > (struct vring_used *)(uintptr_t)cvq->device_addr); > > + if (!err) > + cvq->vring.last_avail_idx = cvq->vring.last_used_idx = idx; > + } > return err; > } >