Re: [PATCH RFC] KVM: async_pf: fix async_pf exception injection

From: Paolo Bonzini
Date: Fri Jun 09 2017 - 07:32:26 EST




On 09/06/2017 07:30, Wanpeng Li wrote:
> 2017-06-08 19:52 GMT+08:00 Paolo Bonzini <pbonzini@xxxxxxxxxx>:
>>
>> 3) add an async_page_fault member to vcpu->arch.exception
>
> Do you think we should also add an async_page_fault field to
> x86_exception, then pass down to kvm_inject_page_fault() through
> x86_exception? Maybe we should modify
> kvm_queue_exception_e/kvm_multiple_exception etc to add an function
> parameter for async_page_fault.

I don't know. :) I cannot say without looking closer or basically doing
all the work. Do whatever looks best to you!

Paolo