Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1888002imm; Sun, 15 Jul 2018 20:30:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdfTvz1drsaiYWSkn05rRsNc5tUIwpml73AilVCaakwpGTpjMge/g9/daOgEc8cnwobnkId X-Received: by 2002:a63:4a61:: with SMTP id j33-v6mr14055783pgl.436.1531711819438; Sun, 15 Jul 2018 20:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531711819; cv=none; d=google.com; s=arc-20160816; b=VTKIeHuwTq3btV+zKmBmNoMztHImxtoZrqzrnFsY5OxrIEOneQeobyCwvPfO19WToa Cc0hICJalLtEUKlbGC6Wye9hywijIkJ+AKoNZTM2Fo5rFcbrxmBkhGF2SEf/vKYEUiGK DJA42Wg/n4IY2GwnwVHhQeRgT+oHBq3TIYLrGgZk3S2zvYII+/+Y/A1NQIHxN/OqooPO U1xyOKTcW1Q/isu2BmjGpA8WQId5c9XhbgZ31lCjgwjBsjs8bWZNbWSujdinJ/jwtGwt XNPTR8/Mx2cujQAOw1lsY/ujziaiO6mkh7Fo1m++deJoKQ7k8tAibr2gyqUWtc5tMdSW PsUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=CzCwqlk+i/bUujc76BKZJCZsRcUFTt7NaJAM9XLwPgs=; b=0I9DKWg7yvAAGWxYMYH/5yfTlkuBKH6wvXSdaPh4x825bk+9Z1CurWHSGf1k93G3J1 JW9Y+gfuDagik+D8XC9kkvmWogmGb9NJ7eiq7mupTbUA9ibBTblpMPGiKRlmfbZ7REEp nCZsWjSy/i1Q3gSUwTxkdpv/etrmEtqrhT2yIaOCwSmVRPGUGyaeevl0DsL/PqMToKVi dtPT0+p57sMzxzMs6LT8lx+D55t8M2ebrLN6UxHZVk6fjcQXUNthukSgmyyperYACgpk ZoSkTiYQaqbuedTIxUWx9+e6RN8fDucgq3pqPDqlLpTq0m8qAFtxWjkvrrnd96BV6HIH RE8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8-v6si28779387pgl.101.2018.07.15.20.30.04; Sun, 15 Jul 2018 20:30:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731213AbeGPDyV (ORCPT + 99 others); Sun, 15 Jul 2018 23:54:21 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47510 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727298AbeGPDyV (ORCPT ); Sun, 15 Jul 2018 23:54:21 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0A20B401EF04; Mon, 16 Jul 2018 03:29:05 +0000 (UTC) Received: from jason-ThinkPad-T450s.redhat.com (ovpn-12-140.pek2.redhat.com [10.72.12.140]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1EE9D2026D66; Mon, 16 Jul 2018 03:29:00 +0000 (UTC) From: Jason Wang To: mst@redhat.com, jasowang@redhat.com Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, wexu@redhat.com, jfreimann@redhat.com, tiwei.bie@intel.com, maxime.coquelin@redhat.com Subject: [PATCH net-next V2 8/8] vhost: enable packed virtqueues Date: Mon, 16 Jul 2018 11:28:11 +0800 Message-Id: <1531711691-6769-9-git-send-email-jasowang@redhat.com> In-Reply-To: <1531711691-6769-1-git-send-email-jasowang@redhat.com> References: <1531711691-6769-1-git-send-email-jasowang@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 16 Jul 2018 03:29:05 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 16 Jul 2018 03:29:05 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jasowang@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Jason Wang --- drivers/vhost/vhost.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index 3a7fc4b..0dfe864 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -264,7 +264,8 @@ enum { (1ULL << VIRTIO_RING_F_EVENT_IDX) | (1ULL << VHOST_F_LOG_ALL) | (1ULL << VIRTIO_F_ANY_LAYOUT) | - (1ULL << VIRTIO_F_VERSION_1) + (1ULL << VIRTIO_F_VERSION_1) | + (1ULL << VIRTIO_F_RING_PACKED) }; static inline bool vhost_has_feature(struct vhost_virtqueue *vq, int bit) -- 2.7.4