Re: [Xen-devel] [PATCH v2 3/5] x86/pv: Introduce pv_create_exception_frame()

2018-03-02 Thread Jan Beulich
>>> On 27.02.18 at 15:50, wrote: > v2: > * Use domain_crash() rather than domain_crash_sync(). All callers >immediately continue to {compat_}test_all_events > * Count the number of frame[] entries correctly > * Consistently use 64bit operations when adjusting

[Xen-devel] [PATCH v2 3/5] x86/pv: Introduce pv_create_exception_frame()

2018-02-27 Thread Andrew Cooper
This is a C implementation of {compat_,}create_bounce_frame(), based loosely on the existing failsafe implementation in load_segments(). It picks up all injection information from the trap_bounce structure. One minor improvement is that at no point is regs->cs left with an rpl of 0 on the root