Re: [PATCH v2] KVM: x86: Revise guest_fpu xcomp_bv field

2021-03-08 Thread Liu, Jing2
On 3/2/2021 7:59 AM, Sean Christopherson wrote: On Thu, Feb 25, 2021, Jing Liu wrote: XCOMP_BV[63] field indicates that the save area is in the compacted format and XCOMP_BV[62:0] indicates the states that have space allocated in the save area, including both XCR0 and XSS bits enabled by the

Re: [PATCH v2] KVM: x86: Revise guest_fpu xcomp_bv field

2021-03-01 Thread Sean Christopherson
On Thu, Feb 25, 2021, Jing Liu wrote: > XCOMP_BV[63] field indicates that the save area is in the compacted > format and XCOMP_BV[62:0] indicates the states that have space allocated > in the save area, including both XCR0 and XSS bits enabled by the host > kernel. Use xfeatures_mask_all for calcul

[PATCH v2] KVM: x86: Revise guest_fpu xcomp_bv field

2021-02-24 Thread Jing Liu
XCOMP_BV[63] field indicates that the save area is in the compacted format and XCOMP_BV[62:0] indicates the states that have space allocated in the save area, including both XCR0 and XSS bits enabled by the host kernel. Use xfeatures_mask_all for calculating xcomp_bv and reuse XCOMP_BV_COMPACTED_FO