qemu-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]