Skip to content

Commit

Permalink
Improved libvirt/virtio support for Windows 7 (#1, #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
inga-lovinde committed Aug 20, 2020
1 parent 5787a02 commit bcd3960
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions RadeonResetBugFixService/Devices/KnownDevices.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace RadeonResetBugFixService.Devices
{
using System;
using System.Linq;
using Contracts;

static class KnownDevices
Expand All @@ -13,10 +14,12 @@ public static bool IsAmdVideo(DeviceInfo device)

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);
}
}
}

0 comments on commit bcd3960

Please sign in to comment.