Re: [Xen-devel] [PATCH 2/5] xen/alternatives: Plumb a 'live' parameter through apply_alternatives()

2018-01-30 Thread Julien Grall
Hi Andrew, On 30/01/18 11:24, Andrew Cooper wrote: On 30/01/18 11:05, Julien Grall wrote: Hi Andrew, On 29/01/18 15:38, Andrew Cooper wrote: On x86, we would like to alter how we patch based on whether there is any chance of the code being patched being concurrently executed.

Re: [Xen-devel] [PATCH 2/5] xen/alternatives: Plumb a 'live' parameter through apply_alternatives()

2018-01-30 Thread Andrew Cooper
On 30/01/18 11:05, Julien Grall wrote: > Hi Andrew, > > On 29/01/18 15:38, Andrew Cooper wrote: >> On x86, we would like to alter how we patch based on whether there is >> any >> chance of the code being patched being concurrently executed. >> >> prepare_payload() passes false (as the livepatch

Re: [Xen-devel] [PATCH 2/5] xen/alternatives: Plumb a 'live' parameter through apply_alternatives()

2018-01-30 Thread Julien Grall
Hi Andrew, On 29/01/18 15:38, Andrew Cooper wrote: On x86, we would like to alter how we patch based on whether there is any chance of the code being patched being concurrently executed. prepare_payload() passes false (as the livepatch definitely isn't live at this point), whereas the

Re: [Xen-devel] [PATCH 2/5] xen/alternatives: Plumb a 'live' parameter through apply_alternatives()

2018-01-29 Thread Stefano Stabellini
On Mon, 29 Jan 2018, Andrew Cooper wrote: > On x86, we would like to alter how we patch based on whether there is any > chance of the code being patched being concurrently executed. > > prepare_payload() passes false (as the livepatch definitely isn't live at this > point), whereas the boot-time