Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lup1O-0002m1-GT for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:26:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lup1M-0002kz-P6 for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:26:25 -0400 Received: from [199.232.76.173] (port=42004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lup1M-0002km-GV for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:26:24 -0400 Received: from savannah.gnu.org ([199.232.41.3]:57813 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lup1L-0001pf-GX for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:26:23 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lup1K-0002dG-Fq for qemu-devel@nongnu.org; Fri, 17 Apr 2009 14:26:22 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lup1K-0002d5-6L for qemu-devel@nongnu.org; Fri, 17 Apr 2009 14:26:22 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 17 Apr 2009 14:26:22 +0000 Subject: [Qemu-devel] [7136] kvm: Apply SMM-already-initialized workaround on reset (Jan Kiszka) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 7136 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7136 Author: aliguori Date: 2009-04-17 14:26:21 +0000 (Fri, 17 Apr 2009) Log Message: ----------- kvm: Apply SMM-already-initialized workaround on reset (Jan Kiszka) Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/hw/acpi.c Modified: trunk/hw/acpi.c =================================================================== --- trunk/hw/acpi.c 2009-04-17 14:26:17 UTC (rev 7135) +++ trunk/hw/acpi.c 2009-04-17 14:26:21 UTC (rev 7136) @@ -483,13 +483,18 @@ static void piix4_reset(void *opaque) { - PIIX4PMState *s = opaque; - uint8_t *pci_conf = s->dev.config; + PIIX4PMState *s = opaque; + uint8_t *pci_conf = s->dev.config; - pci_conf[0x58] = 0; - pci_conf[0x59] = 0; - pci_conf[0x5a] = 0; - pci_conf[0x5b] = 0; + pci_conf[0x58] = 0; + pci_conf[0x59] = 0; + pci_conf[0x5a] = 0; + pci_conf[0x5b] = 0; + + if (kvm_enabled()) { + /* Mark SMM as already inited (until KVM supports SMM). */ + pci_conf[0x5B] = 0x02; + } } i2c_bus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,