diff options
author | Paolo Bonzini | 2017-02-09 09:50:02 +0100 |
---|---|---|
committer | Paolo Bonzini | 2017-03-03 16:40:02 +0100 |
commit | a16fc07ebd58da51d5e1c2928069879c40a26f59 (patch) | |
tree | eabf513b067de95d1b15217fc7ec704a562c716b /include/qemu/osdep.h | |
parent | KVM: x86: cleanup SIGBUS handlers (diff) | |
download | qemu-a16fc07ebd58da51d5e1c2928069879c40a26f59.tar.gz qemu-a16fc07ebd58da51d5e1c2928069879c40a26f59.tar.xz qemu-a16fc07ebd58da51d5e1c2928069879c40a26f59.zip |
cpus: reorganize signal handling code
Move the KVM "eat signals" code under CONFIG_LINUX, in preparation
for moving it to kvm-all.c; reraise non-MCE SIGBUS immediately,
without passing it to KVM.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/qemu/osdep.h')
-rw-r--r-- | include/qemu/osdep.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 6932709e4e..af37195fef 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -284,6 +284,15 @@ void qemu_anon_ram_free(void *ptr, size_t size); #endif +#if defined(CONFIG_LINUX) +#ifndef BUS_MCEERR_AR +#define BUS_MCEERR_AR 4 +#endif +#ifndef BUS_MCEERR_AO +#define BUS_MCEERR_AO 5 +#endif +#endif + #if defined(__linux__) && \ (defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)) /* Use 2 MiB alignment so transparent hugepages can be used by KVM. |