Re: [RFC PATCH 08/21] KVM: x86: Add kvm_x86_ops hook to short circuit emulation

2019-08-19 Thread Sean Christopherson
On Mon, Aug 19, 2019 at 06:34:07PM -0700, Andy Lutomirski wrote: > On Mon, Aug 19, 2019 at 3:01 PM Sean Christopherson > wrote: > > > > On Thu, Aug 15, 2019 at 05:47:12PM -0700, Andy Lutomirski wrote: > > > > > > > > > >> On Jul 29, 2019, at 7:49 PM, Sean Christopherson > > > >> wrote: > > > >>

Re: [RFC PATCH 08/21] KVM: x86: Add kvm_x86_ops hook to short circuit emulation

2019-08-19 Thread Andy Lutomirski
On Mon, Aug 19, 2019 at 3:01 PM Sean Christopherson wrote: > > On Thu, Aug 15, 2019 at 05:47:12PM -0700, Andy Lutomirski wrote: > > > > > > >> On Jul 29, 2019, at 7:49 PM, Sean Christopherson > > >> wrote: > > >> > > >> On Sat, Jul 27, 2019 at 10:38:03AM -0700, Andy Lutomirski wrote: > > >> On F

Re: [RFC PATCH 08/21] KVM: x86: Add kvm_x86_ops hook to short circuit emulation

2019-08-19 Thread Sean Christopherson
On Thu, Aug 15, 2019 at 05:47:12PM -0700, Andy Lutomirski wrote: > > > >> On Jul 29, 2019, at 7:49 PM, Sean Christopherson > >> wrote: > >> > >> On Sat, Jul 27, 2019 at 10:38:03AM -0700, Andy Lutomirski wrote: > >> On Fri, Jul 26, 2019 at 10:52 PM Sean Christopherson > >> wrote: > >>> > >>>

Re: [RFC PATCH 08/21] KVM: x86: Add kvm_x86_ops hook to short circuit emulation

2019-08-15 Thread Andy Lutomirski
>> On Jul 29, 2019, at 7:49 PM, Sean Christopherson >> wrote: >> >> On Sat, Jul 27, 2019 at 10:38:03AM -0700, Andy Lutomirski wrote: >> On Fri, Jul 26, 2019 at 10:52 PM Sean Christopherson >> wrote: >>> >>> Similar to the existing AMD #NPF case where emulation of the current >>> instruction

Re: [RFC PATCH 08/21] KVM: x86: Add kvm_x86_ops hook to short circuit emulation

2019-07-29 Thread Sean Christopherson
On Fri, Jul 26, 2019 at 10:52:01PM -0700, Sean Christopherson wrote: > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > index 48c865a4e5dd..0fb8b60eb136 100644 > --- a/arch/x86/kvm/svm.c > +++ b/arch/x86/kvm/svm.c > @@ -7115,10 +7115,25 @@ static int nested_enable_evmcs(struct kvm_vcpu *vcpu,

Re: [RFC PATCH 08/21] KVM: x86: Add kvm_x86_ops hook to short circuit emulation

2019-07-29 Thread Sean Christopherson
On Sat, Jul 27, 2019 at 10:38:03AM -0700, Andy Lutomirski wrote: > On Fri, Jul 26, 2019 at 10:52 PM Sean Christopherson > wrote: > > > > Similar to the existing AMD #NPF case where emulation of the current > > instruction is not possible due to lack of information, virtualization > > of Intel SGX

Re: [RFC PATCH 08/21] KVM: x86: Add kvm_x86_ops hook to short circuit emulation

2019-07-27 Thread Andy Lutomirski
On Fri, Jul 26, 2019 at 10:52 PM Sean Christopherson wrote: > > Similar to the existing AMD #NPF case where emulation of the current > instruction is not possible due to lack of information, virtualization > of Intel SGX will introduce a scenario where emulation is not possible > due to the VMExit