From patchwork Fri Feb 6 05:06:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Nicholas A. Bellinger" X-Patchwork-Id: 5788571 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 96E5C9F88A for ; Fri, 6 Feb 2015 05:40:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C0A4D20160 for ; Fri, 6 Feb 2015 05:40:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EC4EE20165 for ; Fri, 6 Feb 2015 05:40:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753700AbbBFFj6 (ORCPT ); Fri, 6 Feb 2015 00:39:58 -0500 Received: from mail-ob0-f180.google.com ([209.85.214.180]:49681 "EHLO mail-ob0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752255AbbBFFjx (ORCPT ); Fri, 6 Feb 2015 00:39:53 -0500 Received: by mail-ob0-f180.google.com with SMTP id vb8so11318868obc.11 for ; Thu, 05 Feb 2015 21:39:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mFLSOUUGCo2gluX1Lbw+Pqr3902gzPDOGTqPnUhlE64=; b=g/t6JLPiNqeWeOkz886rDa7t7JRvKqeO89UqqmhO+wv5NdT3Adl8uzkBCr0eqSfSbA RQ1/lXVS4Rjh9GIZEe/BsjqAgrjysm60W73jbPcsJoSAw4fxKnrVb/vpvjZKrZyyr+6U spwkjqZ+63JU3amHnnLZZnGaANyLBslI6YJmKklqLpDfyjrRYgDc0yKXOvM/OFydFdcc 2GT3o7DVaxrq8o0AOcg8tA+4gwg4178YDdCpDYmfXjk5kuoHo15C7HOWPfo+sykKJkkx 7zyU/32P59NGF6Dl4rQD9M9ljvXAtrKjn5q9fpgBZkt/EC+9yX75CpX4ZqWoN+XH4zGq Gw5g== X-Gm-Message-State: ALoCoQlMxuz5MJMp80ARKIm2T1EV7Zjzzu8MQosvnFf2KjQQaMjoQoUsOMG59rA0LVEIryYONIDm X-Received: by 10.182.233.202 with SMTP id ty10mr1324150obc.12.1423201192672; Thu, 05 Feb 2015 21:39:52 -0800 (PST) Received: from localhost.localdomain (mail.linux-iscsi.org. [67.23.28.174]) by mx.google.com with ESMTPSA id x8sm800393obg.18.2015.02.05.21.39.52 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Feb 2015 21:39:52 -0800 (PST) From: "Nicholas A. Bellinger" To: target-devel Cc: linux-scsi , kvm-devel , Paolo Bonzini , "Michael S. Tsirkin" , Al Viro , Christoph Hellwig , Nicholas Bellinger Subject: [PATCH-v4 6/8] vhost/scsi: Set VIRTIO_F_ANY_LAYOUT + VIRTIO_F_VERSION_1 feature bits Date: Fri, 6 Feb 2015 05:06:39 +0000 Message-Id: <1423199201-14659-7-git-send-email-nab@daterainc.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1423199201-14659-1-git-send-email-nab@daterainc.com> References: <1423199201-14659-1-git-send-email-nab@daterainc.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Nicholas Bellinger Signal support of VIRTIO_F_ANY_LAYOUT + VIRTIO_F_VERSION_1 feature bits required for virtio-scsi 1.0 spec layout requirements. Cc: Michael S. Tsirkin Acked-by: Michael S. Tsirkin Cc: Paolo Bonzini Signed-off-by: Nicholas Bellinger --- drivers/vhost/scsi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c index e53959f..b5e2b40 100644 --- a/drivers/vhost/scsi.c +++ b/drivers/vhost/scsi.c @@ -173,7 +173,9 @@ enum { /* Note: can't set VIRTIO_F_VERSION_1 yet, since that implies ANY_LAYOUT. */ enum { VHOST_SCSI_FEATURES = VHOST_FEATURES | (1ULL << VIRTIO_SCSI_F_HOTPLUG) | - (1ULL << VIRTIO_SCSI_F_T10_PI) + (1ULL << VIRTIO_SCSI_F_T10_PI) | + (1ULL << VIRTIO_F_ANY_LAYOUT) | + (1ULL << VIRTIO_F_VERSION_1) }; #define VHOST_SCSI_MAX_TARGET 256