kvm: x86: Consolidate TCG and KVM MCE injection code
commitc34d440a728fd3b5099d11dec122d440ef092c23
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 2 Mar 2011 07:56:16 +0000 (2 08:56 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 15 Mar 2011 04:19:06 +0000 (15 01:19 -0300)
tree7f31027455c55b06e4877d14f48687bb1a7bf885
parentd5bfda334adf9af62df5709cdac38f523f815f47
kvm: x86: Consolidate TCG and KVM MCE injection code

This switches KVM's MCE injection path to cpu_x86_inject_mce, both for
SIGBUS and monitor initiated events. This means we prepare the MCA MSRs
in the VCPUState also for KVM.

We have to drop the MSRs writeback restrictions for this purpose which
is now safe as every uncoordinated MSR injection is removed with this
patch.

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>
target-i386/helper.c
target-i386/kvm.c
target-i386/kvm_x86.h [deleted file]