Messages in this thread | | | From | "Tian, Kevin" <> | Subject | RE: [PATCH v6 07/21] x86/fpu: Provide fpu_enable_guest_xfd_features() for KVM | Date | Mon, 10 Jan 2022 05:25:14 +0000 |
| |
Hi, Paolo,
> From: Paolo Bonzini <pbonzini@redhat.com> > Sent: Saturday, January 8, 2022 2:55 AM > > +/* > + * fpu_enable_guest_xfd_features - Check xfeatures against guest perm > and enable > + * @guest_fpu: Pointer to the guest FPU container > + * @xfeatures: Features requested by guest CPUID > + * > + * Enable all dynamic xfeatures according to guest perm and requested > CPUID. > + * > + * Return: 0 on success, error code otherwise > + */
Just a NIT. This function itself has nothing to do with guest CPUID which is a caller-side policy. It simply enable xfeatures per request.
Thanks Kevin
| |