kvm: Apply SMM-already-initialized workaround on reset (Jan Kiszka)
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7136 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
29203dcf31
commit
3c892168a0
17
hw/acpi.c
17
hw/acpi.c
|
@ -483,13 +483,18 @@ static int pm_load(QEMUFile* f,void* opaque,int version_id)
|
||||||
|
|
||||||
static void piix4_reset(void *opaque)
|
static void piix4_reset(void *opaque)
|
||||||
{
|
{
|
||||||
PIIX4PMState *s = opaque;
|
PIIX4PMState *s = opaque;
|
||||||
uint8_t *pci_conf = s->dev.config;
|
uint8_t *pci_conf = s->dev.config;
|
||||||
|
|
||||||
pci_conf[0x58] = 0;
|
pci_conf[0x58] = 0;
|
||||||
pci_conf[0x59] = 0;
|
pci_conf[0x59] = 0;
|
||||||
pci_conf[0x5a] = 0;
|
pci_conf[0x5a] = 0;
|
||||||
pci_conf[0x5b] = 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,
|
i2c_bus *piix4_pm_init(PCIBus *bus, int devfn, uint32_t smb_io_base,
|
||||||
|
|
Loading…
Reference in a new issue