Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15576271rwd; Sun, 25 Jun 2023 20:55:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4auWD+Zk0ccuD5bAC7V0/TOC1IeuDp+C4iBgrNvrZ6Yhr+/18JIXYj5q7BEooc5XVI3H1d X-Received: by 2002:a17:906:9b86:b0:971:5a79:29ff with SMTP id dd6-20020a1709069b8600b009715a7929ffmr24935329ejc.48.1687751720796; Sun, 25 Jun 2023 20:55:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687751720; cv=pass; d=google.com; s=arc-20160816; b=s/tDhJD5cr4qPF24U4Ea4yPbjPu1ZBODX0Hy7RlPzSPkTyT72PYM6IlEhsZdTLSOE+ aAKWdVUj5TjLgo4pGXHK2Z8U3WrfeYhXQUgoDHxnkXeeFczeq0UIcwFfFGy+e1dgI4Sv 4bEv61ome7Fi8NHgmZyW43FWiAyGHSGEUMD7lfd0XnuEIQ6DyB0szok+S9fhKhBYAe2e 0/kWu26BApiAx3HmN1/QBOuDG0L4PKXH+eTi/qdQXWDLN6NamD37MBEkzQS8OeSitBqj QylvnXtIma1b2o35s8a5aaeEklhT56TnpssIxUn6XNJJ57qQp0GB9Fzz+hpOQxJQ6oRs 5+Gw== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=gJgmAKM4+f0Wk0cDE/bhGS3njZPIweBkFcdrsKINCKY=; fh=26UCjBg8aEmso2eHkNF2bSrmW8T7GRxqRnH4Ct9+GEo=; b=hDN/GqREvebtf6XGnZURV3801T2uOv6fY5QTXswN8Ad2VpAAy5rVqI/qxZ9B+SIiHy bFlhzf8087eA6JKvKPhttBAEEYj2Mu/saklMPQMimrWbAIrzvxMDtpHhw/rzKcNVZLUd flOKR0FIKA0jQ8haSdWT52zuMjlm5PuWJRocwCE8dLzKSmy4n1faDwD15Nb2plPcgGgu 1/ngjZAuIXfw2GG46rWBnml0nJ8HT6TUZktjjF+q7jIHKbKSYGJmwrZjZ7xTLoG3U0zN GZMPqIA776CaaKvpCTQWwGcqQa5Pyj0wGChRKessE9gJNESSxb/57VzdEFLs60AHTbY2 6neA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jaguarmicro.com header.s=selector2 header.b=En70cati; arc=pass (i=1 spf=pass spfdomain=jaguarmicro.com dkim=pass dkdomain=jaguarmicro.com dmarc=pass fromdomain=jaguarmicro.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jaguarmicro.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a1709060b0e00b0098e07395327si2049735ejg.757.2023.06.25.20.54.56; Sun, 25 Jun 2023 20:55:20 -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=@jaguarmicro.com header.s=selector2 header.b=En70cati; arc=pass (i=1 spf=pass spfdomain=jaguarmicro.com dkim=pass dkdomain=jaguarmicro.com dmarc=pass fromdomain=jaguarmicro.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=jaguarmicro.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230019AbjFZDC2 (ORCPT + 99 others); Sun, 25 Jun 2023 23:02:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbjFZDC0 (ORCPT ); Sun, 25 Jun 2023 23:02:26 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2069.outbound.protection.outlook.com [40.107.255.69]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F6891A7 for ; Sun, 25 Jun 2023 20:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yed8zT66rFyVUKfNKqAG6drz78dU0U7nNS4LUsL4SlNpR2iGZUtUKIaqp0zL4e8V9khGcr0WpdsLtlpNxIvnmnsF3BNH6BrF85iWNYpAnGQ4DlZxDqSzsZbLwiLHhYjLMlUUJ+DJtfLmO8ddSTjWeWZuen/7yvciRxsu54MVEbEZjvv2jZsBVOsFQu748cPwi21Y34dfN9EcOqByXPEum0FvY4ZwRhaEtF6sLfFeP61osw1XQFM732HEE9KVtIhZzQ92m/RRuRp2WFbnuD8rOrf4NM2mEkex+OLqqg5mgQn2WYkoTq84GXdIcgK1WpDYocluqzfsrUXTbPN+NEGoYg== 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=gJgmAKM4+f0Wk0cDE/bhGS3njZPIweBkFcdrsKINCKY=; b=O8nynhDaOytqvUlr/0JEtgAug/Gg62oMGW3tYkcJZYg3K7vg3FZiyAFIAqfxZfO1TqMvlyeayZUcQmpLnxywDIZCADF6+8SFSrSnkCiYhSfTQGH5I4X/iljQ8VvWlSkOOSL0kR/RpfEeMAk1jdYlraQSWCs81Ya8Kl9ZI3fywUB8PMzbkKiD4dtM6cNwDEIGG6mpLIKYFGOALq0gTwAMlJyzgHGpSl2BfaU+BxjzUoqUndzbIZIf0PsPfvqdP4Q52Pqb0XShddI3eUU7BxvXst6j73YY7kBfjT2T+wv3R6Yr0sDDkb32klI0hD40mcT8EjsFKxV5bxb6M7Vtj5lAzA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jaguarmicro.com; dmarc=pass action=none header.from=jaguarmicro.com; dkim=pass header.d=jaguarmicro.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jaguarmicro.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gJgmAKM4+f0Wk0cDE/bhGS3njZPIweBkFcdrsKINCKY=; b=En70catiWbtXNzOQsIrljmcUfFTkReoOgsUlh2Wgi+exqmwV/twVWspyVdBOVm2xHWcCdTHI8ewfl84nicly42lylVmCrrV6qIjfiSbUnEbjTH0ky44qtlo0Ng2JpgwTE2tDwg8nRkitHkg4KcWd5Naym2f6h594j3YIWGS/e/A7gJDJ7VJXHcspWqVR37dX1HFf5SNyZME0tpiJtrgPv8YnzmWU815jLAmoXDwtUw34lZcovGmlDzBAsuKeEtlDXf+yneTU+SSVSgVSNi8Cst1j+buUNVwKt2mqk/XVWi1odF9a38QB2KP+6eSmD/NPqbnnDS2XnSvcobLGEZfQxw== Received: from TY2PR06MB3424.apcprd06.prod.outlook.com (2603:1096:404:104::19) by KL1PR0601MB4017.apcprd06.prod.outlook.com (2603:1096:820:27::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.26; Mon, 26 Jun 2023 03:02:19 +0000 Received: from TY2PR06MB3424.apcprd06.prod.outlook.com ([fe80::57d3:a80d:905:d7be]) by TY2PR06MB3424.apcprd06.prod.outlook.com ([fe80::57d3:a80d:905:d7be%5]) with mapi id 15.20.6521.026; Mon, 26 Jun 2023 03:02:19 +0000 From: Angus Chen To: Jason Wang CC: "mst@redhat.com" , "virtualization@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v2] vdpa/vp_vdpa: Check queue number of vdpa device from add_config Thread-Topic: [PATCH v2] vdpa/vp_vdpa: Check queue number of vdpa device from add_config Thread-Index: AQHZmefhGgrgL1M5iUCr+LYolFSqU6+ceIAAgAACjaCAAANEgIAAARTg Date: Mon, 26 Jun 2023 03:02:19 +0000 Message-ID: References: <20230608090124.1807-1-angus.chen@jaguarmicro.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jaguarmicro.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TY2PR06MB3424:EE_|KL1PR0601MB4017:EE_ x-ms-office365-filtering-correlation-id: 62e3ffc9-ddaf-469e-aeb6-08db75f1c176 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: w4/q/qKuNfUWx1tOonanqnvUoAPMN5htGwil94OA3uYYpPqmGilDBDzzGVhow75fh/ZBShD4tClggAyNNKI6Jq7cfV3EKgYYCp9LgEXDoazx8BMOp5+p83Kwvi2/8cbApYb9076j7y6huPjPqS1hshujvDQ8HAozI8LlsOXffoc2kPg2uFUqS65zoAmFmmXhR8+HtNFkQJnv3yU/zpYRjFVfJIbRiT80wcVNtnR8QBjH9p8J7U1a5fjwjYR/3eAuX6LeeKbpPy1pFkXJ1uNRGFAntYlgTchkXnv417/7HLgB4VjNKSf0li0FLGPX1DYZVSd0+Wdk0BcApr9ZtyM9mT1zMqNlpJp0v1fERsohSmab4yNmc2VkAPJCYestTnsY452gzd7xizUD/LJQS0N/w8RHKoHcz1dtWcXp9pJXj4GWFFe8noFTh/pJiat5mo2/hCF0Py5MDrhYaMftDyy73XdEe1SGwHhdiwUjBdWM644Q9wduUmOxqsEhTDexXbKApJFH35SU5CaGUnRrKDN10QCRgmZakIc3ObbQu3dOyAiqx4aAHS1q55SYFxHZHTEP+ofblawcGOz3iNPw48KxZBkByP1O2mdNruF+uauv1EDOWa9J7JexteD+oijQk1BN x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TY2PR06MB3424.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(346002)(366004)(376002)(39840400004)(136003)(451199021)(33656002)(52536014)(5660300002)(44832011)(41300700001)(316002)(86362001)(66476007)(6916009)(64756008)(8936002)(8676002)(38070700005)(66446008)(66556008)(76116006)(4326008)(38100700002)(122000001)(55016003)(66946007)(26005)(6506007)(53546011)(2906002)(186003)(9686003)(7696005)(71200400001)(478600001)(54906003)(83380400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?YTNmTnhlTVl3YkRMTnhnRk4xaVZra08zWDhqbnpLME1FMU9meEUyVWtYbWJG?= =?utf-8?B?NFBZZkU0V1VzdFJtMEV4YVB6ZU9RYVc4SEFqUVFmSWZmeDA3ODFveDdaSmJs?= =?utf-8?B?YWwrQlYxUVo0Q05ZMU1kVUxuT094OEU4RVplQjQyUGhZNnBDS2RQUnRQRHRy?= =?utf-8?B?dXFDakJrSWFNNWs1Z3dlN1BEaDJ2VkdSUU9xMXQzUk01Q0dheFZyV0VPYk03?= =?utf-8?B?SUQ2QUlpaXJPRTJ1Ky9qSkR6eEhSYVlvN0tEQTNyblJIbUtWaE5uZG0rbEcy?= =?utf-8?B?dEZETk1hc3YreGIxTVlkeWNpVmJZRHprSXlLTHU2UGJqYXJPQ2tTYURSeGdS?= =?utf-8?B?Sm5ZcStBdk5DaDExejZRREdjUXFOdHp6VDNXTnYvaWg2cUduaHZYaURYaWJO?= =?utf-8?B?bVVZK1NKeWlIRXRoZU42L3R6Y1lwZUVIc0pUTmFkQ0FjOFB6QVBTdW9iL0JC?= =?utf-8?B?VE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UyWm5i?= =?utf-8?B?cmZkOWFadVlZUFRRTTZXRGptdTJPK253MmxoWUxpbzRPSFI3RmtyMHRWQWYy?= =?utf-8?B?SktKYkZSeU1JSFhOU3NDeW9nMU5NZmJjUUpQZytoSitPcnBLazZwa1dMOXBu?= =?utf-8?B?OVpadm90N1BOdHcrYlZsRE5rWmQ2cWd5bjNDQTBFY01XbFpERUFPTmxhRTdM?= =?utf-8?B?Uk1wTGdJTDFmOVMyamwzUzZVQVdGZHJZTnZjTW0vUUdRVEQvUlVQNy8vRkg4?= =?utf-8?B?UFRKWjlJcmNWaWJmYkcwbGt6aFhVVm10cUdWb1J4cmhQK1U5Qjhtd3ZtaW9K?= =?utf-8?B?VU5HbG9mSnJRWERBb3dYaUZJK0wrSmZvMXk4eldWLzZEY3poaytLWmlxVzcv?= =?utf-8?B?ZzVwc29wQklxd01JdTY0RkxJSlVyN3NHQlMyeDJsWEtuYUI1TnFWRXF2WWEr?= =?utf-8?B?Z3VrZjdYdEx3ZGJiYm9VTFltbUQ0dkZtNFJ4MTZ3UDBJRXFZenV5SnF1YlR2?= =?utf-8?B?RWkwYjhUd2pSa2oveTlkRGdYaTJ2aUpUQnNtYTdLZTlxTGNqeHA0dk5sWXZO?= =?utf-8?B?TU5OUlBKMjY0OHdoYjl6OUgxT2phZ2R4LzlSV3dLcDV0VW02WXdmYkM5NUpU?= =?utf-8?B?dU9KRHJFM1F1Q2s4aGZzd2VzSW5va1A5a1BYalNVUno3YVc2Vy9wY1dic3U1?= =?utf-8?B?REtKdklDd0EvQ3NpWFhiVXRadU1WamZXY0xBaW53YVRpckQ3UkEyYW9vTjJx?= =?utf-8?Q?/kSbUwMamQLqzFLGbyW0/bO1I?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: jaguarmicro.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TY2PR06MB3424.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62e3ffc9-ddaf-469e-aeb6-08db75f1c176 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2023 03:02:19.6037 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1e45a5c2-d3e1-46b3-a0e6-c5ebf6d8ba7b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Jq+suK3iCSiWIGlPtgLlhc6Ut3+yAuzgjWQEVz/bY/RhhgSuu+usEk5ligKDKLAnun0S5IfOlN0+T2S0DnsMsUq5WV57JRylNuKopej4StA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4017 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogSmFzb24gV2FuZyA8amFz b3dhbmdAcmVkaGF0LmNvbT4NCj4gU2VudDogTW9uZGF5LCBKdW5lIDI2LCAyMDIzIDEwOjUxIEFN DQo+IFRvOiBBbmd1cyBDaGVuIDxhbmd1cy5jaGVuQGphZ3Vhcm1pY3JvLmNvbT4NCj4gQ2M6IG1z dEByZWRoYXQuY29tOyB2aXJ0dWFsaXphdGlvbkBsaXN0cy5saW51eC1mb3VuZGF0aW9uLm9yZzsN Cj4gbGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZw0KPiBTdWJqZWN0OiBSZTogW1BBVENIIHYy XSB2ZHBhL3ZwX3ZkcG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DQo+IGZlYXR1cmVzDQo+ID4gPiAiDQo+ID4gPiA+ICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgInRoYXQgYXJlIG5vdCBzdXBwb3J0ZWQgYnkg dGhlDQo+IGRldmljZToNCj4gPiA+ICINCj4gPiA+ID4gICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAiZGV2aWNlX2ZlYXR1cmVzIDB4JWxseA0KPiBwcm92aXNpb25lZA0KPiA+ID4gMHgl bGx4XG4iLA0KPiA+ID4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldmljZV9m ZWF0dXJlcywNCj4gPiA+IGFkZF9jb25maWctPmRldmljZV9mZWF0dXJlcyk7DQo+ID4gPiA+IC0g ICAgICAgICAgICAgICAgICAgICAgIGdvdG8gZXJyOw0KPiA+ID4gPiArICAgICAgICAgICAgICAg ICAgICAgICByZXR1cm4gLUVJTlZBTDsNCj4gPiA+ID4gICAgICAgICAgICAgICAgIH0NCj4gPiA+ ID4gICAgICAgICAgICAgICAgIGRldmljZV9mZWF0dXJlcyA9IGFkZF9jb25maWctPmRldmljZV9m ZWF0dXJlczsNCj4gPiA+ID4gICAgICAgICB9DQo+ID4gPiA+ICsNCj4gPiA+ID4gKyAgICAgICB2 cF92ZHBhID0gdmRwYV9hbGxvY19kZXZpY2Uoc3RydWN0IHZwX3ZkcGEsIHZkcGEsDQo+ID4gPiA+ ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldiwgJnZwX3ZkcGFfb3BzLCAx LCAxLA0KPiBuYW1lLA0KPiA+ID4gZmFsc2UpOw0KPiA+ID4gPiArDQo+ID4gPiA+ICsgICAgICAg aWYgKElTX0VSUih2cF92ZHBhKSkgew0KPiA+ID4gPiArICAgICAgICAgICAgICAgZGV2X2Vycihk ZXYsICJ2cF92ZHBhOiBGYWlsZWQgdG8gYWxsb2NhdGUgdkRQQQ0KPiA+ID4gc3RydWN0dXJlXG4i KTsNCj4gPiA+ID4g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