|
From: | Richard Henderson |
Subject: | Re: [PATCH v3 59/66] accel/tcg: Handle SIGBUS in handle_cpu_signal |
Date: | Sun, 22 Aug 2021 00:48:13 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 8/20/21 2:34 AM, Peter Maydell wrote:
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 ?
Aside from whatever tcg/foo relies upon, it doesn't matter.But: silly mips. I was going to rely on it there -- oh well, I'll undo that section of the follow-on tcg/mips patch set. And it's got a different syscall for disabling the unaligned fixup.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |