Re: [PATCH v3 04/18] driver core: platform: Add driver dma ownership management

From: Christoph Hellwig
Date: Mon Dec 06 2021 - 09:36:46 EST


I really hate the amount of boilerplate code that having this in each
bus type causes.

Between that and the suggestion from Joerg I wonder if we could do the
following again:

- add new no_kernel_dma flag to struct device_driver
- set this flag for the various vfio drivers
- skip claiming the kernel dma ownership for those (or rather release
it if the suggestion from Joerg works out)