On Wed, 18 Aug 2021 at 21:13, Richard Henderson <richard.hender...@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