Re: [RFC PATCH v2 52/69] KVM: VMX: Split out guts of EPT violation to common/exposed function
From: Sean Christopherson
Date: Tue Jul 13 2021 - 16:58:02 EST
On Tue, Jul 06, 2021, Paolo Bonzini wrote:
> On 03/07/21 00:04, isaku.yamahata@xxxxxxxxx wrote:
> > +static inline int __vmx_handle_ept_violation(struct kvm_vcpu *vcpu, gpa_t gpa,
> > + unsigned long exit_qualification)
> > +{
...
> > +}
> > +
...
> > @@ -5379,7 +5356,7 @@ static int handle_ept_violation(struct kvm_vcpu *vcpu)
> > if (unlikely(allow_smaller_maxphyaddr && kvm_vcpu_is_illegal_gpa(vcpu, gpa)))
> > return kvm_emulate_instruction(vcpu, 0);
> > - return kvm_mmu_page_fault(vcpu, gpa, error_code, NULL, 0);
> > + return __vmx_handle_ept_violation(vcpu, gpa, exit_qualification);
> > }
> > static int handle_ept_misconfig(struct kvm_vcpu *vcpu)
> >
>
> This should be in main.c, not in a header (and named
> __vt_handle_ept_qualification).
Yar, though I'm guessing you meant __vt_handle_ept_violation?