From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14246C2BA1A for ; Sun, 26 Apr 2020 07:03:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DCEC720700 for ; Sun, 26 Apr 2020 07:03:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="duEnkYC4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbgDZHDl (ORCPT ); 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