From bcd39606e4abb9e8ea100e53e9bea71709e6f947 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Fri, 21 Aug 2020 00:05:56 +0300 Subject: [PATCH] Improved libvirt/virtio support for Windows 7 (#1, #4) --- RadeonResetBugFixService/Devices/KnownDevices.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/RadeonResetBugFixService/Devices/KnownDevices.cs b/RadeonResetBugFixService/Devices/KnownDevices.cs index d96b05a..20385cb 100644 --- a/RadeonResetBugFixService/Devices/KnownDevices.cs +++ b/RadeonResetBugFixService/Devices/KnownDevices.cs @@ -1,6 +1,7 @@ namespace RadeonResetBugFixService.Devices { using System; + using System.Linq; using Contracts; static class KnownDevices @@ -13,10 +14,12 @@ public static bool IsVirtualVideo(DeviceInfo device) { - return ( - device.Service.Equals("hypervideo", StringComparison.OrdinalIgnoreCase) || // Hyper-V video adapter - device.Service.Equals("qxldod", StringComparison.OrdinalIgnoreCase) // virtio/libvirt for Win8+ - ); + return new[] + { + "hypervideo", // Hyper-V video adapter + "qxldod", // virtio/libvirt for Win8+ + "qxl", // virtio/libvirt for Win7 + }.Contains(device.Service, StringComparer.OrdinalIgnoreCase); } } }