[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC][PATCH] cpu: implement CPEJ method for unpluging cpu
From: |
Chen Fan |
Subject: |
[Qemu-devel] [RFC][PATCH] cpu: implement CPEJ method for unpluging cpu |
Date: |
Thu, 29 Aug 2013 09:46:35 +0800 |
After OS ejecting a vcpu successful, it will call CPEJ method,
there communicate the masked vcpu bitmap to QEMU.
Signed-off-by: Chen Fan <address@hidden>
---
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [RFC][PATCH] cpu: implement CPEJ method for unpluging cpu,
Chen Fan <=