|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC PATCH 3/5] Tool/ACPI: DSDT extension to support more vcpus
This patch is to change DSDT table for processor object to support >255 vcpus.
Signed-off-by: Lan Tianyu <tianyu.lan@xxxxxxxxx>
---
tools/libacpi/mk_dsdt.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/tools/libacpi/mk_dsdt.c b/tools/libacpi/mk_dsdt.c
index 2daf32c..d37aed6 100644
--- a/tools/libacpi/mk_dsdt.c
+++ b/tools/libacpi/mk_dsdt.c
@@ -196,8 +196,7 @@ int main(int argc, char **argv)
/* Define processor objects and control methods. */
for ( cpu = 0; cpu < max_cpus; cpu++)
{
- push_block("Processor", "PR%02X, %d, 0x0000b010, 0x06", cpu, cpu);
-
+ push_block("Device", "P%03X", cpu);
stmt("Name", "_HID, \"ACPI0007\"");
stmt("Name", "_UID, %d", cpu);
@@ -268,15 +267,15 @@ int main(int argc, char **argv)
/* Extract current CPU's status: 0=offline; 1=online. */
stmt("And", "Local1, 1, Local2");
/* Check if status is up-to-date in the relevant MADT LAPIC entry... */
- push_block("If", "LNotEqual(Local2, \\_SB.PR%02X.FLG)", cpu);
+ push_block("If", "LNotEqual(Local2, \\_SB.P%03X.FLG)", cpu);
/* ...If not, update it and the MADT checksum, and notify OSPM. */
- stmt("Store", "Local2, \\_SB.PR%02X.FLG", cpu);
+ stmt("Store", "Local2, \\_SB.P%03X.FLG", cpu);
push_block("If", "LEqual(Local2, 1)");
- stmt("Notify", "PR%02X, 1", cpu); /* Notify: Device Check */
+ stmt("Notify", "P%03X, 1", cpu); /* Notify: Device Check */
stmt("Subtract", "\\_SB.MSU, 1, \\_SB.MSU"); /* Adjust MADT csum */
pop_block();
push_block("Else", NULL);
- stmt("Notify", "PR%02X, 3", cpu); /* Notify: Eject Request */
+ stmt("Notify", "P%03X, 3", cpu); /* Notify: Eject Request */
stmt("Add", "\\_SB.MSU, 1, \\_SB.MSU"); /* Adjust MADT csum */
pop_block();
pop_block();
--
1.8.3.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |