Re: [RESEND v13 11/11] KVM: x86: Enable CET virtualization and advertise CET to userspace

2020-07-22 Thread Sean Christopherson
On Thu, Jul 16, 2020 at 11:16:27AM +0800, Yang Weijiang wrote: > Set the feature bits so that CET capabilities can be seen in guest via > CPUID enumeration. Add CR4.CET bit support in order to allow guest set CET > master control bit(CR4.CET). > > Disable KVM CET feature once unrestricted_guest

[RESEND v13 11/11] KVM: x86: Enable CET virtualization and advertise CET to userspace

2020-07-15 Thread Yang Weijiang
Set the feature bits so that CET capabilities can be seen in guest via CPUID enumeration. Add CR4.CET bit support in order to allow guest set CET master control bit(CR4.CET). Disable KVM CET feature once unrestricted_guest is turned off because KVM cannot emulate guest CET behavior well in this