Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/isa Skip legacy device detection for VMware gue...



details:   https://anonhg.NetBSD.org/src/rev/b6e30c043464
branches:  trunk
changeset: 989533:b6e30c043464
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 16 13:15:01 2021 +0000

description:
Skip legacy device detection for VMware guests with ACPI enabled.

diffstat:

 sys/arch/x86/isa/isa_machdep.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r f182b971f3b4 -r b6e30c043464 sys/arch/x86/isa/isa_machdep.c
--- a/sys/arch/x86/isa/isa_machdep.c    Sat Oct 16 13:09:40 2021 +0000
+++ b/sys/arch/x86/isa/isa_machdep.c    Sat Oct 16 13:15:01 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: isa_machdep.c,v 1.48 2021/10/15 19:01:52 jmcneill Exp $        */
+/*     $NetBSD: isa_machdep.c,v 1.49 2021/10/16 13:15:01 jmcneill Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.48 2021/10/15 19:01:52 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isa_machdep.c,v 1.49 2021/10/16 13:15:01 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -387,6 +387,11 @@
                            "no-legacy-devices", true);
                }
        }
+       if (vm_guest == VM_GUEST_VMWARE &&
+           device_is_a(dev, "isa") && acpi_active) {
+               prop_dictionary_set_bool(device_properties(dev),
+                   "no-legacy-devices", true);
+       }
 #endif /* NACPICA > 0 */
        return NULL;
 }



Home | Main Index | Thread Index | Old Index