Re: [PATCH v2 06/11] KVM: VMX: introduce vmx_need_pf_intercept

2020-06-22 Thread Paolo Bonzini
On 20/06/20 00:45, Jim Mattson wrote: >> + /* >> +* TODO: if both L0 and L1 need the same MASK and MATCH, >> +* go ahead and use it? >> +*/ > I'm not sure there's much "TODO", since L0's MASK and MATCH are both > 0. So, if L1's MASK and

Re: [PATCH v2 06/11] KVM: VMX: introduce vmx_need_pf_intercept

2020-06-19 Thread Jim Mattson
On Fri, Jun 19, 2020 at 8:40 AM Mohammed Gamal wrote: > > From: Paolo Bonzini > > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/vmx/nested.c | 28 +--- > arch/x86/kvm/vmx/vmx.c| 2 +- > arch/x86/kvm/vmx/vmx.h| 5 + > 3 files changed, 23 insertions(+), 1

[PATCH v2 06/11] KVM: VMX: introduce vmx_need_pf_intercept

2020-06-19 Thread Mohammed Gamal
From: Paolo Bonzini Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/nested.c | 28 +--- arch/x86/kvm/vmx/vmx.c| 2 +- arch/x86/kvm/vmx/vmx.h| 5 + 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vm