[dpdk-dev] [PATCH v10 03/19] bus/pci: enable vfio unmap resource for secondary

Burakov, Anatoly anatoly.burakov at intel.com
Mon Jul 9 16:37:37 CEST 2018


On 09-Jul-18 4:36 AM, Qi Zhang wrote:
> Subroutine to unmap VFIO resource is shared by secondary and
> primary, and it does not work on the secondary process.
> The patch adds a dedicate function to handle the situation
> when a device is unmapped on a secondary process.
> 
> Signed-off-by: Qi Zhang <qi.z.zhang at intel.com>
> ---

Hi Qi,

Please correct me if i'm wrong here, but it seems like the unmapping 
code is shared between primary and secondary, and the difference comes 
from interrupts, bus mastering, and removing the device from tailq. Can 
we separate out the common code somehow?

-- 
Thanks,
Anatoly


More information about the dev mailing list