]> git.proxmox.com Git - mirror_qemu.git/commit
x86: use new method to correct reset sequence
authorZhu Guihua <zhugh.fnst@cn.fujitsu.com>
Wed, 16 Sep 2015 09:19:13 +0000 (17:19 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 2 Oct 2015 19:22:02 +0000 (16:22 -0300)
commitae50c55a09b8a90205972518d8129447000ae188
tree473103ff33b6854e419552de059424dff98bb1e3
parent8d42d2d32b508484106f1c600f5cdd5496bc867e
x86: use new method to correct reset sequence

During reset some devices (such as hpet, rtc) might send IRQ to APIC
which changes APIC's state from default one it's supposed to have
at machine startup time.
Fix this by resetting APIC after devices have been reset to cancel
any changes that qemu_devices_reset() might have done to its state.

Signed-off-by: Zhu Guihua <zhugh.fnst@cn.fujitsu.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c