diff options
author | Huang Ying <ying.huang@intel.com> | 2009-05-11 04:48:15 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:32:39 -0400 |
commit | 890ca9aefa78f7831f8f633cab9e4803636dffe4 (patch) | |
tree | 1a66ca576b6b0c396de79214e2262dc218ec5d56 /arch/x86/include/asm/kvm_host.h | |
parent | af24a4e4aec77ef16c1971cf4465f767ba946034 (diff) |
KVM: Add MCE support
The related MSRs are emulated. MCE capability is exported via
extension KVM_CAP_MCE and ioctl KVM_X86_GET_MCE_CAP_SUPPORTED. A new
vcpu ioctl command KVM_X86_SETUP_MCE is used to setup MCE emulation
such as the mcg_cap. MCE is injected via vcpu ioctl command
KVM_X86_SET_MCE. Extended machine-check state (MCG_EXT_P) and CMCI are
not implemented.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 79561752af97..81c68f630b14 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -373,6 +373,11 @@ struct kvm_vcpu_arch { | |||
373 | unsigned long dr6; | 373 | unsigned long dr6; |
374 | unsigned long dr7; | 374 | unsigned long dr7; |
375 | unsigned long eff_db[KVM_NR_DB_REGS]; | 375 | unsigned long eff_db[KVM_NR_DB_REGS]; |
376 | |||
377 | u64 mcg_cap; | ||
378 | u64 mcg_status; | ||
379 | u64 mcg_ctl; | ||
380 | u64 *mce_banks; | ||
376 | }; | 381 | }; |
377 | 382 | ||
378 | struct kvm_mem_alias { | 383 | struct kvm_mem_alias { |