On 28.10.2024 16:49, Alejandro Vallejo wrote: > --- a/xen/arch/x86/xstate.c > +++ b/xen/arch/x86/xstate.c > @@ -374,11 +374,10 @@ void xsave(struct vcpu *v, struct xsave_struct *ptr, > uint64_t mask) > ptr->fpu_sse.x[FPU_WORD_SIZE_OFFSET] = fip_width; > } > > -void xrstor(struct vcpu *v, uint64_t mask) > +void xrstor(struct vcpu *v, struct xsave_struct *ptr, uint64_t mask) > { > uint32_t hmask = mask >> 32; > uint32_t lmask = mask; > - struct xsave_struct *ptr = v->arch.xsave_area; > unsigned int faults, prev_faults;
Same remark here as on the previous patch as to constification of v. Jan