[dpdk-dev] [PATCH] virtio: fix wrong features returned for legacy virtio

Bruce Richardson bruce.richardson at intel.com
Mon Mar 14 11:48:31 CET 2016


On Thu, Mar 10, 2016 at 03:50:54PM +0800, Yuanhan Liu wrote:
> On Thu, Mar 10, 2016 at 08:43:37AM +0100, David Marchand wrote:
> > On Thu, Mar 10, 2016 at 8:01 AM, Yuanhan Liu
> > <yuanhan.liu at linux.intel.com> wrote:
> > > Declare dst as type uint32_t instead of uint64_t, otherwise, we will get
> > > a random upper 32 bit feature bits, as the following io port read reads
> > > lower 32 bit only. It could lead a feature bits that include VIRTIO_F_VERSION_1
> > > (the 32th bit) for legacy virtio, which is obviously wrong.
> > >
> > > Fixes: b8f04520ad71 ("virtio: use PCI ioport API")
> > >
> > > Cc: David Marchand <david.marchand at 6wind.com>
> > > Signed-off-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
> > 
> > Argh, good catch.
> > Relooked at my patch, this should be the only bug (of this kind ;-)).
> 
> Yes, I also have a check while making this patch.
> 
> 	--yliu
> > 
> > Reviewed-by: David Marchand <david.marchand at 6wind.com>
> > 
> > 
> > -- 
> > David Marchand
Hi,

this patch no longer applies to dpdk-next-net/rel_16_04 branch due to changes
in legacy_get_features function. Is it still needed? If so, please do a V2.

Regards,
/Bruce


More information about the dev mailing list