Re: [RFC PATCH v2 20/69] KVM: x86/mmu: Mark VM as bugged if page fault returns RET_PF_INVALID

From: Sean Christopherson
Date: Tue Jul 13 2021 - 16:28:36 EST


On Fri, Jul 02, 2021, isaku.yamahata@xxxxxxxxx wrote:
> From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>

For a changelog:

Mark a VM as bugged instead of simply warning if the core page fault
handler unexpectedly returns RET_PF_INVALID. KVM's (undocumented) API
for the page fault path does not allow returning RET_PF_INVALID, e.g. a
fatal condition should be morphed to -errno.

> Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
> Signed-off-by: Isaku Yamahata <isaku.yamahata@xxxxxxxxx>
> ---