On 2/24/2016 8:45 PM, Thomas Monjalon wrote: >> Huawei Xie (4): >> eal: make the comment more accurate >> eal: set kdrv to RTE_KDRV_NONE if kernel driver isn't manipulating the >> device. >> virtio: return 1 to tell the kernel we don't take over this device >> virtio: check if kernel driver is manipulating the virtio device > The virtio PCI code has been refactored. > Please Huawei, would it be possible to rebase on master?
OK. Since IO port map is moved to EAL layer, it is not straightforward like before for virtio PMD to distinguish the reason why port map fails. We have two choices. Return 1 to the upper layer to say that we don't take over the device for all the map failures or we check the driver type, return -1 for UIO/VFIO driver error, return 1 for kernel driver, which is a bit overelaborate. >