Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1622332ybz; Sun, 26 Apr 2020 00:27:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJ9niWyoggMTr1BvKJPyg3W6KTgrfV/oSypwqjIsVz1jwom/75Fv2J9kIQStRrwHIQfJmDz X-Received: by 2002:a17:906:b253:: with SMTP id ce19mr15124346ejb.341.1587886055360; Sun, 26 Apr 2020 00:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587886055; cv=none; d=google.com; s=arc-20160816; b=qnfJO5eZu/MqA0Y0N+ofA/AOP0wEZL2/9rhY570zACetpK09v3cl/cNRo98ZZMSV3p xK5BfTQ+uhAFJpp1CYuYPmuQ7KCmIg4jK1HWjXwhVnIQRCe9N3bb3zeSYZrWUxQmaOoT mN03U4YjxBzEZNFFJ4Z+nSEFyEQKieHO/QVcWXIF4evjv/0L6KY9zC1YOGwjOuIWHm35 wD/X7faio/IDh92xNPUJ0mGkC6BTESbiGfFeRtEhcr5F9/K8t9lCFsAbWSXPgrHjGCOy Ew8mWpTYOGe7ecigRMoq4CfcRoYMwjr9ZJFoARFK8DB/iIlOgoIarwL70u9c4SYqFRug nIow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=r0+g/GeTH0GPDYkRAev7qPNvYtgSpKx3yr1KGRbtER4=; b=b8rpuXT6Yv4YYsBfRWqGK2TACUIbpXDUxH/cunzVmE9m/TFKiIJDI4WwHheghWMwP3 x/g8riUBq3c/mJKp0Lc7m+YEvqC5suCj4Nx3nu4riUF/jmcnVtlxA7TKT3WsBaiPP+pi m2jlnDh/5QdyzfqLpxXcP8W9sWVGhlq7q9AHsPLRmS2y9ld9wOen7fevjE0gdJiWjhsU ub5VEnyFE1itEJ3rCeajqCkqkZeuBDiEe6kz5C2mn7du5qLUdjOB3viSGhrT30gYrocT oizDisEwAlKNiHZx7n9wWI5vbH8S4ALx6PfbUnrEL7wrK/Ak1esmKj/4O5L8Bw80dvKU FqFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=duEnkYC4; 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 h20si2590998ejb.126.2020.04.26.00.27.12; Sun, 26 Apr 2020 00:27:35 -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=duEnkYC4; 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 S1726261AbgDZHDl (ORCPT + 99 others); Sun, 26 Apr 2020 03:03:41 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:44416 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726125AbgDZHDl (ORCPT ); Sun, 26 Apr 2020 03:03:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587884620; 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=r0+g/GeTH0GPDYkRAev7qPNvYtgSpKx3yr1KGRbtER4=; b=duEnkYC4Okvi9AI0bjKhdmK+tlkVXIopRbL+YQHi5W1kqnNVkKgzfh3e0u6oH+1VXkMRS5 DAd9bb96iwUiQQ1tTfuOZZK/IKP7JnHsI/zb7AFx+UvfV5Ql8+9Sk8k+sQiqtszOPJ9FjL AWoOLO0LF3gDL0WpgJOQKjtBSaLQeDY= 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-286-akSujXFqO_it7sC_Ec1N1g-1; Sun, 26 Apr 2020 03:03:37 -0400 X-MC-Unique: akSujXFqO_it7sC_Ec1N1g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 86FF6108BD10; Sun, 26 Apr 2020 07:03:36 +0000 (UTC) Received: from [10.72.13.103] (ovpn-13-103.pek2.redhat.com [10.72.13.103]) by smtp.corp.redhat.com (Postfix) with ESMTP id C22375D714; Sun, 26 Apr 2020 07:03:30 +0000 (UTC) Subject: Re: [PATCH V2 1/2] vdpa: Support config interrupt in vhost_vdpa From: Jason Wang To: Zhu Lingshan , mst@redhat.com, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: lulu@redhat.com, dan.daly@intel.com, cunming.liang@intel.com References: <1587881384-2133-1-git-send-email-lingshan.zhu@intel.com> <1587881384-2133-2-git-send-email-lingshan.zhu@intel.com> <055fb826-895d-881b-719c-228d0cc9a7bf@redhat.com> Message-ID: Date: Sun, 26 Apr 2020 15:03:29 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <055fb826-895d-881b-719c-228d0cc9a7bf@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/4/26 =E4=B8=8B=E5=8D=882:58, Jason Wang wrote: >> >> diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h >> index 1813821..8663139 100644 >> --- a/drivers/vhost/vhost.h >> +++ b/drivers/vhost/vhost.h >> @@ -18,6 +18,8 @@ >> =C2=A0 typedef void (*vhost_work_fn_t)(struct vhost_work *work); >> =C2=A0 =C2=A0 #define VHOST_WORK_QUEUED 1 >> +#define VHOST_FILE_UNBIND -1 > > > I think it's better to document this in uapi.=20 I meant e.g in vhost_vring_file, we had a comment of unbinding: struct vhost_vring_file { =C2=A0=C2=A0=C2=A0 unsigned int index; =C2=A0=C2=A0=C2=A0 int fd; /* Pass -1 to unbind from file. */ }; Thanks