Re: [PATCH v2 01/11] genirq/affinity:: Export irq_create_affinity_masks()

From: Yongji Xie
Date: Tue Dec 06 2022 - 03:40:56 EST


On Tue, Dec 6, 2022 at 4:18 PM Christoph Hellwig <hch@xxxxxx> wrote:
>
> On Mon, Dec 05, 2022 at 04:41:17PM +0800, Xie Yongji wrote:
> > Export irq_create_affinity_masks() so that some modules
> > can make use of it to implement interrupt affinity
> > spreading mechanism.
>
> I don't think driver should be building low-level affinity masks.

With the vDPA framework, some drivers (vduse, vdpa-sim) can create
software-defined virtio devices and attach them to the virtio bus.
This kind of virtio device is not a pci device or a platform device.
So it would be needed to export this function if we want to implement
the automatic affinity management for the virtio device driver which
is binded to this device.

Thanks,
Yongji