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

2024-04-26 Thread Roger Pau Monné
On Fri, Apr 26, 2024 at 08:41:48AM +0200, Jan Beulich wrote: > On 24.04.2024 10:19, Roger Pau Monne wrote: > > @@ -571,6 +575,19 @@ int main(int argc, char *argv[]) > > show_help(); > > return 0; > > } > > + > > +if ( strcmp("--force", argv[1]) ) > > I guess this

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

2024-04-26 Thread Jan Beulich
On 24.04.2024 10:19, Roger Pau Monne wrote: > @@ -571,6 +575,19 @@ int main(int argc, char *argv[]) > show_help(); > return 0; > } > + > +if ( strcmp("--force", argv[1]) ) I guess this missing ! or "== 0" is the reason for osstest reporting a livepatch-run failure. Jan

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

2024-04-24 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