Re: [PATCH v7 1/7] KVM: CPUID: Fix IA32_XSS support in CPUID(0xd,i) enumeration

2019-10-22 Thread Yang Weijiang
On Tue, Oct 22, 2019 at 12:46:15PM -0700, Sean Christopherson wrote: > On Fri, Oct 18, 2019 at 09:28:09AM +0800, Yang Weijiang wrote: > > On Thu, Oct 17, 2019 at 12:46:22PM -0700, Sean Christopherson wrote: > > > On Wed, Oct 02, 2019 at 10:26:10AM -0700, Jim Mattson wrote: > > > > > +

Re: [PATCH v7 1/7] KVM: CPUID: Fix IA32_XSS support in CPUID(0xd,i) enumeration

2019-10-22 Thread Sean Christopherson
On Fri, Oct 18, 2019 at 09:28:09AM +0800, Yang Weijiang wrote: > On Thu, Oct 17, 2019 at 12:46:22PM -0700, Sean Christopherson wrote: > > On Wed, Oct 02, 2019 at 10:26:10AM -0700, Jim Mattson wrote: > > > > + entry->eax = 0; > > > > + entry->ebx = 0; > >

Re: [PATCH v7 1/7] KVM: CPUID: Fix IA32_XSS support in CPUID(0xd,i) enumeration

2019-10-17 Thread Yang Weijiang
On Thu, Oct 17, 2019 at 12:46:22PM -0700, Sean Christopherson wrote: > On Wed, Oct 02, 2019 at 10:26:10AM -0700, Jim Mattson wrote: > > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang > > wrote: > > > @@ -414,6 +419,50 @@ static inline void do_cpuid_7_mask(struct > > > kvm_cpuid_entry2 *entry,

Re: [PATCH v7 1/7] KVM: CPUID: Fix IA32_XSS support in CPUID(0xd,i) enumeration

2019-10-17 Thread Sean Christopherson
On Wed, Oct 02, 2019 at 10:26:10AM -0700, Jim Mattson wrote: > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang wrote: > > @@ -414,6 +419,50 @@ static inline void do_cpuid_7_mask(struct > > kvm_cpuid_entry2 *entry, int index) > > } > > } > > > > +static inline void do_cpuid_0xd_mask(struct

Re: [PATCH v7 1/7] KVM: CPUID: Fix IA32_XSS support in CPUID(0xd,i) enumeration

2019-10-08 Thread Yang Weijiang
On Wed, Oct 02, 2019 at 10:26:10AM -0700, Jim Mattson wrote: > On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang wrote: > > > > The control bits in IA32_XSS MSR are being used for new features, > > but current CPUID(0xd,i) enumeration code doesn't support them, so > > fix existing code first. > > > >

Re: [PATCH v7 1/7] KVM: CPUID: Fix IA32_XSS support in CPUID(0xd,i) enumeration

2019-10-02 Thread Jim Mattson
On Thu, Sep 26, 2019 at 7:17 PM Yang Weijiang wrote: > > The control bits in IA32_XSS MSR are being used for new features, > but current CPUID(0xd,i) enumeration code doesn't support them, so > fix existing code first. > > The supervisor states in IA32_XSS haven't been used in public > KVM code,

[PATCH v7 1/7] KVM: CPUID: Fix IA32_XSS support in CPUID(0xd,i) enumeration

2019-09-26 Thread Yang Weijiang
The control bits in IA32_XSS MSR are being used for new features, but current CPUID(0xd,i) enumeration code doesn't support them, so fix existing code first. The supervisor states in IA32_XSS haven't been used in public KVM code, so set KVM_SUPPORTED_XSS to 0 now, anyone who's developing IA32_XSS