[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191121150400.GF17169@local-michael-cet-test>
Date: Thu, 21 Nov 2019 23:04:00 +0800
From: Yang Weijiang <weijiang.yang@...el.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: Yang Weijiang <weijiang.yang@...el.com>, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, jmattson@...gle.com,
sean.j.christopherson@...el.com, yu.c.zhang@...ux.intel.com,
alazar@...defender.com, edwin.zhai@...el.com
Subject: Re: [PATCH v7 6/9] vmx: spp: Set up SPP paging table at
vmentry/vmexit
On Thu, Nov 21, 2019 at 11:32:22AM +0100, Paolo Bonzini wrote:
> On 19/11/19 09:49, Yang Weijiang wrote:
> > @@ -5400,6 +5434,10 @@ int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t cr2, u64 error_code,
> > r = vcpu->arch.mmu->page_fault(vcpu, cr2,
> > lower_32_bits(error_code),
> > false);
> > +
> > + if (vcpu->run->exit_reason == KVM_EXIT_SPP)
> > + return 0;
> > +
>
> Instead of this, please add a RET_PF_USERSPACE case to the RET_PF_* enum
> in mmu.c.
OK, will add it, thank you!
>
> Paolo
Powered by blists - more mailing lists