From: Keir Fraser <keir.fraser@eu.citrix.com>
To: "Liu, Jinsong" <jinsong.liu@intel.com>,
"Jiang, Yunhong" <yunhong.jiang@intel.com>,
xen-devel <xen-devel@lists.xensource.com>
Subject: Re: RE: [PATCH 1/2] Vcpu hotplug: Move ACPI processor from \_PR to \_SB
Date: Fri, 12 Feb 2010 10:29:20 +0000 [thread overview]
Message-ID: <C79ADE02.9F79%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <EB8593BCECAB3D40A8248BE0B6400A3845F38F21@shzsmsx502.ccr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 813 bytes --]
On 12/02/2010 10:07, "Liu, Jinsong" <jinsong.liu@intel.com> wrote:
>> Win2k8 has a similar problem?
>>
>> -- Keir
>
> Yes. Yunhong test Win2k8, and found in Win2k8 data center version, cpu hotplug
> successed for _SB definition, but failed for _PR definition. (success mean,
> after we hot-add vcpu, the device manager will shown new processor, but the
> task manager has no changes, same as
> http://www.boche.net/blog/index.php/2009/05/10/vsphere-memory-hot-add-cpu-hot-
> plug/ .Fail mean even the device manager has no changes).
Okay, how about the attached alternative patch then? Smaller than yours but
hoepfully equivalent. It doesn't include your change to the _STA method to
return 0 instead of 9 in the offline case however -- there was no
explanation for that in the changeset comment?
-- Keir
[-- Attachment #2: 00-dsdt --]
[-- Type: application/octet-stream, Size: 1869 bytes --]
diff -r 3bb163b74673 tools/firmware/hvmloader/acpi/mk_dsdt.c
--- a/tools/firmware/hvmloader/acpi/mk_dsdt.c Fri Feb 12 09:24:18 2010 +0000
+++ b/tools/firmware/hvmloader/acpi/mk_dsdt.c Fri Feb 12 10:27:47 2010 +0000
@@ -83,7 +83,7 @@
indent_level++;
/**** Processor start ****/
- push_block("Scope", "\\_PR");
+ push_block("Scope", "\\_SB");
/* MADT checksum */
stmt("OperationRegion", "MSUM, SystemMemory, \\_SB.MSUA, 1");
@@ -150,16 +150,16 @@
/* 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, \\_PR.PR%02X.FLG)", cpu);
+ push_block("If", "LNotEqual(Local2, \\_SB.PR%02X.FLG)", cpu);
/* ...If not, update it and the MADT checksum, and notify OSPM. */
- stmt("Store", "Local2, \\_PR.PR%02X.FLG", cpu);
+ stmt("Store", "Local2, \\_SB.PR%02X.FLG", cpu);
push_block("If", "LEqual(Local2, 1)");
stmt("Notify", "PR%02X, 1", cpu); /* Notify: Device Check */
- stmt("Subtract", "\\_PR.MSU, 1, \\_PR.MSU"); /* Adjust MADT csum */
+ 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("Add", "\\_PR.MSU, 1, \\_PR.MSU"); /* Adjust MADT csum */
+ stmt("Add", "\\_SB.MSU, 1, \\_SB.MSU"); /* Adjust MADT csum */
pop_block();
pop_block();
}
@@ -171,7 +171,7 @@
/* Define GPE control method '_L02'. */
push_block("Scope", "\\_GPE");
push_block("Method", "_L02");
- stmt("Return", "\\_PR.PRSC()");
+ stmt("Return", "\\_SB.PRSC()");
pop_block();
pop_block();
/**** Processor end ****/
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2010-02-12 10:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-11 17:38 [PATCH 1/2] Vcpu hotplug: Move ACPI processor from \_PR to \_SB Liu, Jinsong
2010-02-11 18:36 ` Keir Fraser
2010-02-12 2:57 ` Jiang, Yunhong
2010-02-12 8:30 ` Keir Fraser
2010-02-12 9:25 ` Jiang, Yunhong
2010-02-12 9:30 ` Keir Fraser
2010-02-12 9:38 ` Jiang, Yunhong
2010-02-12 9:50 ` Liu, Jinsong
2010-02-12 10:03 ` Keir Fraser
2010-02-12 10:07 ` Liu, Jinsong
2010-02-12 10:29 ` Keir Fraser [this message]
2010-02-12 20:46 ` Liu, Jinsong
2010-02-12 21:57 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C79ADE02.9F79%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=jinsong.liu@intel.com \
--cc=xen-devel@lists.xensource.com \
--cc=yunhong.jiang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.