Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1313263imm; Mon, 9 Jul 2018 22:52:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpczaFGTwDE/lWolXJVFIHjA24k4K/fay6kaBh4pyCUoNeQ3UkVJuZU3Sc50b1MheBFdSDWo X-Received: by 2002:a17:902:64c2:: with SMTP id y2-v6mr23255070pli.53.1531201947242; Mon, 09 Jul 2018 22:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531201947; cv=none; d=google.com; s=arc-20160816; b=qtk/SQQa87hUCcMrTXjwMYz/lYedrAiPGZqGWEk4kwZZ+HCIYoocOI4BlhC8xUWu0W x8x1QKagCCS1THOEAn0LVStEkP0eojehl7oohCKIjKe3iFh1fPcml8wi+aM8b4dPYe49 NzuxOXa2KMLQcf+Dv+Y3jLGzbo6G6hAlxJ54DF377CQUguEK5OvV8fzyUlD0bx2h/MRD dbhzpt7xxT27JYKSP3oGe9pL1BPAKe86tAo3Jhr+1I+W7DZcGzzK//iyKzUlWwqy+j5R NgrA65TGJb//Msv72AaNilt4YRLE7kE0FqT7sfsOVRbqM3k88ksiMlbp15kd4kYRuS62 aUjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=zdYsVuKFKORKOJS5Zv4On37Haq8K/UVTyB7T8WG/JVY=; b=ugwwf5pGwQRPTFoKKqaeD0T6ZiRa2xe1U7BHqGsXODUdYkbM8diAvLbX3sNLJtQ6pY kZIpRkGqRFpYcRct9BkZfkhD0b1GbITRoWHKdeiKT5j1xtKiP5v6jU07s0dDn3GkmhiC 0yLoWAPUcqZNcxiFmXzwxkZc7htUCAAF1Ncztma3SBB0RVDdErw3heQjcrqPZsaguwPN +t55TPJbPlZkjC6Z2cEUY3jkasx6cqDHOuI31VTW1R8UgveDEIbmY6gGLTdda4V+o3K4 3RgsaUg58otuhVrrGp1XspHXXcEw8FKYgW0ENbMYF3Mq47hnZG1gj8FS2mvHe+04S4hm 5Sug== 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 k80-v6si2191481pfg.42.2018.07.09.22.52.12; Mon, 09 Jul 2018 22:52:27 -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 S1751351AbeGJFvb (ORCPT + 99 others); Tue, 10 Jul 2018 01:51:31 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50812 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751042AbeGJFv2 (ORCPT ); Tue, 10 Jul 2018 01:51:28 -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 E1B5740122D4; Tue, 10 Jul 2018 05:51:27 +0000 (UTC) Received: from [10.72.12.151] (ovpn-12-151.pek2.redhat.com [10.72.12.151]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C895A2026D6B; Tue, 10 Jul 2018 05:51:23 +0000 (UTC) Subject: Re: [PATCH net-next v1 5/5] virtio_ring: enable packed ring To: Tiwei Bie , mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, virtio-dev@lists.oasis-open.org Cc: wexu@redhat.com, jfreimann@redhat.com References: <20180709072241.8886-1-tiwei.bie@intel.com> <20180709072241.8886-6-tiwei.bie@intel.com> From: Jason Wang Message-ID: <27ae72ad-247b-e8f0-aa37-a75a719e0e01@redhat.com> Date: Tue, 10 Jul 2018 13:51:20 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180709072241.8886-6-tiwei.bie@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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]); Tue, 10 Jul 2018 05:51:27 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Tue, 10 Jul 2018 05:51:27 +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 On 2018年07月09日 15:22, Tiwei Bie wrote: > Signed-off-by: Tiwei Bie > --- > drivers/s390/virtio/virtio_ccw.c | 8 ++++++++ > drivers/virtio/virtio_ring.c | 2 ++ > 2 files changed, 10 insertions(+) > > diff --git a/drivers/s390/virtio/virtio_ccw.c b/drivers/s390/virtio/virtio_ccw.c > index 8f5c1d7f751a..ff5b85736d8d 100644 > --- a/drivers/s390/virtio/virtio_ccw.c > +++ b/drivers/s390/virtio/virtio_ccw.c > @@ -765,6 +765,11 @@ static u64 virtio_ccw_get_features(struct virtio_device *vdev) > return rc; > } > > +static void ccw_transport_features(struct virtio_device *vdev) > +{ > + __virtio_clear_bit(vdev, VIRTIO_F_RING_PACKED); > +} I think we need a better comment to explain why it was disabled here. Thanks > + > static int virtio_ccw_finalize_features(struct virtio_device *vdev) > { > struct virtio_ccw_device *vcdev = to_vc_device(vdev); > @@ -791,6 +796,9 @@ static int virtio_ccw_finalize_features(struct virtio_device *vdev) > /* Give virtio_ring a chance to accept features. */ > vring_transport_features(vdev); > > + /* Give virtio_ccw a chance to accept features. */ > + ccw_transport_features(vdev); > + > features->index = 0; > features->features = cpu_to_le32((u32)vdev->features); > /* Write the first half of the feature bits to the host. */ > diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c > index 4b3f9e1a3cab..64f20023f088 100644 > --- a/drivers/virtio/virtio_ring.c > +++ b/drivers/virtio/virtio_ring.c > @@ -1968,6 +1968,8 @@ void vring_transport_features(struct virtio_device *vdev) > break; > case VIRTIO_F_IOMMU_PLATFORM: > break; > + case VIRTIO_F_RING_PACKED: > + break; > default: > /* We don't understand this bit. */ > __virtio_clear_bit(vdev, i);