RE: [patch 5/6] x86/fpu: Provide fpu_update_guest_xcr0/xfd()

From: Tian, Kevin
Date: Wed Dec 15 2021 - 01:14:55 EST


> From: Tian, Kevin
> Sent: Tuesday, December 14, 2021 2:26 PM
> > +static inline int fpu_update_guest_xfd(struct fpu_guest *guest_fpu, u64
> xcr0,
> > u64 xfd)
> > +{
> > + return __fpu_update_guest_features(guest_fpu, xcr0, xfd);
> > +}
>
> no need to pass in xcr0. It can be fetched from vcpu->arch.xcr0.
>

This is a silly comment. There is not vcpu to be referenced...