qemu/target/i386
Paolo Bonzini b04dc92e01 target-i386: mmu: fix handling of noncanonical virtual addresses
mmu_translate is supposed to return an error code for page faults; it is
not able to handle other exceptions.  The #GP case for noncanonical
virtual addresses is not handled correctly, and incorrectly raised as
a page fault with error code 1.  Since it cannot happen for nested
page tables, move it directly to handle_mmu_fault, even before the
invocation of mmu_translate.

Fixes: #676
Fixes: 661ff4879e ("target/i386: extract mmu_translate", 2021-05-11)
Cc: qemu-stable@nongnu.org
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-11-08 08:55:20 +01:00
..
hax
hvf
kvm
nvmm
tcg target-i386: mmu: fix handling of noncanonical virtual addresses 2021-11-08 08:55:20 +01:00
whpx
arch_dump.c
arch_memory_mapping.c
cpu-dump.c
cpu-internal.h
cpu-param.h
cpu-qom.h
cpu-sysemu.c
cpu.c * Build system fixes and cleanups 2021-11-03 13:07:30 -04:00
cpu.h
gdbstub.c
helper.c
helper.h
host-cpu.c
host-cpu.h
Kconfig
machine.c
meson.build
monitor.c
ops_sse.h
ops_sse_header.h
sev-sysemu-stub.c
sev.c
sev.h
shift_helper_template.h
svm.h
trace-events
trace.h
xsave_helper.c