You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.6 KiB
45 lines
1.6 KiB
1 month ago
|
From 755065d997fecae798c808631318f4f9032d5444 Mon Sep 17 00:00:00 2001
|
||
|
From: "Lain \"Fearyncess\" Yang" <fsf@live.com>
|
||
|
Date: Thu, 30 May 2024 13:51:40 +0800
|
||
|
Subject: [PATCH] hwdb: add a vmbus id for HyperV Video device
|
||
|
|
||
|
(cherry picked from commit 0230235b574b4215b38c4f08a39eb6fc98e3ee85)
|
||
|
|
||
|
Related: RHEL-5950
|
||
|
---
|
||
|
hwdb.d/60-seat.hwdb | 7 +++++++
|
||
|
hwdb.d/parse_hwdb.py | 2 +-
|
||
|
2 files changed, 8 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/hwdb.d/60-seat.hwdb b/hwdb.d/60-seat.hwdb
|
||
|
index fcb8f53cd1..927ea025a2 100644
|
||
|
--- a/hwdb.d/60-seat.hwdb
|
||
|
+++ b/hwdb.d/60-seat.hwdb
|
||
|
@@ -28,6 +28,13 @@ fb:pci:v000018CAd00000020*
|
||
|
fb:pci:v00001414d00005353*
|
||
|
ID_TAG_MASTER_OF_SEAT=1
|
||
|
|
||
|
+# In some HyperV VMs, the video device only can be recognized by a vmbus id.
|
||
|
+# So we should add a vmbus id for HyperV Video device.
|
||
|
+#
|
||
|
+# This id is extracted from Linux kernel's hyperv.h
|
||
|
+fb:vmbus:02780ada77e3ac4a8e770558eb1073f8
|
||
|
+ ID_TAG_MASTER_OF_SEAT=1
|
||
|
+
|
||
|
#########################################
|
||
|
# Parallels
|
||
|
#########################################
|
||
|
diff --git a/hwdb.d/parse_hwdb.py b/hwdb.d/parse_hwdb.py
|
||
|
index 4c970dcbc8..64382db533 100755
|
||
|
--- a/hwdb.d/parse_hwdb.py
|
||
|
+++ b/hwdb.d/parse_hwdb.py
|
||
|
@@ -74,7 +74,7 @@ UDEV_TAG = Word(string.ascii_uppercase, alphanums + '_')
|
||
|
# Those patterns are used in type-specific matches
|
||
|
TYPES = {'mouse': ('usb', 'bluetooth', 'ps2', '*'),
|
||
|
'evdev': ('name', 'atkbd', 'input'),
|
||
|
- 'fb': ('pci'),
|
||
|
+ 'fb': ('pci', 'vmbus'),
|
||
|
'id-input': ('modalias'),
|
||
|
'touchpad': ('i8042', 'rmi', 'bluetooth', 'usb'),
|
||
|
'joystick': ('i8042', 'rmi', 'bluetooth', 'usb'),
|