Re: [*** OFF-LIST *** PATCH v2 1/3] x86/fpu: Bail early from guest XFD update if XFD isn't supported
From: Paolo Bonzini
Date: Mon Nov 30 2026 - 13:03:03 EST
On Fri, 20 Nov 2026 11:30:52 -0800, Borislav Petkov wrote:
> On Wed, Nov 18, 2026 at 04:15:04PM -0800, Sean Christopherson wrote:
>> Ignore KVM-requested guest XFD updates if the kernel doesn't support XFD,
>
>> to allow an upcoming fix to modify xsave.header.xfeatures even when the
>> incoming XFD value is '0'.
>
> Drop that. I agree with Dave and the sentiment to "not even go there" and
> not support non-sensical configurations.
Agreed, the real justification for bailing out early should be "allow
XFD == 0 as that is anyway the initial value of fpstate->xfd, but detect
XFD != 0 and WARN as that's a clear bug in KVM".
Then subsequent patches are free to do whatever they want.
> I appreciate your musings, Sean, but to me that commit message ended after the
> first sentence. All is perfectly clear.
:)
Here is my take on both the patch and the commit message:
----------------------- 8< -----------------