Re: [PATCH] Set bit 1 in disabled processor's _STA

Gleb Natapov
2009-05-17T08:23:49Z

On Fri, May 15, 2009 at 08:14:43AM -0400, Glauber Costa wrote:
> This patch sets bits 1 in disabled processor's _STA.
> According to the ACPI spec, this bit means:
> "Set if the device is enabled and decoding its resources."
>
> Without it, Windows 2008 device manager shows the processors
> as malfunctioning hardware.
>
If you uncheck "show hidden devices" option in View menu of the
device manager you should see only enabled CPUs (bit 2 of _STA).
This patch breaks resume from hibernate on windows 2008/vista.

> Signed-off-by: Glauber Costa <glommer@redhat.com>
> ---
> kvm/bios/acpi-dsdt.dsl | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kvm/bios/acpi-dsdt.dsl b/kvm/bios/acpi-dsdt.dsl
> index c756fed..c53816c 100755
> --- a/kvm/bios/acpi-dsdt.dsl
> +++ b/kvm/bios/acpi-dsdt.dsl
> @@ -56,7 +56,7 @@ DefinitionBlock (
> } \
> Method (_STA) { \
> If (CRST(nr)) { Return(0xF) } \
> - Else { Return(0x9) } \
> + Else { Return(0xB) } \
> } \
> } \
>
> --
> 1.5.6.6
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Gleb.