Re: [PATCH v2 05/10] KVM: x86: interrupt based APF 'page ready' event delivery

From: Paolo Bonzini
Date: Wed Jun 10 2020 - 07:34:10 EST


On 10/06/20 11:01, Vitaly Kuznetsov wrote:
> The issue isn't related to the interrupt based APF mechanism, right?
> 'Page ready' events are always injected (sooner or later). I'll take a
> look.

No, it isn't.

>>> While setting up async pf, should we keep track whether associated
>>> page_not_present was delivered to guest or not and deliver page_ready
>>> accordingly.
>>
>> Yes, I think so.
>
> Something like this? (not even compile tested yet):

Pretty much, though I would avoid the reindentation if possible.

Paolo