Re: [PATCH v2 1/2] KVM: Stop KVM_PRE_FAULT_MEMORY when the vCPU's dirty ring is full

From: Fuad Tabba

Date: Thu Nov 19 2026 - 02:54:58 EST


Hi Sean,

On Thu, 19 Nov 2026 at 00:25, Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
[...]
> > > Maybe worth mentioning the exit_reason thing if we keep this arch-generic?
> >
> > Sure, I'll document that userspace should complete a pending exit with
> > KVM_RUN before it pre-faults on that vCPU.
>
> If we're going to do a documentation update, I vote to keep it vague and scary,
> otherwise readers might think the exception proves the rule. I.e. if we say
> that KVM_PRE_FAULT_MEMORY isn't supported, then userspace might think all other
> ioctls are safe, which is most definitely not the case. E.g. something like

I'll go with that in v3.

Thanks,
/fuad