Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1038310pxa; Wed, 5 Aug 2020 20:28:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4kl9YWvw1aoZs7RWHpv3eVGoW8qSV+VE527NekpZUwW/dabQJoX8drzq5Rfkz81DB4Zrj X-Received: by 2002:aa7:d899:: with SMTP id u25mr2065359edq.255.1596684480036; Wed, 05 Aug 2020 20:28:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596684480; cv=none; d=google.com; s=arc-20160816; b=kCygf+Bc0N9UP+GYC2TmiiZPFhOlndg4BX5wfR8EbA3uS/SkmNXAudHMwYaiN6gD1E xYrsBYrX0uJrM+5cgjaMGrg1pOPc4/JXr3IGK/lSxkQAGHpLBZma1t96D1Rtcad++b7G o0x4a338Oo7FYUe6nFGl2NS8ArossVRo/Dg6WIj03QzxdTXV1/Zaq5e5+3Y7CSb+qWO6 0MMx+4zuV7m2DJeIAj1IXnKcPl9ofYMgflZdrNyUhtfje/FjFzxx/6DJN+es1E1arvei K2+v+cjAHy09dhCz73lZyNl0TO6oJku+YouU4T9rqzlF0VKB/uFybJ8pWreZ2PP5N+Sb XJ5w== 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:dkim-signature; bh=jWjXO7HLm05C7oJyO5GWR+Ll9CJGwirJV/KI2VEIAUU=; b=0GRposnc54+tkU9xyh2fWm+DKnO7X1mboC7YXyAtmEzXc28+Q7S8TpsPQVCVaAVd7l W1Z9ad4Lsp8id/73C9Rn7pjdS3MdD97ZJUOpl78XBmqQy59o8CnFI4FwXMUDfKgsPyNg sJAONWYskC50MpNpPI5AhsBgfPfP1Daw4xfHyONDDrzMxY4tEZwgughmUxRHO9njcj9V l10NU/066aAZrGXT5JvyBZSrLGwkod7Z3rVlrm7Lmow+00/0bggxbT+TMemgQISpll0l CZOsmtMCCxuiy7W8MV9RNQNz10wLzYU4ZyZmYrare95WvH5rNrncDQ6xz+hVpB8CzF5O xTkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IsSb7UXt; 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 x9si2602198edj.121.2020.08.05.20.27.36; Wed, 05 Aug 2020 20:28:00 -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=IsSb7UXt; 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 S1730474AbgHFDZ2 (ORCPT + 99 others); Wed, 5 Aug 2020 23:25:28 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:51205 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730146AbgHFDZZ (ORCPT ); Wed, 5 Aug 2020 23:25:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1596684324; 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=jWjXO7HLm05C7oJyO5GWR+Ll9CJGwirJV/KI2VEIAUU=; b=IsSb7UXt12z6axsyzcJGmr/8N5gx0uzJVta2Ynw5wFHKj5r43VZTPXz58VBOqziOp2mAGx Y3WU/UQJE/fH4sZdZdLb1YMBE6M5r3tyN9k6KdQJfhzz9YrbIdLyVCTqXndTjSHK1WMM1i c4wIlG8PpM6rG2KghQywHH4vDruY+5M= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-195-dPB3X9flMuegRBT0BUE2jw-1; Wed, 05 Aug 2020 23:25:22 -0400 X-MC-Unique: dPB3X9flMuegRBT0BUE2jw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AB0BD106B244; Thu, 6 Aug 2020 03:25:20 +0000 (UTC) Received: from [10.72.13.140] (ovpn-13-140.pek2.redhat.com [10.72.13.140]) by smtp.corp.redhat.com (Postfix) with ESMTP id A824219C71; Thu, 6 Aug 2020 03:25:12 +0000 (UTC) Subject: Re: [PATCH 1/4] vdpa: introduce config op to get valid iova range To: "Michael S. Tsirkin" Cc: virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, rob.miller@broadcom.com, lingshan.zhu@intel.com, eperezma@redhat.com, lulu@redhat.com, shahafs@mellanox.com, hanand@xilinx.com, mhabets@solarflare.com, gdawar@xilinx.com, saugatm@xilinx.com, vmireyno@marvell.com, zhangweining@ruijie.com.cn, eli@mellanox.com References: <20200617032947.6371-1-jasowang@redhat.com> <20200617032947.6371-2-jasowang@redhat.com> <20200805085035-mutt-send-email-mst@kernel.org> From: Jason Wang Message-ID: <777d6e78-4271-10e9-4546-329f53962429@redhat.com> Date: Thu, 6 Aug 2020 11:25:11 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200805085035-mutt-send-email-mst@kernel.org> 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.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/8/5 下午8:51, Michael S. Tsirkin wrote: > On Wed, Jun 17, 2020 at 11:29:44AM +0800, Jason Wang wrote: >> This patch introduce a config op to get valid iova range from the vDPA >> device. >> >> Signed-off-by: Jason Wang >> --- >> include/linux/vdpa.h | 14 ++++++++++++++ >> 1 file changed, 14 insertions(+) >> >> diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h >> index 239db794357c..b7633ed2500c 100644 >> --- a/include/linux/vdpa.h >> +++ b/include/linux/vdpa.h >> @@ -41,6 +41,16 @@ struct vdpa_device { >> unsigned int index; >> }; >> >> +/** >> + * vDPA IOVA range - the IOVA range support by the device >> + * @start: start of the IOVA range >> + * @end: end of the IOVA range >> + */ >> +struct vdpa_iova_range { >> + u64 start; >> + u64 end; >> +}; >> + > This is ambiguous. Is end in the range or just behind it? In the range. > How about first/last? Sure. Thanks > > >