From e7701825e17d74913b0f1585d523cedaf1d6632a Mon Sep 17 00:00:00 2001 From: Marcelo Tosatti Date: Mon, 11 Oct 2010 15:31:18 -0300 Subject: kvm: x86: add mce support Port qemu-kvm's MCE support commit c68b2374c9048812f488e00ffb95db66c0bc07a7 Author: Huang Ying Date: Mon Jul 20 10:00:53 2009 +0800 Add MCE simulation support to qemu/kvm KVM ioctls are used to initialize MCE simulation and inject MCE. The real MCE simulation is implemented in Linux kernel. The Kernel part has been merged. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- target-i386/kvm_x86.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 target-i386/kvm_x86.h (limited to 'target-i386/kvm_x86.h') diff --git a/target-i386/kvm_x86.h b/target-i386/kvm_x86.h new file mode 100644 index 0000000000..c1ebd24fcf --- /dev/null +++ b/target-i386/kvm_x86.h @@ -0,0 +1,21 @@ +/* + * QEMU KVM support + * + * Copyright (C) 2009 Red Hat Inc. + * Copyright IBM, Corp. 2008 + * + * Authors: + * Anthony Liguori + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + * + */ + +#ifndef __KVM_X86_H__ +#define __KVM_X86_H__ + +void kvm_inject_x86_mce(CPUState *cenv, int bank, uint64_t status, + uint64_t mcg_status, uint64_t addr, uint64_t misc); + +#endif -- cgit v1.2.3