piix4/ich9: do not raise SMI on ACPI enable/disable commands
commitafd6895b45f20eb43b7ff95f7a76cc5af8d36cd7
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Jun 2015 16:28:41 +0000 (18 18:28 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jul 2015 15:59:01 +0000 (6 17:59 +0200)
tree4471fa5c389b72d89ed603dce91747aca58869e1
parent25b8b39b6d7de95d0dd5ae7b66b3ac4b9b83e060
piix4/ich9: do not raise SMI on ACPI enable/disable commands

These commands are handled entirely by QEMU.  Do not raise an SMI
when they happen, because Windows (at least 2008r2) expects these
commands to work and (depending on the value of APMC_EN at
startup) the firmware might not have installed an SMI handler.

When this happens (e.g. the kernel supports SMIs, or you are using
TCG, but you have used "-machine smm=off") RIP is moved to 0x38000
where there is no code to execute.

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/acpi/piix4.c
hw/isa/lpc_ich9.c