On Tue, 12 May 2020 at 04:03, Dongjiu Geng <gengdongjiu@xxxxxxxxxx> wrote: > > In the ARMv8 platform, the CPU error types includes synchronous external abort(SEA) > and SError Interrupt (SEI). If exception happens in guest, host does not know the detailed > information of guest, so it is expected that guest can do the recovery. For example, if an > exception happens in a guest user-space application, host does not know which application > encounters errors, only guest knows it. > > For the ARMv8 SEA/SEI, KVM or host kernel delivers SIGBUS to notify userspace. > After user space gets the notification, it will record the CPER into guest GHES > buffer and inject an exception or IRQ to guest. > > In the current implementation, if the type of SIGBUS is BUS_MCEERR_AR, we will > treat it as a synchronous exception, and notify guest with ARMv8 SEA > notification type after recording CPER into guest. Applied to target-arm.next, thanks. -- PMM