[Xen-devel] [PATCH 3/5] xen/vm-event: Remove unnecessary vm_event_domain indirection

2019-06-03 Thread Andrew Cooper
The use of (*ved)-> leads to poor code generation, as the compiler can't assume the pointer hasn't changed, and results in hard-to-follow code. For both vm_event_{en,dis}able(), rename the ved parameter to p_ved, and work primarily with a local ved pointer. This has a key advantage in vm_event_en

Re: [Xen-devel] [PATCH 3/5] xen/vm-event: Remove unnecessary vm_event_domain indirection

2019-06-03 Thread Razvan Cojocaru
On 6/3/19 3:25 PM, Andrew Cooper wrote: The use of (*ved)-> leads to poor code generation, as the compiler can't assume the pointer hasn't changed, and results in hard-to-follow code. For both vm_event_{en,dis}able(), rename the ved parameter to p_ved, and work primarily with a local ved pointer