[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen/arm: Handle guest external abort as guest SError
commit 0beeb56bc943c04cd7ff9233ce307455a726532d Author: Wei Chen <Wei.Chen@xxxxxxx> AuthorDate: Wed Apr 5 17:09:21 2017 +0800 Commit: Stefano Stabellini <sstabellini@xxxxxxxxxx> CommitDate: Wed Apr 5 12:15:22 2017 -0700 xen/arm: Handle guest external abort as guest SError The guest generated external data/instruction aborts can be treated as guest SErrors. We already have a handler to handle the SErrors, so we can reuse this handler to handle guest external aborts. Signed-off-by: Wei Chen <Wei.Chen@xxxxxxx> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> --- xen/arch/arm/traps.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index c8163db..3625e04 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -2583,12 +2583,12 @@ static void do_trap_instr_abort_guest(struct cpu_user_regs *regs, /* * If this bit has been set, it means that this instruction abort is caused - * by a guest external abort. Currently we crash the guest to protect the - * hypervisor. In future one can better handle this by injecting a virtual - * abort to the guest. + * by a guest external abort. We can handle this instruction abort as guest + * SError. */ if ( hsr.iabt.eat ) - domain_crash_synchronous(); + return __do_trap_serror(regs, true); + if ( hpfar_is_valid(hsr.iabt.s1ptw, fsc) ) gpa = get_faulting_ipa(gva); @@ -2715,12 +2715,10 @@ static void do_trap_data_abort_guest(struct cpu_user_regs *regs, /* * If this bit has been set, it means that this data abort is caused - * by a guest external abort. Currently we crash the guest to protect the - * hypervisor. In future one can better handle this by injecting a virtual - * abort to the guest. + * by a guest external abort. We treat this data abort as guest SError. */ if ( dabt.eat ) - domain_crash_synchronous(); + return __do_trap_serror(regs, true); info.dabt = dabt; #ifdef CONFIG_ARM_32 -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |