[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 59/66] accel/tcg: Handle SIGBUS in handle_cpu_signal
From: |
Peter Maydell |
Subject: |
Re: [PATCH v3 59/66] accel/tcg: Handle SIGBUS in handle_cpu_signal |
Date: |
Fri, 20 Aug 2021 10:34:03 +0100 |
On Wed, 18 Aug 2021 at 21:13, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> We've been registering host SIGBUS, but then treating it
> exactly like SIGSEGV.
>
> Handle BUS_ADRALN via cpu_unaligned_access, but allow other
> SIGBUS si_codes to continue into the host-to-guest signal
> coversion code in host_signal_handler. Unwind the guest
> state so that we report the correct guest PC for the fault.
You can't rely on alignment faults being marked by BUS_ADRALN:
eg MIPS doesn't give you that si_code. How much does that matter
for our use of it here ?
-- PMM
- Re: [PATCH v3 50/66] hw/core/cpu: Move cpu properties to cpu-sysemu.c, (continued)
- [PATCH v3 54/66] target/alpha: Implement prctl_unalign_sigbus, Richard Henderson, 2021/08/18
- [PATCH v3 56/66] target/sh4: Implement prctl_unalign_sigbus, Richard Henderson, 2021/08/18
- [PATCH v3 55/66] target/hppa: Implement prctl_unalign_sigbus, Richard Henderson, 2021/08/18
- [PATCH v3 57/66] accel/tcg/user-exec: Convert DEBUG_SIGNAL to tracepoint, Richard Henderson, 2021/08/18
- [PATCH v3 58/66] include/exec: Move cpu_signal_handler declaration, Richard Henderson, 2021/08/18
- [PATCH v3 59/66] accel/tcg: Handle SIGBUS in handle_cpu_signal, Richard Henderson, 2021/08/18
- Re: [PATCH v3 59/66] accel/tcg: Handle SIGBUS in handle_cpu_signal,
Peter Maydell <=
- [PATCH v3 60/66] tcg/aarch64: Support raising sigbus for user-only, Richard Henderson, 2021/08/18
- [PATCH v3 62/66] tcg/s390: Support raising sigbus for user-only, Richard Henderson, 2021/08/18
- [PATCH v3 61/66] tcg/ppc: Support raising sigbus for user-only, Richard Henderson, 2021/08/18
- [PATCH v3 63/66] tcg/tci: Support raising sigbus for user-only, Richard Henderson, 2021/08/18