[Intel-gfx] [PATCH v14 19/26] vfio: Test kvm pointer in _vfio_device_get_kvm_safe()
Jason Gunthorpe
jgg at nvidia.com
Fri Jul 14 14:11:59 UTC 2023
On Mon, Jul 10, 2023 at 07:59:21PM -0700, Yi Liu wrote:
> This saves some lines when adding the kvm get logic for the vfio_device
> cdev path.
>
> This also renames _vfio_device_get_kvm_safe() to be vfio_device_get_kvm_safe().
>
> Suggested-by: Jason Gunthorpe <jgg at nvidia.com>
> Signed-off-by: Yi Liu <yi.l.liu at intel.com>
> ---
> drivers/vfio/group.c | 7 +------
> drivers/vfio/vfio.h | 6 +++---
> drivers/vfio/vfio_main.c | 5 ++++-
> 3 files changed, 8 insertions(+), 10 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Jason
More information about the Intel-gfx
mailing list