From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 5BBE18DA1 for ; Tue, 19 Jan 2016 08:44:08 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 18 Jan 2016 23:44:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,316,1449561600"; d="scan'208";a="31980140" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 18 Jan 2016 23:44:07 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 18 Jan 2016 23:44:07 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.110.14) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 18 Jan 2016 23:44:06 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.215]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.218]) with mapi id 14.03.0248.002; Tue, 19 Jan 2016 15:44:05 +0800 From: "Xie, Huawei" To: Yuanhan Liu Thread-Topic: [PATCH v4 7/8] virtio: add 1.0 support Thread-Index: AdFSEE7F024IClH9QuSR9YlAzWxVyw== Date: Tue, 19 Jan 2016 07:44:04 +0000 Message-ID: References: <1452581944-24838-1-git-send-email-yuanhan.liu@linux.intel.com> <1452832571-6156-1-git-send-email-yuanhan.liu@linux.intel.com> <1452832571-6156-8-git-send-email-yuanhan.liu@linux.intel.com> <20160119055513.GI19531@yliu-dev.sh.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.4.160] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v4 7/8] virtio: add 1.0 support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2016 07:44:08 -0000 On 1/19/2016 1:53 PM, Yuanhan Liu wrote:=0A= > On Mon, Jan 18, 2016 at 04:50:16PM +0000, Xie, Huawei wrote:=0A= >> On 1/15/2016 12:34 PM, Yuanhan Liu wrote:=0A= >>> -static void=0A= >>> +static int=0A= >>> virtio_negotiate_features(struct virtio_hw *hw)=0A= >>> {=0A= >>> uint64_t host_features;=0A= >>> @@ -949,6 +949,22 @@ virtio_negotiate_features(struct virtio_hw *hw)=0A= >>> hw->guest_features =3D vtpci_negotiate_features(hw, host_features);= =0A= >> Here if we are not modern device, we should remove VIRTIO_F_VERSION_1 in= =0A= >> guest features.=0A= > VIRTIO_F_VERSION_1 should not be set for legacy virtio device at all.=0A= =0A= Yes, but here this patch sets this VIRTIO_F_VERSION_1 feature even for=0A= legacy virtio device.=0A= It doesn't cause issues, but better remove it for legacy virtio device.=0A= =0A= >=0A= > --yliu =0A= >=0A= =0A=