qemu-e2k/target/i386
Paolo Bonzini 42ccce1981 target/i386: avoid theoretical leak on MCE injection
g_strdup_printf is used twice to write to the same variable, which
can theoretically cause a leak.  In practice, it is extremely
unlikely that a guest is seeing a recursive MCE and has disabled
CR4.MCE between the first and the second error, but we can fix it
and we can also make a slight improvement on the logic: CR4.MCE=0
causes a triple fault even for a non-recursive machine check, so
let's place its test first.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-11-16 13:22:18 -05:00
..
hvf x86 hvf cpus: Fix Lesser GPL version number 2020-11-15 16:45:27 +01:00
arch_dump.c
arch_memory_mapping.c
bpt_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
cc_helper_template.h x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
cc_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
cpu-param.h
cpu-qom.h qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros 2020-09-18 14:12:32 -04:00
cpu.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
cpu.h x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
excp_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
fpu_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
gdbstub.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
hax-all.c hax: remove hax specific functions from global includes 2020-10-05 16:41:22 +02:00
hax-cpus.c hax: unbreak accelerator cpu code after cpus.c split 2020-10-17 10:45:53 -04:00
hax-cpus.h hax: remove hax specific functions from global includes 2020-10-05 16:41:22 +02:00
hax-i386.h cpus: extract out hax-specific code to target/i386/ 2020-10-05 16:41:22 +02:00
hax-interface.h
hax-mem.c hax: remove hax specific functions from global includes 2020-10-05 16:41:22 +02:00
hax-posix.c hax: remove hax specific functions from global includes 2020-10-05 16:41:22 +02:00
hax-posix.h
hax-windows.c hax: remove hax specific functions from global includes 2020-10-05 16:41:22 +02:00
hax-windows.h hax: remove hax specific functions from global includes 2020-10-05 16:41:22 +02:00
helper.c target/i386: avoid theoretical leak on MCE injection 2020-11-16 13:22:18 -05:00
helper.h target/i386: fix IEEE SSE floating-point exception raising 2020-07-10 18:02:17 -04:00
hyperv-proto.h
hyperv-stub.c
hyperv.c
hyperv.h
int_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
kvm_i386.h i386/kvm: Delete kvm_allows_irq0_override() 2020-10-14 15:28:54 -04:00
kvm-stub.c i386/kvm: Delete kvm_allows_irq0_override() 2020-10-14 15:28:54 -04:00
kvm.c kvm/i386: Set proper nested state format for SVM 2020-11-16 13:22:16 -05:00
machine.c target/i386: support KVM_FEATURE_ASYNC_PF_INT 2020-09-30 19:09:19 +02:00
mem_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
meson.build cpus: extract out whpx-specific code to target/i386/ 2020-10-05 16:41:22 +02:00
misc_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
monitor.c hmp: Pass monitor to mon_get_cpu_env() 2020-11-13 12:45:51 +00:00
mpx_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
ops_sse_header.h x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
ops_sse.h x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
seg_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
sev_i386.h target/i386: sev: provide proper error reporting for query-sev-capabilities 2020-07-10 18:02:22 -04:00
sev-stub.c target/i386: sev: provide proper error reporting for query-sev-capabilities 2020-07-10 18:02:22 -04:00
sev.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
shift_helper_template.h x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
smm_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
svm_helper.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
svm.h tcg/svm: use host cr4 during NPT page table walk 2020-07-10 18:02:14 -04:00
tcg-stub.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
trace-events
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
translate.c x86 tcg cpus: Fix Lesser GPL version number 2020-11-15 16:41:42 +01:00
whp-dispatch.h WHPX: vmware cpuid leaf for tsc and apic frequency 2020-09-30 19:09:19 +02:00
whpx-all.c cpus: add handle_interrupt to the CpusAccel interface 2020-10-05 16:41:22 +02:00
whpx-cpus.c cpus: extract out whpx-specific code to target/i386/ 2020-10-05 16:41:22 +02:00
whpx-cpus.h whpx: remove whpx specific functions from global includes 2020-10-05 16:41:22 +02:00
xsave_helper.c