From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 6C9388D96 for ; Tue, 19 Jan 2016 08:52:24 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 18 Jan 2016 23:52:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,316,1449561600"; d="scan'208";a="884433313" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.66.49]) by fmsmga001.fm.intel.com with ESMTP; 18 Jan 2016 23:52:22 -0800 Date: Tue, 19 Jan 2016 15:54:32 +0800 From: Yuanhan Liu To: "Xie, Huawei" Message-ID: <20160119075432.GJ19531@yliu-dev.sh.intel.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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:52:24 -0000 On Tue, Jan 19, 2016 at 07:44:04AM +0000, Xie, Huawei wrote: > On 1/19/2016 1:53 PM, Yuanhan Liu wrote: > > On Mon, Jan 18, 2016 at 04:50:16PM +0000, Xie, Huawei wrote: > >> On 1/15/2016 12:34 PM, Yuanhan Liu wrote: > >>> -static void > >>> +static int > >>> virtio_negotiate_features(struct virtio_hw *hw) > >>> { > >>> uint64_t host_features; > >>> @@ -949,6 +949,22 @@ virtio_negotiate_features(struct virtio_hw *hw) > >>> hw->guest_features = vtpci_negotiate_features(hw, host_features); > >> Here if we are not modern device, we should remove VIRTIO_F_VERSION_1 in > >> guest features. > > VIRTIO_F_VERSION_1 should not be set for legacy virtio device at all. > > Yes, but here this patch sets this VIRTIO_F_VERSION_1 feature even for > legacy virtio device. > It doesn't cause issues, but better remove it for legacy virtio device. It's not set for legacy virtio device (at hw->guest_features), how could you remove it then??? --yliu