-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
SSDT-HV-VMBUS.dsl
54 lines (49 loc) · 1.4 KB
/
SSDT-HV-VMBUS.dsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Hyper-V VMBUS SSDT to enable ACPI node identification.
*
* AppleACPIPlatform requires standard _HID values for proper EFI device
* path generation, and will not work with the default string values Hyper-V provides.
*
* Requires the following ACPI patches:
* (1) Base: \_SB.VMOD
* Comment: _HID to XHID rename (Hyper-V VMOD)
* Count: 1
* Find: _HID
* Replace: XHID
* TableSignature: 44534454 (DSDT)
* (2) Base: \_SB.VMOD.VMBS
* Comment: _HID to XHID rename (Hyper-V VMBus)
* Count: 1
* Find: _HID
* Replace: XHID
* TableSignature: 44534454 (DSDT)
*/
DefinitionBlock ("", "SSDT", 2, "ACDT", "HVVMBUS", 0x00000000)
{
External (\_SB.VMOD, DeviceObj)
External (\_SB.VMOD.XHID, MethodObj)
External (\_SB.VMOD.VMBS, DeviceObj)
External (\_SB.VMOD.VMBS.XHID, MethodObj)
Scope (\_SB.VMOD)
{
Method (_HID, 0, NotSerialized)
{
If (_OSI ("Darwin"))
{
Return (EisaId ("VMD0001"))
}
Return (\_SB.VMOD.XHID())
}
}
Scope (\_SB.VMOD.VMBS)
{
Method (_HID, 0, NotSerialized)
{
If (_OSI ("Darwin"))
{
Return (EisaId ("VBS0001"))
}
Return (\_SB.VMOD.VMBS.XHID())
}
}
}