[Spice-devel] [qxl] qxl: call provider init

Christophe Fergeau cfergeau at redhat.com
Mon Jun 19 10:08:33 UTC 2017


From: Dave Airlie <airlied at redhat.com>

This prevents crashes when multiple QXL devices are configured in a VM.

https://bugzilla.redhat.com/show_bug.cgi?id=1428340
---
 src/qxl_drmmode.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/qxl_drmmode.c b/src/qxl_drmmode.c
index ff164cd..a2f84b1 100644
--- a/src/qxl_drmmode.c
+++ b/src/qxl_drmmode.c
@@ -938,6 +938,9 @@ Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp)
 	for (i = 0; i < drmmode->mode_res->count_connectors; i++)
 	    drmmode_output_init(pScrn, drmmode, i);
 
+#if XF86_CRTC_VERSION >= 5
+	xf86ProviderSetup(pScrn, NULL, "qxl");
+#endif
 	xf86InitialConfiguration(pScrn, TRUE);
 
 	return TRUE;
-- 
2.13.0



More information about the Spice-devel mailing list