Re: [PATCH v7 6/9] vmx: spp: Set up SPP paging table at vmentry/vmexit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux