[PATCH] x86/pv: Split pv_hypercall() in two

2021-10-11 Thread Andrew Cooper
The is_pv_32bit_vcpu() conditionals hide four lfences, with two taken on any individual path through the function. There is very little code common between compat and native, and context-dependent conditionals predict very badly for a period of time after context switch. Move do_entry_int82() fro

Re: [PATCH] x86/pv: Split pv_hypercall() in two

2021-10-12 Thread Jan Beulich
On 11.10.2021 20:05, Andrew Cooper wrote: > The is_pv_32bit_vcpu() conditionals hide four lfences, with two taken on any > individual path through the function. There is very little code common > between compat and native, and context-dependent conditionals predict very > badly for a period of tim