Re: [PATCH v7 5/7] kvm: x86: Add CET CR4 bit and XSS support

2019-10-22 Thread Yang Weijiang
On Tue, Oct 22, 2019 at 01:13:21PM -0700, Sean Christopherson wrote: > On Fri, Oct 18, 2019 at 09:58:02AM +0800, Yang Weijiang wrote: > > On Thu, Oct 17, 2019 at 12:56:42PM -0700, Sean Christopherson wrote: > > > On Wed, Oct 02, 2019 at 12:05:23PM -0700, Jim Mattson wrote: > > > > > +

Re: [PATCH v7 5/7] kvm: x86: Add CET CR4 bit and XSS support

2019-10-22 Thread Sean Christopherson
On Fri, Oct 18, 2019 at 09:58:02AM +0800, Yang Weijiang wrote: > On Thu, Oct 17, 2019 at 12:56:42PM -0700, Sean Christopherson wrote: > > On Wed, Oct 02, 2019 at 12:05:23PM -0700, Jim Mattson wrote: > > > > + u64 kvm_xss = kvm_supported_xss(); > > > > + > > > > + best->e

Re: [PATCH v7 5/7] kvm: x86: Add CET CR4 bit and XSS support

2019-10-17 Thread Yang Weijiang
On Thu, Oct 17, 2019 at 12:56:42PM -0700, Sean Christopherson wrote: > On Wed, Oct 02, 2019 at 12:05:23PM -0700, Jim Mattson wrote: > > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang > > wrote: > > > > > > CR4.CET(bit 23) is master enable bit for CET feature. > > > Previously, KVM did not support

Re: [PATCH v7 5/7] kvm: x86: Add CET CR4 bit and XSS support

2019-10-17 Thread Sean Christopherson
On Wed, Oct 02, 2019 at 12:05:23PM -0700, Jim Mattson wrote: > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang wrote: > > > > CR4.CET(bit 23) is master enable bit for CET feature. > > Previously, KVM did not support setting any bits in XSS > > so it's hardcoded to check and inject a #GP if Guest > >

Re: [PATCH v7 5/7] kvm: x86: Add CET CR4 bit and XSS support

2019-10-02 Thread Jim Mattson
On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang wrote: > > CR4.CET(bit 23) is master enable bit for CET feature. > Previously, KVM did not support setting any bits in XSS > so it's hardcoded to check and inject a #GP if Guest > attempted to write a non-zero value to XSS, now it supports > CET relate

[PATCH v7 5/7] kvm: x86: Add CET CR4 bit and XSS support

2019-09-26 Thread Yang Weijiang
CR4.CET(bit 23) is master enable bit for CET feature. Previously, KVM did not support setting any bits in XSS so it's hardcoded to check and inject a #GP if Guest attempted to write a non-zero value to XSS, now it supports CET related bits setting. Co-developed-by: Zhang Yi Z Signed-off-by: Zhang