Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1087230pxp; Wed, 9 Mar 2022 20:55:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhY+fWnLvMOO6m/jTpYLsyGKpWWo2KUAE5tx06dirRnQdasqdyBxoXuFbGDtsVbQu4yrcp X-Received: by 2002:a17:903:2c5:b0:14f:4a29:1f64 with SMTP id s5-20020a17090302c500b0014f4a291f64mr3102220plk.90.1646888142411; Wed, 09 Mar 2022 20:55:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646888142; cv=none; d=google.com; s=arc-20160816; b=lKDreOT2txPhjDxPoFn8PmyCSNa+Cum3SmGZmUNx4OfBIq+qkSHuf2Wxj6sDeyKydo dHX8KyhijXnG0h5JmGDF//2vBrMJbwzXAAj0Ckn+j+ZljmYAZ1ZKy6JdnkU9nVXckIlC XU7vO3si84n6MbObG2xFa2n73Yx2suOwuBJqf2c3AElZCA2lItbFzD1LObcADzKZ4ndB 5mXjmjjk5QlLWrhCw//TZgBr8oCJ/UCpCUeGwYEVpz9aUiyMaWOH+uEYiaJnCfQFbULj ynVN9H0Tkh9JdXPqewIC6+Jv83yA7sQsu3Kp32G4s2SbMamvYQiScWh3NAGln8q0nSmW nhng== ARC-Message-Signature: i=1; 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; bh=dMHkM0fiRcN2q4sRw69xupstm8QaOA+PLyy7/RysQYM=; b=C110jUFaUyXuxQSNrcHoQ5nzc0EQpFHx80dKN6K0aZtwQXTLgkfod6cIof8oa9w2xC 6sjDt2cBwpcdewJI1p0xu/oHwLulZLtojTHhsOE5K5o8EwQ9KA6B9l5iRxc8S+28kBO3 IuORlGF3NOHSWOZtHuCkVs5nCwji/sefFwNMoHJZRK4aHN+kNWGHeyAKvwF8Wrp9oorp QjHVS1Gsi38rRy56h5XDt1APahkq6dRLUJ98d/AC+C0zbsH/JHxgK3n5zjjuy4o8CVfP tf10L0egDZVT9Ar6aTz87aB1Iqp5QB3+/MJk11F+IiwHslBZDm6ISoPzjm/0m5AJbONB Fo5g== ARC-Authentication-Results: i=1; mx.google.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a63e949000000b003805b6c2e72si3853516pgj.156.2022.03.09.20.55.10; Wed, 09 Mar 2022 20:55:42 -0800 (PST) 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; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239174AbiCJDRO (ORCPT + 99 others); Wed, 9 Mar 2022 22:17:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238404AbiCJDRN (ORCPT ); Wed, 9 Mar 2022 22:17:13 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D09D213CD3; Wed, 9 Mar 2022 19:16:12 -0800 (PST) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4KDZ1M6RllzdZnM; Thu, 10 Mar 2022 11:14:47 +0800 (CST) Received: from dggpeml100025.china.huawei.com (7.185.36.37) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 10 Mar 2022 11:16:10 +0800 Received: from dggpeml100016.china.huawei.com (7.185.36.216) by dggpeml100025.china.huawei.com (7.185.36.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 10 Mar 2022 11:16:10 +0800 Received: from dggpeml100016.china.huawei.com ([7.185.36.216]) by dggpeml100016.china.huawei.com ([7.185.36.216]) with mapi id 15.01.2308.021; Thu, 10 Mar 2022 11:16:10 +0800 From: "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" To: Jason Wang , "mst@redhat.com" , "sgarzare@redhat.com" , "stefanha@redhat.com" CC: "virtualization@lists.linux-foundation.org" , "kvm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "Gonglei (Arei)" , Yechuan , Huangzhichao Subject: RE: [RFC 2/3] vdpa: support exposing the count of vqs to userspace Thread-Topic: [RFC 2/3] vdpa: support exposing the count of vqs to userspace Thread-Index: AQHYC4S7IoB0Irjpnk2WF3yFNTfs4qxnk/AAgFCtsGA= Date: Thu, 10 Mar 2022 03:16:10 +0000 Message-ID: <4e1870fed35f487b8cc2a5d112e7c41b@huawei.com> References: <20220117092921.1573-1-longpeng2@huawei.com> <20220117092921.1573-3-longpeng2@huawei.com> <1a26d7b3-1020-50c5-f0a3-ebc645cdcddf@redhat.com> In-Reply-To: <1a26d7b3-1020-50c5-f0a3-ebc645cdcddf@redhat.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.148.223] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,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 SGkgSmFzb24sDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogSmFzb24g V2FuZyBbbWFpbHRvOmphc293YW5nQHJlZGhhdC5jb21dDQo+IFNlbnQ6IFR1ZXNkYXksIEphbnVh cnkgMTgsIDIwMjIgMTE6MDggQU0NCj4gVG86IExvbmdwZW5nIChNaWtlLCBDbG91ZCBJbmZyYXN0 cnVjdHVyZSBTZXJ2aWNlIFByb2R1Y3QgRGVwdC4pDQo+IDxsb25ncGVuZzJAaHVhd2VpLmNvbT47 IG1zdEByZWRoYXQuY29tOyBzZ2FyemFyZUByZWRoYXQuY29tOw0KPiBzdGVmYW5oYUByZWRoYXQu Y29tDQo+IENjOiB2aXJ0dWFsaXphdGlvbkBsaXN0cy5saW51eC1mb3VuZGF0aW9uLm9yZzsga3Zt QHZnZXIua2VybmVsLm9yZzsNCj4gbGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZzsgbmV0ZGV2 QHZnZXIua2VybmVsLm9yZzsgR29uZ2xlaSAoQXJlaSkNCj4gPGFyZWkuZ29uZ2xlaUBodWF3ZWku Y29tPjsgWWVjaHVhbiA8eWVjaHVhbkBodWF3ZWkuY29tPjsgSHVhbmd6aGljaGFvDQo+IDxodWFu Z3poaWNoYW9AaHVhd2VpLmNvbT4NCj4gU3ViamVjdDogUmU6IFtSRkMgMi8zXSB2ZHBhOiBzdXBw b3J0IGV4cG9zaW5nIHRoZSBjb3VudCBvZiB2cXMgdG8gdXNlcnNwYWNlDQo+IA0KPiANCj4g5Z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