[SeaBIOS] [RFC][PATCH] cpu: implement CPEJ method for unpluging cpu
Chen Fan
chen.fan.fnst at cn.fujitsu.com
Thu Aug 29 03:46:35 CEST 2013
After OS ejecting a vcpu successful, it will call CPEJ method,
there communicate the masked vcpu bitmap to QEMU.
Signed-off-by: Chen Fan <chen.fan.fnst at cn.fujitsu.com>
---
src/acpi-dsdt-cpu-hotplug.dsl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/acpi-dsdt-cpu-hotplug.dsl b/src/acpi-dsdt-cpu-hotplug.dsl
index 0f3e83b..b25963c 100644
--- a/src/acpi-dsdt-cpu-hotplug.dsl
+++ b/src/acpi-dsdt-cpu-hotplug.dsl
@@ -34,7 +34,11 @@ Scope(\_SB) {
}
Method(CPEJ, 2, NotSerialized) {
// _EJ0 method - eject callback
- Sleep(200)
+ Store(Zero, Index(CPON, ToInteger(Arg0)))
+ Store(One, Local0)
+ ShiftLeft(Local0, Arg0, Local0)
+ Not(Local0, Local0)
+ And(PRS, Local0, PRS)
}
/* CPU hotplug notify method */
--
1.8.1.4
More information about the SeaBIOS
mailing list