Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1082771ybh; Thu, 16 Jul 2020 02:38:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkpByj+RLie1mKmrVmnEG3Wjkmp7o99iPlnUJcZ3BgvbWgz9utScb5UGTn6vFUvhNnTwn4 X-Received: by 2002:a50:eac5:: with SMTP id u5mr3767773edp.6.1594892292914; Thu, 16 Jul 2020 02:38:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594892292; cv=none; d=google.com; s=arc-20160816; b=s8AVeoMb5y2DA75vDJWXJZpbDwK4F9XvDhGJ2CvHgRVEKTC6GuGTcT/fokJqx4OpOW jgaNJ9IxjmIdyOt7AXublkjEhKFatkF5ctTENg+8ism2EbGCT6IYmRJ8INiz8cuuDayW e5Z0pX9GDW3Bqhn/L7v76acWdVU3iPklJfqsf0Wc1TUsHlMRm5iX2vZGhWFQ/XiByKD0 5AOFmgfwNkMQXO4hfUDNWl5qgI9/kJ26BImvddl8uza8qB1c/m9Pi6pPAoKMdAXXz3oD PguQmei5/XvNi9VC0ale13mVCHGH8Jqx1IV/V3RTzFLqumMWWaUft3dl8toRig10xrcu ioSA== 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=IJFxd0jLmfzMQe2B9WNqDr2oh3ke3LZeNfHLfAyP12M=; b=or9+8fto2DgtJKBLAREYscroJo0JAfn6ZTe756qRXUVPUQK/xzZd9o0koBgyyarNm/ 5N77fnuKzCvbH29T2X6Feuzf8bQ/dB977UbfSLf2xMXSw6c9vAO1cGWEwykaLXetXtqB aWxm+yervj1tCzFYl8re3B3+iSFKWNru1uzdX8dfsDjpJ1Qfnln+XOtly6/G4+sB/osg hkB1Hlx0rwV74TWpiYpoaFjLs5oE3l3/r+lX/73+IIJdcwckj2XDiXYVSEYzX/w6hk3C te1kx1oTtYyzJWAE4MVY0CORgbuIPEiKJU4yDS87+c2isY8fv30u/qZpMlPvvKBYvQQu qCXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RD67+ys1; 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 a3si3010012ejd.449.2020.07.16.02.37.50; Thu, 16 Jul 2020 02:38:12 -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=RD67+ys1; 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 S1726585AbgGPJfb (ORCPT + 99 others); Thu, 16 Jul 2020 05:35:31 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:38269 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726080AbgGPJfb (ORCPT ); Thu, 16 Jul 2020 05:35:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594892130; 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=IJFxd0jLmfzMQe2B9WNqDr2oh3ke3LZeNfHLfAyP12M=; b=RD67+ys1TUuu8QrLchyEvQ97UfCNMF1ukS+t9KMYJjXvgjBejkXa0lIl7saGdE1wfLfT2q sb7quTd/0msd9P0eJlz1Mj45+WtXiYs5H6B3OiWenkFrN7sI/+3NB7L57tiqnJccw2ADnu uT68gO5wHDDf9JtPhP32VysPm79BWJc= 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-27-OiUrh0QhPKywNJPooNFGRQ-1; Thu, 16 Jul 2020 05:35:26 -0400 X-MC-Unique: OiUrh0QhPKywNJPooNFGRQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F25961005269; Thu, 16 Jul 2020 09:35:24 +0000 (UTC) Received: from [10.72.12.131] (ovpn-12-131.pek2.redhat.com [10.72.12.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id DACCD5D9DC; Thu, 16 Jul 2020 09:35:19 +0000 (UTC) Subject: Re: [PATCH vhost next 06/10] vdpa: Add means to communicate vq status on get_vq_state To: Eli Cohen Cc: mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, shahafs@mellanox.com, saeedm@mellanox.com, Parav Pandit References: <20200716072327.5359-1-eli@mellanox.com> <20200716072327.5359-7-eli@mellanox.com> <20200716082116.GA182860@mtl-vdi-166.wap.labs.mlnx> From: Jason Wang Message-ID: <296e6fcb-946c-f577-2e22-46528f78fda9@redhat.com> Date: Thu, 16 Jul 2020 17:35:18 +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: <20200716082116.GA182860@mtl-vdi-166.wap.labs.mlnx> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/16 下午4:21, Eli Cohen wrote: > On Thu, Jul 16, 2020 at 04:11:00PM +0800, Jason Wang wrote: >> On 2020/7/16 下午3:23, Eli Cohen wrote: >>> Currently, get_vq_state() is used only to pass the available index value >>> of a vq. Extend the struct to return status on the VQ to the caller. >>> For now, define VQ_STATE_NOT_READY. In the future it will be extended to >>> include other infomration. >>> >>> Modify current vdpa driver to update this field. >>> >>> Reviewed-by: Parav Pandit >>> Signed-off-by: Eli Cohen >> What's the difference between this and get_vq_ready()? >> >> Thanks >> > There is no difference. It is just a way to communicate a problem to > with the state of the VQ back to the caller. This is not available now. > I think an asynchronous is preferred but that is not available > currently. I still don't see the reason, maybe you can give me an example? Thanks