Received: from eggs.gnu.org ([2001:4830:134:3::10]:46035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJeo4-0001fH-JR for qemu-devel@nongnu.org; Mon, 27 Jul 2015 05:34:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJenz-0006ib-Ju for qemu-devel@nongnu.org; Mon, 27 Jul 2015 05:34:48 -0400 Date: Mon, 27 Jul 2015 11:34:38 +0200 From: Igor Mammedov Message-ID: <20150727113438.0c257b0a@nial.brq.redhat.com> In-Reply-To: <1437761762-19798-2-git-send-email-lersek@redhat.com> References: <1437761762-19798-1-git-send-email-lersek@redhat.com> <1437761762-19798-2-git-send-email-lersek@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.4-rc3 1/3] hw/acpi/ich9: clear smi_en on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: qemu-trivial@nongnu.org, Paolo Bonzini , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Gerd Hoffmann On Fri, 24 Jul 2015 20:16:00 +0200 Laszlo Ersek wrote: > Otherwise on reboot firmware might think (due to APMC_EN remaining set > from the previous boot) that SMI support is absent. Reviewed-by: Igor Mammedov > > Cc: "Michael S. Tsirkin" > Cc: Igor Mammedov > Cc: Gerd Hoffmann > Cc: Paolo Bonzini > Cc: qemu-trivial@nongnu.org > Signed-off-by: Laszlo Ersek > --- > hw/acpi/ich9.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c > index f04f6dc..8da5a2d 100644 > --- a/hw/acpi/ich9.c > +++ b/hw/acpi/ich9.c > @@ -221,6 +221,7 @@ static void pm_reset(void *opaque) > acpi_pm_tmr_reset(&pm->acpi_regs); > acpi_gpe_reset(&pm->acpi_regs); > > + pm->smi_en = 0; > if (!pm->smm_enabled) { > /* Mark SMM as already inited to prevent SMM from running. KVM does not > * support SMM mode. */