summaryrefslogtreecommitdiffstats
path: root/target-i386/helper.c
diff options
context:
space:
mode:
authorJan Kiszka2011-03-02 08:56:14 +0100
committerMarcelo Tosatti2011-03-15 05:19:05 +0100
commitab443475c9235822e329e1bfde89be6c71e2c21e (patch)
tree773ee3ac440c93a30a76e7a9886af6cf31a8e035 /target-i386/helper.c
parentkvm: Rename kvm_arch_process_irqchip_events to async_events (diff)
downloadqemu-ab443475c9235822e329e1bfde89be6c71e2c21e.tar.gz
qemu-ab443475c9235822e329e1bfde89be6c71e2c21e.tar.xz
qemu-ab443475c9235822e329e1bfde89be6c71e2c21e.zip
kvm: x86: Inject pending MCE events on state writeback
The current way of injecting MCE events without updating of and synchronizing with the CPUState is broken and causes spurious corruptions of the MCE-related parts of the CPUState. As a first step towards a fix, enhance the state writeback code with support for injecting events that are pending in the CPUState. A pending exception will then be signaled via cpu_interrupt(CPU_INTERRUPT_MCE). And, just like for TCG, we need to leave the halt state when CPU_INTERRUPT_MCE is pending (left broken for the to-be-removed old KVM code). This will also allow to unify TCG and KVM injection code. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> CC: Huang Ying <ying.huang@intel.com> CC: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> CC: Jin Dongming <jin.dongming@np.css.fujitsu.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'target-i386/helper.c')
0 files changed, 0 insertions, 0 deletions