Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/virtio: implement virtio_gpu_shutdown

Calling drm_dev_unplug() is the drm way to say the device
is gone and can not be accessed any more.

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20250507082821.2710706-1-kraxel@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

authored by

Gerd Hoffmann and committed by
Michael S. Tsirkin
2507789a 89a216ed

+4 -4
+4 -4
drivers/gpu/drm/virtio/virtgpu_drv.c
··· 130 130 131 131 static void virtio_gpu_shutdown(struct virtio_device *vdev) 132 132 { 133 - /* 134 - * drm does its own synchronization on shutdown. 135 - * Do nothing here, opt out of device reset. 136 - */ 133 + struct drm_device *dev = vdev->priv; 134 + 135 + /* stop talking to the device */ 136 + drm_dev_unplug(dev); 137 137 } 138 138 139 139 static void virtio_gpu_config_changed(struct virtio_device *vdev)