vbox: fix ACPI dsl for newer iASL versions

The patch reflects the changes done in VirtualBox 5 and is at least
needed on Ubuntu 16.04.

Fixes #2068.
This commit is contained in:
Josef Söntgen 2016-08-23 16:07:44 +02:00 committed by Christian Helmuth
parent a1d9ed1d8a
commit fbe127cdf4
3 changed files with 32 additions and 1 deletions

View File

@ -1 +1 @@
d2beb20e61ac2fa809c41a656e4b2c3c71ead4f6
8163ec9421249f80de3e717555c3919a25d125fa

View File

@ -9,3 +9,4 @@ usb.patch
tm_smp.patch
vbox_dd.patch
force_ioapic.patch
vbox-cpuhotplug.dsl.patch

View File

@ -0,0 +1,30 @@
--- a/src/app/virtualbox/src/VBox/Devices/PC/vbox-cpuhotplug.dsl
+++ b/src/app/virtualbox/src/VBox/Devices/PC/vbox-cpuhotplug.dsl
@@ -27,6 +27,18 @@
Return(LEqual(CPUL, 0x01))
}
+ // Method to notify the VMM that a CPU is not
+ // in use anymore and can be safely removed.
+ // Using the extra method here because the CPUL
+ // register identifer clashes with the CPUL object defined
+ // below making iasl starting with version 20150930 fail.
+ //
+ // Think of CPLO as "CPU Lock Open"
+ Method(CPLO, 1)
+ {
+ Store (Arg0, CPUL)
+ }
+
Scope (\_SB)
{
@@ -73,7 +85,7 @@
} \
Method(_EJ0, 1) \
{ \
- Store(id, CPUL) /* Unlock the CPU */ \
+ CPLO(id) /* Unlock the CPU */ \
Return \
} \
} \