Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3079031ybn; Fri, 27 Sep 2019 00:20:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI1MMssVlW0Bdhu1Nes7n6x4uKk6WsrbzW0wmdH+2BlyyS18nVgbddyTuKLo7vnGAXj1Ea X-Received: by 2002:a17:906:ecea:: with SMTP id qt10mr6683255ejb.23.1569568819500; Fri, 27 Sep 2019 00:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569568819; cv=none; d=google.com; s=arc-20160816; b=Kb7Ka+NSOEdf6vjoJ9MrR+B7b8BXMccOIpKZ5dELqQYPizTHpuA50geAMjSPhzaNvW gMbiMC0RUz7HLbqhaKJZFqkLwRbZipyv7JeEH6o/LzPh3t/Zml1Rlo61Q3kZLsteT/uM 7l6Li0PI2r+pvAeCNZOmH8tklKlMmzuszQQXUfgkzy4Yvd5oGiDG3XFmEpcDTMB8LlJX sdIy3kryydvnk9tYykksY+QndTTh4ADLH37Kd8bw6xWkQyiBNRANWGasT+SnE2dgFV7o C7hWmr7KMRZmOrvms+ucQ7TkOORAJOkBKvVaw8deAU6l89s+ZJxFt5J2Sg9lWzVNc26K KmBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=CQS3e6oLzbkkzbcYsoIgChSyWZoL6akqrNohQzHfuLk=; b=R7xyWsBrjSBwZRFyzKHJ/720RpbJh4AlUuO6geQXpSZeG6zjZdX95qPmh9xY0mi87V H2y0QFyEp4iPG3uYNvhWiYqlEc0Pd2EiV5jD4bhS0IAuMrrSVOnZ4D6G9Y3BxoVtLvw/ ssIi8NTGHyMblbORoqQQjT3uh4UddG2AxERQO1LM40lz09aDTIeCXg6blljs6fXTT4zo kTItxFU8riOYaI297I6KFJ3Qp/+8Elmbjz/6EbjUAZ0G9hvtMEIkxgQNjHoqyUTzBPHL TSmK4Pq0/3w2fhAKoZ9h4JJyqK4Ny2TwSQIJh6CBB9C+7TTg/4rJwF9etYCxC1hHqbZp Twjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si939969edq.221.2019.09.27.00.19.53; Fri, 27 Sep 2019 00:20:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726413AbfI0HRh (ORCPT + 99 others); Fri, 27 Sep 2019 03:17:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47764 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725804AbfI0HRh (ORCPT ); Fri, 27 Sep 2019 03:17:37 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 33E1B2114; Fri, 27 Sep 2019 07:17:37 +0000 (UTC) Received: from [10.72.12.30] (ovpn-12-30.pek2.redhat.com [10.72.12.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6A1A81000337; Fri, 27 Sep 2019 07:17:26 +0000 (UTC) Subject: Re: [PATCH] vhost: introduce mdev based hardware backend To: Tiwei Bie Cc: mst@redhat.com, alex.williamson@redhat.com, maxime.coquelin@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, dan.daly@intel.com, cunming.liang@intel.com, zhihong.wang@intel.com, lingshan.zhu@intel.com References: <20190926045427.4973-1-tiwei.bie@intel.com> <1b4b8891-8c14-1c85-1d6a-2eed1c90bcde@redhat.com> <20190927045438.GA17152@___> From: Jason Wang Message-ID: <64a1f619-138f-cd21-e996-84724935e4c8@redhat.com> Date: Fri, 27 Sep 2019 15:17:24 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190927045438.GA17152@___> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.71]); Fri, 27 Sep 2019 07:17:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/27 下午12:54, Tiwei Bie wrote: >> The name could be confusing, get_queue_max() is to get the maximum number of >> entries for a virtqueue supported by this device. > OK. It might be better to rename it to something like: > > get_vq_num_max() > > which is more consistent with the set_vq_num(). > Yes, will do in next version. Thanks