Re: Xen 4.21 Development Update [May]

2025-06-14 Thread Oleksii Moisieiev
Hi Oleksii, Please see below. On 02/06/2025 19:37, Oleksii Kurochko wrote: > Hello everyone, > > This email only tracks big items for xen.git tree. Please reply for > items you > would like to see in 4.21 so that people have an idea what is going on > and > prioritise accordingly. > > You're we

Re: Xen 4.21 Development Update [May]

2025-06-14 Thread Oleksii Moisieiev
Hi Oleksii, Please see below. On 02/06/2025 19:37, Oleksii Kurochko wrote: > Hello everyone, > > This email only tracks big items for xen.git tree. Please reply for > items you > would like to see in 4.21 so that people have an idea what is going on > and > prioritise accordingly. > > You're we

Re: [MINI-OS PATCH 06/12] kexec: reserve memory below boundary

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:31 AM Juergen Gross wrote: > > In order to support kexec any memory used during copying the new > kernel to its final destination must not overlap with the destination > area. > > In order to achieve that add a new interface allowing to mark all > allocatable memory below

Re: [MINI-OS PATCH 07/12] kexec: build parameters for new kernel

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:30 AM Juergen Gross wrote: > > Build the parameters for the new kernel, consisting of the > hvm_start_info struct, the memory map and the command line. > > Signed-off-by: Juergen Gross > @@ -212,4 +213,61 @@ void kexec_set_param_loc(const char *cmdline) > + > +/* T

Re: [MINI-OS PATCH 09/12] mm: change set_readonly() to change_readonly()

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:31 AM Juergen Gross wrote: > > Rename set_readonly() to change_readonly() and add a parameter > specifying whether it should set the kernel to readonly or to writable. > At the same time move the boundary setting from the only caller into > the function itself, avoiding t

Re: [MINI-OS PATCH 10/12] kexec: switch read-only area to be writable again

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:30 AM Juergen Gross wrote: > > In order to allow writing the new kernel, make the readonly area > covering current kernel text writable again. > > Signed-off-by: Juergen Gross Reviewed-by: Jason Andryuk

Re: [MINI-OS PATCH 11/12] kexec: add kexec callback functionality

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:32 AM Juergen Gross wrote: > > Add a kexec_call() macro which will provide the capability to register > a function for being called when doing a kexec() call. The called > functions will be called with a boolean parameter "undo" indicating > whether a previous call needs

Re: [MINI-OS PATCH 12/12] kexec: do the final kexec step

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:30 AM Juergen Gross wrote: > > With all kexec preparations done, activate the new kernel. > > Signed-off-by: Juergen Gross > --- > kexec.c | 17 +++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > > diff --git a/kexec.c b/kexec.c > index 2db876e8..85b

Re: [MINI-OS PATCH 02/12] kexec: add final kexec stage

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:25 AM Juergen Gross wrote: > > Add the code and data definitions of the final kexec stage. > > Put the code and related data into a dedicated section in order to be > able to copy it to another location. For this reason there must be no > absolute relocations being used i

Re: [MINI-OS PATCH 01/12] kexec: add kexec framework

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:25 AM Juergen Gross wrote: > > Add a new config option CONFIG_KEXEC for support of kexec-ing into a > new mini-os kernel. Add a related kexec.c source and a kexec.h header. > > For now allow CONFIG_KEXEC to be set only for PVH variant of mini-os. > > Signed-off-by: Juerge

Re: [MINI-OS PATCH 04/12] kexec: analyze new kernel for kexec

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:25 AM Juergen Gross wrote: > > Analyze the properties of the new kernel to be loaded by kexec. The > data needed is: > > - upper boundary in final location > - copy and memory clear operations > - entry point and entry parameter > > Signed-off-by: Juergen Gross > + > +s

Re: [MINI-OS PATCH 05/12] kexec: finalize parameter location and size

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:25 AM Juergen Gross wrote: > > Finalize the location and the size of the parameters for the new > kernel. This is needed in order to avoid allocating new memory in the > area occupied by the new kernel and parameters. > > Signed-off-by: Juergen Gross Reviewed-by: Jason

Re: [MINI-OS PATCH 08/12] kexec: move used pages away for new kernel

2025-06-14 Thread Jason Andryuk
On Fri, Mar 21, 2025 at 5:30 AM Juergen Gross wrote: > > Copying the new kexec kernel must not overwrite any pages still needed > during this process. Those are especially the GDT, IDT and page tables. > > Move those to new allocated pages and update any related pointers. > > In case the kexec pro