Commit 2507789a authored by Gerd Hoffmann's avatar Gerd Hoffmann Committed by Michael S. Tsirkin
Browse files

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: default avatarGerd Hoffmann <kraxel@redhat.com>
Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
Tested-by: default avatarEric Auger <eric.auger@redhat.com>
Message-Id: <20250507082821.2710706-1-kraxel@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 89a216ed
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -130,10 +130,10 @@ static void virtio_gpu_remove(struct virtio_device *vdev)

static void virtio_gpu_shutdown(struct virtio_device *vdev)
{
	/*
	 * drm does its own synchronization on shutdown.
	 * Do nothing here, opt out of device reset.
	 */
	struct drm_device *dev = vdev->priv;

	/* stop talking to the device */
	drm_dev_unplug(dev);
}

static void virtio_gpu_config_changed(struct virtio_device *vdev)