Re: [PATCH v7 7/7] KVM: x86: Add user-space access interface for CET MSRs

2019-10-17 Thread Yang Weijiang
On Thu, Oct 17, 2019 at 12:58:11PM -0700, Sean Christopherson wrote: > On Wed, Oct 02, 2019 at 01:57:50PM -0700, Jim Mattson wrote: > > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang > > wrote: > > > > > > There're two different places storing Guest CET states, the states > > > managed with XSAVES

Re: [PATCH v7 7/7] KVM: x86: Add user-space access interface for CET MSRs

2019-10-17 Thread Sean Christopherson
On Wed, Oct 02, 2019 at 01:57:50PM -0700, Jim Mattson wrote: > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang wrote: > > > > There're two different places storing Guest CET states, the states > > managed with XSAVES/XRSTORS, as restored/saved > > in previous patch, can be read/write directly from/t

Re: [PATCH v7 7/7] KVM: x86: Add user-space access interface for CET MSRs

2019-10-08 Thread Yang Weijiang
On Wed, Oct 02, 2019 at 01:57:50PM -0700, Jim Mattson wrote: > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang wrote: > > > > There're two different places storing Guest CET states, the states > > managed with XSAVES/XRSTORS, as restored/saved > > in previous patch, can be read/write directly from/t

Re: [PATCH v7 7/7] KVM: x86: Add user-space access interface for CET MSRs

2019-10-02 Thread Jim Mattson
On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang wrote: > > There're two different places storing Guest CET states, the states > managed with XSAVES/XRSTORS, as restored/saved > in previous patch, can be read/write directly from/to the MSRs. > For those stored in VMCS fields, they're access via vmcs_