Paolo Bonzini <pbonzini@xxxxxxxxxx> writes: > On 10/16/23 16:18, Vitaly Kuznetsov wrote: >> In case keeping legacy mechanism is a must, I would suggest you somehow >> record the fact that the guest has opted for interrupt-based delivery >> (e.g. set a global variable or use a static key) and short-circuit >> do_async_page_fault() to immediately return and not do anything in this >> case. > > I guess you mean "not do anything for KVM_PV_REASON_PAGE_READY in this > case"? Yes, of course: KVM_PV_REASON_PAGE_NOT_PRESENT is always a #PF. -- Vitaly