mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
Merge branch 'fix_gvt' into 'master'
config: Ignore i915 gvt guest udev events to avoid crashing Closes #1386 See merge request xorg/xserver!1147
This commit is contained in:
commit
cd4c1f2462
1 changed files with 4 additions and 2 deletions
|
|
@ -124,7 +124,8 @@ device_added(struct udev_device *udev_device)
|
|||
#ifdef CONFIG_UDEV_KMS
|
||||
subsys = udev_device_get_subsystem(udev_device);
|
||||
|
||||
if (subsys && !strcmp(subsys, "drm")) {
|
||||
if (subsys && !strcmp(subsys, "drm") &&
|
||||
!udev_device_get_property_value(udev_device, "GVT_DISPLAY_READY")) {
|
||||
const char *sysname = udev_device_get_sysname(udev_device);
|
||||
|
||||
if (strncmp(sysname, "card", 4) != 0)
|
||||
|
|
@ -322,7 +323,8 @@ device_removed(struct udev_device *device)
|
|||
#ifdef CONFIG_UDEV_KMS
|
||||
const char *subsys = udev_device_get_subsystem(device);
|
||||
|
||||
if (subsys && !strcmp(subsys, "drm")) {
|
||||
if (subsys && !strcmp(subsys, "drm") &&
|
||||
!udev_device_get_property_value(device, "GVT_DISPLAY_READY")) {
|
||||
const char *sysname = udev_device_get_sysname(device);
|
||||
const char *path = udev_device_get_devnode(device);
|
||||
dev_t devnum = udev_device_get_devnum(device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue