Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2316440imm; Tue, 10 Jul 2018 18:08:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfZEVEyPBoHoQTcXQagrV6DUdEq0+K9K97o95k9z6Vk38ALHH45MXLPBjE4KZzkr+CaH8ig X-Received: by 2002:a17:902:b115:: with SMTP id q21-v6mr26383966plr.97.1531271317947; Tue, 10 Jul 2018 18:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531271317; cv=none; d=google.com; s=arc-20160816; b=YnZTuUCwWl8C/tUE7Mz2vAQDpgsPbMn5Ha1C5UeiK/VCy6JNyo91SqpSN4tj4t9+LZ Ei3yoPo8rccFs17xx9eI1/htxHCo6BfkxX0XzW2Fptr104Qp9FZ9hWas4i8l6FfrXw2H a0cyI0+6zgiu2YEWGrNtXLLvKs7HX3wG81M63Ie8vf/ksaNy3kwMC3f5jbqh4hysUeuN I6h78a6/Ulkoyxgpnqq7a4FkMf7P2lp7H3eQGlI1RXseFJ2O4LY3NFlfoCHszbcdqfXV J1XB0Mm05IaEiwG2NPHnctfLQq2gLnhEJTt1wDE2Rz844v5Xoyl2QOXsS0YaU2CL3CGe i6Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=TMr4LzlCA3ijX6xwh2Glt/2DxdWsqG8RbLv1Cj9P8t8=; b=W2BdQdpu/7b2Zs82AcgEFusWo1+8U0xDLwu1i2rOSM/LDk6vpcYiAzkV3y9Vs6ukDw 8A4N6b7SztIXFwL24skyJhr3+S2emvyesqhSMH+iROiFfsF5Ac3cdJUJnFOYfRke3GsU ptLUoWgXBuQUctdKKyVWHkYA24TBT+OgtoR/zNL8h4XMPtm9TD1NshGDw/z/XWLrELsZ tO7CDIbtDOQLMUpBKCDQuhISCQKdhtEtW1tOtVCQsWhpK2pebtZu9tFup7p9NFUk7QSG 7h6GpcmyMs+PDBS7s0PCPDTdnhGxLIr0y6nJSkyUbOhqRyPS7cidrgoOtK5ZhQS9Lr7T 5oSQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3-v6si17343609pld.223.2018.07.10.18.08.22; Tue, 10 Jul 2018 18:08:37 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732356AbeGKBJ3 (ORCPT + 99 others); Tue, 10 Jul 2018 21:09:29 -0400 Received: from mga11.intel.com ([192.55.52.93]:21851 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732278AbeGKBJ2 (ORCPT ); Tue, 10 Jul 2018 21:09:28 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jul 2018 18:07:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,336,1526367600"; d="scan'208";a="63764520" Received: from debian.sh.intel.com (HELO debian) ([10.67.104.228]) by FMSMGA003.fm.intel.com with ESMTP; 10 Jul 2018 18:07:43 -0700 Date: Wed, 11 Jul 2018 09:07:30 +0800 From: Tiwei Bie To: Jason Wang Cc: mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, virtio-dev@lists.oasis-open.org, wexu@redhat.com, jfreimann@redhat.com Subject: Re: [PATCH net-next v1 5/5] virtio_ring: enable packed ring Message-ID: <20180711010730.GA28235@debian> References: <20180709072241.8886-1-tiwei.bie@intel.com> <20180709072241.8886-6-tiwei.bie@intel.com> <27ae72ad-247b-e8f0-aa37-a75a719e0e01@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <27ae72ad-247b-e8f0-aa37-a75a719e0e01@redhat.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 10, 2018 at 01:51:20PM +0800, Jason Wang wrote: > 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. Yeah, I'll do it! Best regards, Tiwei Bie > > 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); >