From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 124B258E4 for ; Tue, 19 Jan 2016 09:02:36 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 19 Jan 2016 00:02:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,316,1449561600"; d="scan'208";a="863565705" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 19 Jan 2016 00:02:28 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.110.15) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 19 Jan 2016 00:02:23 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.215]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.117]) with mapi id 14.03.0248.002; Tue, 19 Jan 2016 16:02:22 +0800 From: "Xie, Huawei" To: Yuanhan Liu Thread-Topic: [dpdk-dev] [PATCH v4 7/8] virtio: add 1.0 support Thread-Index: AdFSEE7F024IClH9QuSR9YlAzWxVyw== Date: Tue, 19 Jan 2016 08:02:21 +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.127.40] 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 08:02:37 -0000 On 1/19/2016 3:44 PM, Xie, Huawei wrote:=0A= > 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 i= n=0A= >>> guest features.=0A= >> VIRTIO_F_VERSION_1 should not be set for legacy virtio device at all.=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= OK, I see the legacy_get_features return a 32bit value which masks the=0A= higher bits which contains the host VIRTIO_F_VERSION_1 feature. This is=0A= very implict.=0A= =0A= >> --yliu =0A= >>=0A= >=0A= =0A=