From 12769c516d9356bd92f90e2f53a4853dbfdc4aed Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 21 Feb 2019 15:38:07 -0800 Subject: [PATCH] os-support/solaris: Set IOPL for input thread too Since the Solaris kernel tracks IOPL per thread, and doesn't inherit raised IOPL levels when creating a new thread, we need to turn it on in the input thread for input drivers like vmmouse that need register access to work correctly. Signed-off-by: Alan Coopersmith --- hw/xfree86/os-support/solaris/sun_vid.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/os-support/solaris/sun_vid.c b/hw/xfree86/os-support/solaris/sun_vid.c index 553010cc1..edb0a1172 100644 --- a/hw/xfree86/os-support/solaris/sun_vid.c +++ b/hw/xfree86/os-support/solaris/sun_vid.c @@ -76,7 +76,11 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem) void xf86OSInputThreadInit() { - return; + /* + * Need to enable in input thread as well, as Solaris kernel tracks + * IOPL per-thread and doesn't inherit when creating a new thread. + */ + xf86EnableIO(); } Bool