cpu: implement CPEJ method for unpluging cpu
RFC PATCH 1/1 cpu: implement CPEJ method for unpluging cpu
After OS ejecting a vcpu successful, it will call CPEJ method, there communicate the masked vcpu bitmap to QEMU.
Signed-off-by Chen Fan <[email protected]>
--- src/acpi-dsdt-cpu-hotplug.dsl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
src/acpi-dsdt-cpu-hotplug.dsl +5 -1
@@ -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 */
Signature · 1 line
1.8.1.4