Re: [PATCH v15 04/14] KVM: x86: Add #CP support in guest exception dispatch

2021-02-04 Thread Paolo Bonzini
On 04/02/21 17:42, Sean Christopherson wrote: On Thu, Feb 04, 2021, Paolo Bonzini wrote: On 03/02/21 22:46, Sean Christopherson wrote: diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c index dbca1687ae8e..0b6dab6915a3 100644 --- a/arch/x86/kvm/vmx/nested.c +++

Re: [PATCH v15 04/14] KVM: x86: Add #CP support in guest exception dispatch

2021-02-04 Thread Sean Christopherson
On Thu, Feb 04, 2021, Paolo Bonzini wrote: > On 03/02/21 22:46, Sean Christopherson wrote: > > > > diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c > > index dbca1687ae8e..0b6dab6915a3 100644 > > --- a/arch/x86/kvm/vmx/nested.c > > +++ b/arch/x86/kvm/vmx/nested.c > > @@ -2811,7

Re: [PATCH v15 04/14] KVM: x86: Add #CP support in guest exception dispatch

2021-02-04 Thread Paolo Bonzini
On 04/02/21 08:22, Yang Weijiang wrote: Thanks Sean for catching this! Hi, Paolo, Do I need to send another version to include Sean's change? No, it's okay. Paolo

Re: [PATCH v15 04/14] KVM: x86: Add #CP support in guest exception dispatch

2021-02-04 Thread Paolo Bonzini
On 03/02/21 22:46, Sean Christopherson wrote: diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c index dbca1687ae8e..0b6dab6915a3 100644 --- a/arch/x86/kvm/vmx/nested.c +++ b/arch/x86/kvm/vmx/nested.c @@ -2811,7 +2811,7 @@ static int nested_check_vm_entry_controls(struct

Re: [PATCH v15 04/14] KVM: x86: Add #CP support in guest exception dispatch

2021-02-03 Thread Yang Weijiang
On Wed, Feb 03, 2021 at 01:46:42PM -0800, Sean Christopherson wrote: > On Wed, Feb 03, 2021, Yang Weijiang wrote: > > Add handling for Control Protection (#CP) exceptions, vector 21, used > > and introduced by Intel's Control-Flow Enforcement Technology (CET). > > relevant CET violation case. See

Re: [PATCH v15 04/14] KVM: x86: Add #CP support in guest exception dispatch

2021-02-03 Thread Sean Christopherson
On Wed, Feb 03, 2021, Yang Weijiang wrote: > Add handling for Control Protection (#CP) exceptions, vector 21, used > and introduced by Intel's Control-Flow Enforcement Technology (CET). > relevant CET violation case. See Intel's SDM for details. > > Signed-off-by: Yang Weijiang > --- >

[PATCH v15 04/14] KVM: x86: Add #CP support in guest exception dispatch

2021-02-03 Thread Yang Weijiang
Add handling for Control Protection (#CP) exceptions, vector 21, used and introduced by Intel's Control-Flow Enforcement Technology (CET). relevant CET violation case. See Intel's SDM for details. Signed-off-by: Yang Weijiang --- arch/x86/include/uapi/asm/kvm.h | 1 + arch/x86/kvm/x86.c