From patchwork Thu Feb 5 13:42:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 5644 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n15DjUTk019224 for ; Thu, 5 Feb 2009 13:45:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755835AbZBENp2 (ORCPT ); Thu, 5 Feb 2009 08:45:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755084AbZBENp2 (ORCPT ); Thu, 5 Feb 2009 08:45:28 -0500 Received: from mx2.redhat.com ([66.187.237.31]:53988 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755264AbZBENp1 (ORCPT ); Thu, 5 Feb 2009 08:45:27 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n15DjRWg024839 for ; Thu, 5 Feb 2009 08:45:27 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n15DjGoI002707; Thu, 5 Feb 2009 08:45:26 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n15DjFT7009667; Thu, 5 Feb 2009 08:45:15 -0500 Received: from dhcp-1-237.tlv.redhat.com (localhost [127.0.0.1]) by dhcp-1-237.tlv.redhat.com (Postfix) with ESMTP id D190918D43A; Thu, 5 Feb 2009 15:42:51 +0200 (IST) From: Gleb Natapov Subject: [PATCH 3/4] Use reserved STS bits from PIIX4 chipset to avoid clash in the future To: avi@redhat.com Cc: kvm@vger.kernel.org Date: Thu, 05 Feb 2009 15:42:51 +0200 Message-ID: <20090205134251.20515.21204.stgit@dhcp-1-237.tlv.redhat.com> In-Reply-To: <20090205134240.20515.10999.stgit@dhcp-1-237.tlv.redhat.com> References: <20090205134240.20515.10999.stgit@dhcp-1-237.tlv.redhat.com> User-Agent: StGIT/0.14.2 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Gleb Natapov --- qemu/hw/acpi.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) -- 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 diff --git a/bios/acpi-dsdt.dsl b/bios/acpi-dsdt.dsl index f94ab22..1d1a6b5 100755 --- a/bios/acpi-dsdt.dsl +++ b/bios/acpi-dsdt.dsl @@ -746,7 +746,7 @@ DefinitionBlock ( Name(_HID, "ACPI0006") Method(_L00) { - Return(\_PR.PRSC()) + Return(0x01) } #define gen_pci_hotplug(nr) \ @@ -794,7 +794,7 @@ DefinitionBlock ( } Method(_L02) { - Return(0x01) + Return(\_PR.PRSC()) } Method(_L03) { Return(0x01) diff --git a/qemu/hw/acpi.c b/qemu/hw/acpi.c index 60ef43f..c2c60ad 100644 --- a/qemu/hw/acpi.c +++ b/qemu/hw/acpi.c @@ -752,13 +752,13 @@ void qemu_system_hot_add_init(const char *cpu_model) static void enable_processor(struct gpe_regs *g, int cpu) { - g->sts |= 1; + g->sts |= 4; g->cpus_sts[cpu/8] |= (1 << (cpu%8)); } static void disable_processor(struct gpe_regs *g, int cpu) { - g->sts |= 1; + g->sts |= 4; g->cpus_sts[cpu/8] &= ~(1 << (cpu%8)); } @@ -804,7 +804,7 @@ void qemu_system_cpu_hot_add(int cpu, int state) enable_processor(&gpe, cpu); else disable_processor(&gpe, cpu); - if (gpe.en & 1) { + if (gpe.en & 4) { qemu_set_irq(pm_state->irq, 1); qemu_set_irq(pm_state->irq, 0); }