Re: [PATCH v7 6/9] vmx: spp: Set up SPP paging table at vmentry/vmexit
From: Paolo Bonzini
Date: Thu Nov 21 2019 - 05:32:32 EST
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.
Paolo