Re: [PATCH v3 2/4] livepatch: introduce --force option

2024-04-23 Thread Anthony PERARD
On Tue, Apr 23, 2024 at 03:12:47PM +0200, Roger Pau Monne wrote: > Introduce a xen-livepatch tool --force option, that's propagated into the > hyerpvisor for livepatch operations. The intention is for the option to be > used to bypass some checks that would otherwise prevent the patch from being

Re: [PATCH v3 2/4] livepatch: introduce --force option

2024-04-23 Thread Jan Beulich
On 23.04.2024 15:12, Roger Pau Monne wrote: > --- a/xen/common/livepatch.c > +++ b/xen/common/livepatch.c > @@ -2125,7 +2125,8 @@ int livepatch_op(struct xen_sysctl_livepatch_op > *livepatch) > { > int rc; > > -if ( livepatch->pad ) > +if ( livepatch->flags & ~LIVEPATCH_FLAGS_MASK

[PATCH v3 2/4] livepatch: introduce --force option

2024-04-23 Thread Roger Pau Monne
Introduce a xen-livepatch tool --force option, that's propagated into the hyerpvisor for livepatch operations. The intention is for the option to be used to bypass some checks that would otherwise prevent the patch from being loaded. Re purpose the pad field in xen_sysctl_livepatch_op to be a