Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5259597pxv; Tue, 6 Jul 2021 22:40:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY2BmVFDHKmm1dkeOPRM0MC8/pX4Ovc+xOOX6feiM5KSRuUjq+7/VvKHRcuxSr+dehaei+ X-Received: by 2002:a05:6402:34cd:: with SMTP id w13mr1584549edc.377.1625636451692; Tue, 06 Jul 2021 22:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625636451; cv=none; d=google.com; s=arc-20160816; b=P8i7ef8bDZlX0auMARzkahKSXPZUEaNPWEFbGkRsxbZmKO+zhU8yYQDELCdSACxsef 54Pz58M7tJQmShKPquT4N5ziViNSJbTeQ/24RnjPjWz21w7m2gJRqtSGjpccStwGNPdN LR8bj8NiMRBr3XITKycE4Uf18Oc7XWchxJIWOBin00IrL34T+eVnbvo1FeOXpwcsi4Vh q0GarJ6D1weAko/3iyPJdEcAZM/yrVbUpWTkNquFzstTo1BJt+j0makbhrKLGfKtF1n5 0QUJrFXIgKEIfMtaJPFvfSPlFpr6BXjSC4rGG7ETourngZz/H73bjtsOwgc2/Ihiz9c/ rqNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kGTF9aX4UU8SQB/ux5DynjlqPbikwmwfckJttBuZsBQ=; b=Dz2wkzRwdlw+ya+v7mr6dMlc4BsMysCnvnO4PjxTrpniWNr8Y4SxMYEnJKMrgr4LNU YhJaLut2yxIqpc0rnRyHdKIzU66Z4oFgSqNqcWpJ3tv23SZi8G1N3xpIFQSOKWpGupGk 4lD+G6trxdOw3AW/cp5wKam/tTO5qYbLYxbmNpokJ0hjMOQM6oE7yqhnbPxHLDWMOB0c +mF8c38GtXc/0J+920zTmQtLspZ5cbgpeQqCeRRTLRykq90jgu37fyLhCiu25XVg+1Iq vicDAKDBwdN7hxzefyQlOKfgXlFWpvx2clQ7AMk0p0wzS40kc9bbbRlxAopdtsU04ts2 EvfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hlvV+6YF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ak17si20173367ejc.728.2021.07.06.22.40.27; Tue, 06 Jul 2021 22:40:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hlvV+6YF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbhGGFll (ORCPT + 99 others); Wed, 7 Jul 2021 01:41:41 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:41664 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbhGGFlk (ORCPT ); Wed, 7 Jul 2021 01:41:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625636340; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kGTF9aX4UU8SQB/ux5DynjlqPbikwmwfckJttBuZsBQ=; b=hlvV+6YFBirr9zSO3dcdhyI1VtRMHysCEyWZMrD0QhTeIQhh7uDpWGuY658AqxeI3t5jgc UehPjneZauR2xBx8fpycXEQKzF72F7m06ueh7riX8uSrYlhq/LExO5jMMYhr6zrB2pg3xb lokVmmhA6aP8WAVgdvdRQ4HdWpL8bPk= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-155-Lxfo5zMLP12IJfWCzNt0YQ-1; Wed, 07 Jul 2021 01:38:58 -0400 X-MC-Unique: Lxfo5zMLP12IJfWCzNt0YQ-1 Received: by mail-pj1-f72.google.com with SMTP id mm9-20020a17090b3589b029016e99e81994so3189877pjb.0 for ; Tue, 06 Jul 2021 22:38:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=kGTF9aX4UU8SQB/ux5DynjlqPbikwmwfckJttBuZsBQ=; b=G6VpL0Z+U1gPJPGnmOVb2DOZNsvbu+NxxDhGaCB+hWcXvPGDG5jEHgmOCdzVuzunU8 QwKH1ZuLM65WLmeQQ/p0jFt05mrRGDUagvwWWjfZXywYwf4UtT+qXK0Toys7+UgI1Hj2 TsQqeEccsFFdJSfrPigXu5p4UxNOmqRXtr8xgpp7u0e9rfSXMUTeKI3rY5G/pqRQ3v3/ bpjh3W99m5EB680AonOzZvQZDybIax+VrCZvQd42gvk6Uzfwerh53vqJXSiz/vyoZVxm E+w6Avtn1LVLkqJ3JRRWLosICw/Qa5qu8oKntkz6wJQD2FywHoxg90TXBLg5B10exsSo MCcg== X-Gm-Message-State: AOAM531QKb/eOXt32L3aZNsLdLUpIqbOFjWvQVs4lGNZ3rnQ/Ai2YEM0 rlcDNhi6OBcbySm1hclDWHn7BbzyQzPHw/X/uaf+YdYlCBs5UWU94lCGvD7QruFekQWaxQvfc2O zWMzwSSGuv3qcwptEgGal+N7G X-Received: by 2002:a63:d709:: with SMTP id d9mr24915997pgg.337.1625636337942; Tue, 06 Jul 2021 22:38:57 -0700 (PDT) X-Received: by 2002:a63:d709:: with SMTP id d9mr24915987pgg.337.1625636337752; Tue, 06 Jul 2021 22:38:57 -0700 (PDT) Received: from wangxiaodeMacBook-Air.local ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id pj4sm4703749pjb.18.2021.07.06.22.38.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jul 2021 22:38:57 -0700 (PDT) Subject: Re: [PATCH 1/2] vdpa: support per virtqueue max queue size To: Yongji Xie Cc: "Michael S. Tsirkin" , virtualization , linux-kernel , kvm , netdev@vger.kernel.org, Stefan Hajnoczi References: <20210705071910.31965-1-jasowang@redhat.com> From: Jason Wang Message-ID: Date: Wed, 7 Jul 2021 13:38:52 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/7/7 下午12:04, Yongji Xie 写道: >> static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp) >> { >> - struct vdpa_device *vdpa = v->vdpa; >> - const struct vdpa_config_ops *ops = vdpa->config; >> u16 num; >> >> - num = ops->get_vq_num_max(vdpa); >> + /* >> + * VHOST_VDPA_GET_VRING_NUM asssumes a global max virtqueue > s/asssumes/assumes. Other looks good to me. > > Thanks, > Yongji > Will fix. Thanks