Re: [PATCH v6 3/4] KVM: async_pf: Force a nested vmexit if the injected #PF is async_pf

From: Paolo Bonzini
Date: Wed Jun 28 2017 - 08:56:58 EST




On 28/06/2017 14:25, Wanpeng Li wrote:
> From: Wanpeng Li <wanpeng.li@xxxxxxxxxxx>
>
> Add an nested_apf field to vcpu->arch.exception to identify an async page
> fault, and constructs the expected vm-exit information fields. Force a
> nested VM exit from nested_vmx_check_exception() if the injected #PF is
> async page fault. Extending the userspace interface KVM_GET_VCPU_EVENTS
> and KVM_SET_VCPU_EVENTS for live migration.
>
> Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx>
> Cc: Radim KrÄmÃÅ <rkrcmar@xxxxxxxxxx>
> Signed-off-by: Wanpeng Li <wanpeng.li@xxxxxxxxxxx>
> ---

Radim, Wanpeng,

the patch is nice now but I'm still not 100% sure about the live
migration part. Why do we need to pass nested_apf to userspace, but not
nested_apf_token?

Paolo