[Spice-devel] [PATCH 1/2] qxl-wddm-dod: fix behavior on v5 device

2020-07-12 Thread Yuri Benditovich
https://bugzilla.redhat.com/show_bug.cgi?id=1851845
v5 device requires explicit reset to switch to VGA mode.

Signed-off-by: Yuri Benditovich 
---
 qxldod/QxlDod.cpp | 4 +++-
 qxldod/QxlDod.h   | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/qxldod/QxlDod.cpp b/qxldod/QxlDod.cpp
index 7f03ee1..341518e 100755
--- a/qxldod/QxlDod.cpp
+++ b/qxldod/QxlDod.cpp
@@ -134,6 +134,7 @@ NTSTATUS QxlDod::CheckHardware()
 Header.DeviceID == 0x0100 &&
 Header.RevisionID >= 4)
 {
+m_Revision = Header.RevisionID;
 Status = STATUS_SUCCESS;
 }
 
@@ -4795,7 +4796,8 @@ NTSTATUS QxlDevice::HWClose(void)
 {
 PAGED_CODE();
 QxlClose();
-if (m_bUefiMode)
+/* QXL device rev 5+ requires explicit reset to switch to VGA mode */
+if (m_bUefiMode || m_pQxlDod->Revision() > 4)
 {
 DbgPrint(TRACE_LEVEL_INFORMATION, ("%s: Resetting the device\n", 
__FUNCTION__));
 WRITE_PORT_UCHAR((PUCHAR)(m_IoBase + QXL_IO_RESET), 0);
diff --git a/qxldod/QxlDod.h b/qxldod/QxlDod.h
index 016b1aa..24cbd39 100755
--- a/qxldod/QxlDod.h
+++ b/qxldod/QxlDod.h
@@ -720,6 +720,7 @@ private:
 KTIMER m_VsyncTimer;
 KDPC   m_VsyncTimerDpc;
 BOOLEAN m_bVsyncEnabled;
+UCHAR m_Revision = 0;
 LONG m_VsyncFiredCounter;
 public:
 QxlDod(_In_ DEVICE_OBJECT* pPhysicalDeviceObject);
@@ -819,6 +820,7 @@ public:
 return 
m_DxgkInterface.DxgkCbAcquirePostDisplayOwnership(m_DxgkInterface.DeviceHandle, 
);
 }
 VOID EnableVsync(BOOLEAN bEnable);
+UCHAR Revision() const { return m_Revision; }
 private:
 VOID CleanUp(VOID);
 NTSTATUS CheckHardware();
-- 
2.22.0.windows.1

___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel


[Spice-devel] [PATCH 2/2] qxl-wddm-dod: reduce verbosity of stampinf in build

2020-07-12 Thread Yuri Benditovich
Suppress unneeded stampinf logs during driver build.

Signed-off-by: Yuri Benditovich 
---
 qxldod/qxldod.vcxproj | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qxldod/qxldod.vcxproj b/qxldod/qxldod.vcxproj
index 15e36d9..0091b83 100755
--- a/qxldod/qxldod.vcxproj
+++ b/qxldod/qxldod.vcxproj
@@ -192,7 +192,7 @@
   Inf2Cat /driver:$(OutDir) /os:8_X86,6_3_X86
 
 
-  true
+  false
   
   
   
@@ -264,7 +264,7 @@
   Inf2Cat /driver:$(OutDir) 
/os:8_X64,Server8_X64,Server6_3_X64,6_3_X64
 
 
-  true
+  false
   
   
   
-- 
2.22.0.windows.1

___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel


[Spice-devel] last known good spice guest tools for WinXP guest?

2020-07-12 Thread Wesley Parish
Hi

I've got a Windows XP guest in a Gnome Box and I'm wondering which of
the earlier releases of the spice guest tools is known to work well
with Windows XP. It's a 64-bit, though I'm also intending to install
32-bit as well. (I've tried installing spice-guest-tools-latest but it
refuses to install.)

My OS is Fedora 31, x86_64, and the Gnome Boxes release is 3.36.

Thanks

Wesley Parish
___
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel