Re: [PATCH 02/14] x86/xstate: Create map/unmap primitives for xsave areas

2024-10-29 Thread Alejandro Vallejo
On Tue Oct 29, 2024 at 1:24 PM GMT, Frediano Ziglio wrote: > On Tue, Oct 29, 2024 at 11:58 AM Alejandro Vallejo > wrote: > > > > Hi, > > > > On Mon Oct 28, 2024 at 5:20 PM GMT, Andrew Cooper wrote: > > > On 28/10/2024 3:49 pm, Alejandro Vallejo wrote: > > > > diff --git a/xen/arch/x86/include/asm/

Re: [PATCH 02/14] x86/xstate: Create map/unmap primitives for xsave areas

2024-10-29 Thread Alejandro Vallejo
On Tue Oct 29, 2024 at 1:28 PM GMT, Jan Beulich wrote: > On 29.10.2024 12:57, Alejandro Vallejo wrote: > > On Mon Oct 28, 2024 at 5:20 PM GMT, Andrew Cooper wrote: > >> On 28/10/2024 3:49 pm, Alejandro Vallejo wrote: > >>> diff --git a/xen/arch/x86/include/asm/xstate.h > >>> b/xen/arch/x86/include

Re: [PATCH 02/14] x86/xstate: Create map/unmap primitives for xsave areas

2024-10-29 Thread Jan Beulich
On 29.10.2024 12:57, Alejandro Vallejo wrote: > On Mon Oct 28, 2024 at 5:20 PM GMT, Andrew Cooper wrote: >> On 28/10/2024 3:49 pm, Alejandro Vallejo wrote: >>> diff --git a/xen/arch/x86/include/asm/xstate.h >>> b/xen/arch/x86/include/asm/xstate.h >>> index 07017cc4edfd..36260459667c 100644 >>> ---

Re: [PATCH 02/14] x86/xstate: Create map/unmap primitives for xsave areas

2024-10-29 Thread Frediano Ziglio
On Tue, Oct 29, 2024 at 11:58 AM Alejandro Vallejo wrote: > > Hi, > > On Mon Oct 28, 2024 at 5:20 PM GMT, Andrew Cooper wrote: > > On 28/10/2024 3:49 pm, Alejandro Vallejo wrote: > > > diff --git a/xen/arch/x86/include/asm/xstate.h > > > b/xen/arch/x86/include/asm/xstate.h > > > index 07017cc4edf

Re: [PATCH 02/14] x86/xstate: Create map/unmap primitives for xsave areas

2024-10-29 Thread Alejandro Vallejo
Hi, On Mon Oct 28, 2024 at 5:20 PM GMT, Andrew Cooper wrote: > On 28/10/2024 3:49 pm, Alejandro Vallejo wrote: > > diff --git a/xen/arch/x86/include/asm/xstate.h > > b/xen/arch/x86/include/asm/xstate.h > > index 07017cc4edfd..36260459667c 100644 > > --- a/xen/arch/x86/include/asm/xstate.h > > +++

Re: [PATCH 02/14] x86/xstate: Create map/unmap primitives for xsave areas

2024-10-29 Thread Alejandro Vallejo
On Tue Oct 29, 2024 at 8:19 AM GMT, Jan Beulich wrote: > On 28.10.2024 16:49, Alejandro Vallejo wrote: > > --- a/xen/arch/x86/include/asm/xstate.h > > +++ b/xen/arch/x86/include/asm/xstate.h > > @@ -143,4 +143,24 @@ static inline bool xstate_all(const struct vcpu *v) > > (v->arch.xcr0_a

Re: [PATCH 02/14] x86/xstate: Create map/unmap primitives for xsave areas

2024-10-29 Thread Jan Beulich
On 28.10.2024 16:49, Alejandro Vallejo wrote: > --- a/xen/arch/x86/include/asm/xstate.h > +++ b/xen/arch/x86/include/asm/xstate.h > @@ -143,4 +143,24 @@ static inline bool xstate_all(const struct vcpu *v) > (v->arch.xcr0_accum & XSTATE_LAZY & ~XSTATE_FP_SSE); > } > > +/* > + * Fetch

Re: [PATCH 02/14] x86/xstate: Create map/unmap primitives for xsave areas

2024-10-28 Thread Andrew Cooper
On 28/10/2024 3:49 pm, Alejandro Vallejo wrote: > diff --git a/xen/arch/x86/include/asm/xstate.h > b/xen/arch/x86/include/asm/xstate.h > index 07017cc4edfd..36260459667c 100644 > --- a/xen/arch/x86/include/asm/xstate.h > +++ b/xen/arch/x86/include/asm/xstate.h > @@ -143,4 +143,24 @@ static inline

[PATCH 02/14] x86/xstate: Create map/unmap primitives for xsave areas

2024-10-28 Thread Alejandro Vallejo
Add infrastructure to simplify ASI handling. With ASI in the picture we'll have several different means of accessing the XSAVE area of a given vCPU, depending on whether a domain is covered by ASI or not and whether the vCPU is question is scheduled on the current pCPU or not. Having these complex