Re: [PATCH] x86/xen: fix xen_hypercall_hvm() to not clobber %rbx

2025-02-05 Thread Jan Beulich
On 05.02.2025 11:04, Jürgen Groß wrote: > On 05.02.25 10:38, Andrew Cooper wrote: >> On 05/02/2025 9:17 am, Jürgen Groß wrote: >>> On 05.02.25 10:16, Andrew Cooper wrote: On 05/02/2025 9:10 am, Juergen Gross wrote: > xen_hypercall_hvm(), which is used when running as a Xen PVH guest at >>>

Re: [PATCH] x86/xen: fix xen_hypercall_hvm() to not clobber %rbx

2025-02-05 Thread Jürgen Groß
On 05.02.25 10:54, Jan Beulich wrote: On 05.02.2025 10:10, Juergen Gross wrote: xen_hypercall_hvm(), which is used when running as a Xen PVH guest at most only once during early boot, is clobbering %rbx. Depending on whether the caller relies on %rbx to be preserved across the call or not, this

Re: [PATCH] x86/xen: fix xen_hypercall_hvm() to not clobber %rbx

2025-02-05 Thread Jürgen Groß
On 05.02.25 10:38, Andrew Cooper wrote: On 05/02/2025 9:17 am, Jürgen Groß wrote: On 05.02.25 10:16, Andrew Cooper wrote: On 05/02/2025 9:10 am, Juergen Gross wrote: xen_hypercall_hvm(), which is used when running as a Xen PVH guest at most only once during early boot, is clobbering %rbx. Depe

Re: [PATCH] x86/xen: fix xen_hypercall_hvm() to not clobber %rbx

2025-02-05 Thread Jan Beulich
On 05.02.2025 10:10, Juergen Gross wrote: > xen_hypercall_hvm(), which is used when running as a Xen PVH guest at > most only once during early boot, is clobbering %rbx. Depending on > whether the caller relies on %rbx to be preserved across the call or > not, this clobbering might result in an ear

Re: [PATCH] x86/xen: fix xen_hypercall_hvm() to not clobber %rbx

2025-02-05 Thread Andrew Cooper
On 05/02/2025 9:17 am, Jürgen Groß wrote: > On 05.02.25 10:16, Andrew Cooper wrote: >> On 05/02/2025 9:10 am, Juergen Gross wrote: >>> xen_hypercall_hvm(), which is used when running as a Xen PVH guest at >>> most only once during early boot, is clobbering %rbx. Depending on >>> whether the caller

Re: [PATCH] x86/xen: fix xen_hypercall_hvm() to not clobber %rbx

2025-02-05 Thread Jürgen Groß
On 05.02.25 10:16, Andrew Cooper wrote: On 05/02/2025 9:10 am, Juergen Gross wrote: xen_hypercall_hvm(), which is used when running as a Xen PVH guest at most only once during early boot, is clobbering %rbx. Depending on whether the caller relies on %rbx to be preserved across the call or not, t

Re: [PATCH] x86/xen: fix xen_hypercall_hvm() to not clobber %rbx

2025-02-05 Thread Andrew Cooper
On 05/02/2025 9:10 am, Juergen Gross wrote: > xen_hypercall_hvm(), which is used when running as a Xen PVH guest at > most only once during early boot, is clobbering %rbx. Depending on > whether the caller relies on %rbx to be preserved across the call or > not, this clobbering might result in an e

[PATCH] x86/xen: fix xen_hypercall_hvm() to not clobber %rbx

2025-02-05 Thread Juergen Gross
xen_hypercall_hvm(), which is used when running as a Xen PVH guest at most only once during early boot, is clobbering %rbx. Depending on whether the caller relies on %rbx to be preserved across the call or not, this clobbering might result in an early crash of the system. This can be avoided by no