[dpdk-dev] [PATCH v3 1/4] vfio: drop fallback Linux implementation

Burakov, Anatoly anatoly.burakov at intel.com
Mon Nov 1 14:57:14 CET 2021


On 01-Nov-21 6:27 AM, Xia, Chenbo wrote:
> Hi Anatoly,
> 
>> -----Original Message-----
>> From: dev <dev-bounces at dpdk.org> On Behalf Of Anatoly Burakov
>> Sent: Thursday, October 28, 2021 10:15 PM
>> To: dev at dpdk.org
>> Subject: [dpdk-dev] [PATCH v3 1/4] vfio: drop fallback Linux implementation
>>
>> Currently, VFIO support for Linux is compiled unconditionally, and
>> supported kernel versions start with 4.4, so VFIO is assumed to always
>> be enabled. There is no way of disabling VFIO support at compile time
>> anyway, so just drop the "VFIO not available" fallback code altogether.
>>
>> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
>> ---
>>   lib/eal/linux/eal_vfio.c | 110 ---------------------------------------
>>   1 file changed, 110 deletions(-)
>>
> 
> If we make the 'kernel >= 4.4' assumption, should other 'VFIO_PRESENT' in eal
> and drivers be deleted as well? It seems strange to me as eal_vfio already
> assumes it supports vfio but drivers and other eal components still have the
> check.

We still need those checks because those drivers are also compiled on 
FreeBSD etc. - so we're not removing the VFIO check, we're just removing 
the fallback implementation for Linux that was, at one point, possible, 
but now isn't.

> 
> Thanks,
> Chenbo
> 


-- 
Thanks,
Anatoly


More information about the dev mailing list