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

Tian, Kevin
2021-12-15T06:14:52Z

> 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...