All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915/gvt: Add missing vfio_unregister_group_dev() call
@ 2022-09-29 17:48 ` Jason Gunthorpe
  0 siblings, 0 replies; 38+ messages in thread
From: Jason Gunthorpe @ 2022-09-29 17:48 UTC (permalink / raw)
  To: David Airlie, Daniel Vetter, dri-devel, intel-gfx, intel-gvt-dev,
	Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	Zhenyu Wang
  Cc: Christoph Hellwig, stable

When converting to directly create the vfio_device the mdev driver has to
put a vfio_register_emulated_iommu_dev() in the probe() and a pairing
vfio_unregister_group_dev() in the remove.

This was missed for gvt, add it.

Cc: stable@vger.kernel.org
Fixes: 978cf586ac35 ("drm/i915/gvt: convert to use vfio_register_emulated_iommu_dev")
Reported-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
---
 drivers/gpu/drm/i915/gvt/kvmgt.c | 1 +
 1 file changed, 1 insertion(+)

Should go through Alex's tree.

diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c
index 41bba40feef8f4..9003145adb5a93 100644
--- a/drivers/gpu/drm/i915/gvt/kvmgt.c
+++ b/drivers/gpu/drm/i915/gvt/kvmgt.c
@@ -1615,6 +1615,7 @@ static void intel_vgpu_remove(struct mdev_device *mdev)
 	if (WARN_ON_ONCE(vgpu->attached))
 		return;
 
+	vfio_unregister_group_dev(&vgpu->vfio_device);
 	vfio_put_device(&vgpu->vfio_device);
 }
 

base-commit: c72e0034e6d4c36322d958b997d11d2627c6056c
-- 
2.37.3


^ permalink raw reply related	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2022-10-19 10:52 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-29 17:48 [Intel-gfx] [PATCH] drm/i915/gvt: Add missing vfio_unregister_group_dev() call Jason Gunthorpe
2022-09-29 17:48 ` Jason Gunthorpe
2022-09-29 17:48 ` Jason Gunthorpe
2022-09-29 20:04 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for " Patchwork
2022-09-30  1:47 ` [Intel-gfx] [PATCH] " Tian, Kevin
2022-09-30  1:47   ` Tian, Kevin
2022-09-30  1:47   ` Tian, Kevin
2022-09-30  6:46 ` [Intel-gfx] " Christoph Hellwig
2022-09-30  6:46   ` Christoph Hellwig
2022-09-30 21:31 ` [Intel-gfx] " Alex Williamson
2022-09-30 21:31   ` Alex Williamson
2022-09-30 21:31   ` Alex Williamson
2022-10-05 20:17 ` [Intel-gfx] " Alex Williamson
2022-10-05 20:17   ` Alex Williamson
2022-10-05 20:17   ` Alex Williamson
2022-10-05 22:03   ` [Intel-gfx] " Alex Williamson
2022-10-05 22:03     ` Alex Williamson
2022-10-05 22:03     ` Alex Williamson
2022-10-06 11:37     ` [Intel-gfx] " Jason Gunthorpe
2022-10-06 11:37       ` Jason Gunthorpe
2022-10-06 11:37       ` Jason Gunthorpe
2022-10-06 18:31       ` [Intel-gfx] " Alex Williamson
2022-10-06 18:31         ` Alex Williamson
2022-10-06 18:31         ` Alex Williamson
2022-10-10 23:14         ` [Intel-gfx] " Tian, Kevin
2022-10-10 23:14           ` Tian, Kevin
2022-10-10 23:14           ` Tian, Kevin
2022-10-19  9:40         ` [Intel-gfx] " Wang, Zhi A
2022-10-19  9:40           ` Wang, Zhi A
2022-10-19  9:40           ` Wang, Zhi A
2022-10-19 10:13           ` [Intel-gfx] " Tian, Kevin
2022-10-19 10:13             ` Tian, Kevin
2022-10-19 10:13             ` Tian, Kevin
2022-10-06 11:35   ` [Intel-gfx] " Jason Gunthorpe
2022-10-06 11:35     ` Jason Gunthorpe
2022-10-06 11:35     ` Jason Gunthorpe
2022-10-05 21:16 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gvt: Add missing vfio_unregister_group_dev() call (rev2) Patchwork
2022-10-05 21:38 ` [Intel-gfx] ✗ Fi.CI.BAT: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.