From: Lain "Fearyncess" Yang Date: Thu, 30 May 2024 05:51:40 +0000 (+0800) Subject: hwdb: add a vmbus id for HyperV Video device X-Git-Tag: v256-rc4~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0230235b574b4215b38c4f08a39eb6fc98e3ee85;p=thirdparty%2Fsystemd.git hwdb: add a vmbus id for HyperV Video device --- diff --git a/hwdb.d/60-seat.hwdb b/hwdb.d/60-seat.hwdb index fcb8f53cd1e..927ea025a20 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 4c970dcbc80..64382db5332 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'),