diff options
author | Huang Ying <ying.huang@intel.com> | 2009-09-21 10:43:25 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-21 12:21:31 +0300 |
commit | 4b62fff1101a7ad77553147717a8bd3bf79df7ef (patch) | |
tree | 069a2dd276c67e15ee02816a847001e868fcf67d /cpu-common.h | |
parent | vga: move back dirty_log functions to vga.c (diff) | |
download | qemu-kvm-4b62fff1101a7ad77553147717a8bd3bf79df7ef.tar.gz qemu-kvm-4b62fff1101a7ad77553147717a8bd3bf79df7ef.tar.bz2 qemu-kvm-4b62fff1101a7ad77553147717a8bd3bf79df7ef.zip |
MCE: Relay UCR MCE to guest
UCR (uncorrected recovery) MCE is supported in recent Intel CPUs,
where some hardware error such as some memory error can be reported
without PCC (processor context corrupted). To recover from such MCE,
the corresponding memory will be unmapped, and all processes accessing
the memory will be killed via SIGBUS.
For KVM, if QEMU/KVM is killed, all guest processes will be killed
too. So we relay SIGBUS from host OS to guest system via a UCR MCE
injection. Then guest OS can isolate corresponding memory and kill
necessary guest processes only. SIGBUS sent to main thread (not VCPU
threads) will be broadcast to all VCPU threads as UCR MCE.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'cpu-common.h')
-rw-r--r-- | cpu-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpu-common.h b/cpu-common.h index 630237203..5e5956489 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -34,6 +34,7 @@ void qemu_ram_free(ram_addr_t addr); /* This should only be used for ram local to a device. */ void *qemu_get_ram_ptr(ram_addr_t addr); /* This should not be used by devices. */ +int do_qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr); ram_addr_t qemu_ram_addr_from_host(void *ptr); int cpu_register_io_memory(CPUReadMemoryFunc * const *mem_read, |