Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp9596pxk; Wed, 23 Sep 2020 20:24:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLAGlHOZPJ+iC2hlv/rTedtHRnF8SmwpBu4S7MvsTNakkBZv8xa0q0ieMMQAPJW66wclWb X-Received: by 2002:a17:906:4154:: with SMTP id l20mr2844057ejk.68.1600917858505; Wed, 23 Sep 2020 20:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600917858; cv=none; d=google.com; s=arc-20160816; b=zq1t5eY6whuErez9oHaGF5hAqua/6eG5rTyX01e9BnYDCjziO3uYSviLaTRP9QME4r SCzzgPWVDPYD+I2ozS/JHSAszg4psANj0coiVLZUC64yD5eVgxclsDS7BSZzP1vZlyOd 9+CGy0lpGO4v4/IIrsXRtaMDGj/joahEq2HBe8T+usHGNfidrEn1htR0AjWext5GbbTQ nwueeuMnusFm8Pfrd3s2mPvz8oMD8w14RyV9Dr1QI0eDwHBYz7/B9UOcIXS6hLkmko0L NKtaz6R0uhdgsg0wK6jgowyj+4WqIiF7OpLGitEK24qLiNdG/lnRUk4xa+ZZFNL/qpUp fY/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=257+bopw92IH4lZUaMeS+qFgZVg0lxCZVzMn3r9TfiQ=; b=TDbgPl94rL0v7Z0kG+9KuYSXwfJQfUgdV8G/TN+3yYu8psodJq44BaqY/inL8KMVcz XupwOzm3uNSyZmukyL/wntDY/nSXi9mvWW/rAxJM4LWf2Pf5sj3kSNPF8i4laBLh05sj LQW3m0AZsMl++9cE+a+GBRPvFPgcgfcueM8Sx/xl5sFDPfBtYDCdiYMtHKqgmp6f8t+b ZGcz/v6IrX/sJWBKmdMx6fWPbxNqmvXWH1np7N1y4boz3Erg/0TBC+5lZ3PNvwDIqLY1 82jI1hceGkDyiN4UT3nC82mYmCqxkk42dlkhz6z9elQOlT6uzo8WCU4AyMIfLtPcevZe o+xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KJL95JSB; 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 h11si1170989ejo.55.2020.09.23.20.23.54; Wed, 23 Sep 2020 20:24:18 -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=KJL95JSB; 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 S1726743AbgIXDWU (ORCPT + 99 others); Wed, 23 Sep 2020 23:22:20 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:32529 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbgIXDWT (ORCPT ); Wed, 23 Sep 2020 23:22:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600917738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=257+bopw92IH4lZUaMeS+qFgZVg0lxCZVzMn3r9TfiQ=; b=KJL95JSBmuvU1Ezw0J4MC5NHa6uY9Cp04BOoJSgAAav4UmpFIbl6vXGK9WYu8CJ4f/snZR PSXY40wUMaBkMuHtNNwE2A6zxy1Vi3gv6p8whEmwElqa7X2I8OoG4NWoIdw3zhu9FM1rbj r3UUQXPNXXnC0otliNFCzbJIx+lL+/Y= 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-549-jfZrj1e2NzeZh3mlnXquqg-1; Wed, 23 Sep 2020 23:22:14 -0400 X-MC-Unique: jfZrj1e2NzeZh3mlnXquqg-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 8CEBB186DD32; Thu, 24 Sep 2020 03:22:12 +0000 (UTC) Received: from jason-ThinkPad-X1-Carbon-6th.redhat.com (ovpn-13-193.pek2.redhat.com [10.72.13.193]) by smtp.corp.redhat.com (Postfix) with ESMTP id A837055768; Thu, 24 Sep 2020 03:22:06 +0000 (UTC) From: Jason Wang To: mst@redhat.com, jasowang@redhat.com Cc: lulu@redhat.com, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, rob.miller@broadcom.com, lingshan.zhu@intel.com, eperezma@redhat.com, hanand@xilinx.com, mhabets@solarflare.com, eli@mellanox.com, amorenoz@redhat.com, maxime.coquelin@redhat.com, stefanha@redhat.com, sgarzare@redhat.com Subject: [RFC PATCH 03/24] vhost: move the backend feature bits to vhost_types.h Date: Thu, 24 Sep 2020 11:21:04 +0800 Message-Id: <20200924032125.18619-4-jasowang@redhat.com> In-Reply-To: <20200924032125.18619-1-jasowang@redhat.com> References: <20200924032125.18619-1-jasowang@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We should store feature bits in vhost_types.h as what has been done for e.g VHOST_F_LOG_ALL. Signed-off-by: Jason Wang --- include/uapi/linux/vhost.h | 5 ----- include/uapi/linux/vhost_types.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h index 75232185324a..c26452782882 100644 --- a/include/uapi/linux/vhost.h +++ b/include/uapi/linux/vhost.h @@ -89,11 +89,6 @@ /* Set or get vhost backend capability */ -/* Use message type V2 */ -#define VHOST_BACKEND_F_IOTLB_MSG_V2 0x1 -/* IOTLB can accept batching hints */ -#define VHOST_BACKEND_F_IOTLB_BATCH 0x2 - #define VHOST_SET_BACKEND_FEATURES _IOW(VHOST_VIRTIO, 0x25, __u64) #define VHOST_GET_BACKEND_FEATURES _IOR(VHOST_VIRTIO, 0x26, __u64) diff --git a/include/uapi/linux/vhost_types.h b/include/uapi/linux/vhost_types.h index 9a269a88a6ff..532571571b4b 100644 --- a/include/uapi/linux/vhost_types.h +++ b/include/uapi/linux/vhost_types.h @@ -144,4 +144,9 @@ struct vhost_vdpa_config { /* vhost-net should add virtio_net_hdr for RX, and strip for TX packets. */ #define VHOST_NET_F_VIRTIO_NET_HDR 27 +/* Use message type V2 */ +#define VHOST_BACKEND_F_IOTLB_MSG_V2 0x1 +/* IOTLB can accept batching hints */ +#define VHOST_BACKEND_F_IOTLB_BATCH 0x2 + #endif -- 2.20.1