Re: [PATCH v2 09/21] KVM:x86: Load guest FPU state when accessing xsaves-managed MSRs

From: Yang, Weijiang
Date: Thu Apr 27 2023 - 11:57:29 EST



On 4/27/2023 11:46 AM, Binbin Wu wrote:


On 4/21/2023 9:46 PM, Yang Weijiang wrote:
From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>

Load the guest's FPU state if userspace is accessing MSRs whose values are
managed by XSAVES so that the MSR helpers, e.g. kvm_{get,set}_xsave_msr(),
So far, kvm_{get,set}_xsave_msr() is not introduced yet.
IMO, it is a bit confusing to understand the whole picture without the following patches.
May be add some description or adjust the order?

Sure, will add blurbs for the two helpers., thanks!

[...]