lkml.org 
[lkml]   [2022]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 088/110] KVM: x86/mmu: kvm_faultin_pfn has to return false if pfh is returned
    Date
    From: Andrei Vagin <avagin@gmail.com>

    commit a7cc099f2ec3117678adeb69749bef7e9dde3148 upstream.

    This looks like a typo in 8f32d5e563cb. This change didn't intend to do
    any functional changes.

    The problem was caught by gVisor tests.

    Fixes: 8f32d5e563cb ("KVM: x86/mmu: allow kvm_faultin_pfn to return page fault handling code")
    Cc: Maxim Levitsky <mlevitsk@redhat.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Andrei Vagin <avagin@gmail.com>
    Message-Id: <20211015163221.472508-1-avagin@gmail.com>
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    arch/x86/kvm/mmu/mmu.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/arch/x86/kvm/mmu/mmu.c
    +++ b/arch/x86/kvm/mmu/mmu.c
    @@ -3967,6 +3967,7 @@ static bool kvm_faultin_pfn(struct kvm_v

    *pfn = __gfn_to_pfn_memslot(slot, gfn, false, NULL,
    write, writable, hva);
    + return false;

    out_retry:
    *r = RET_PF_RETRY;

    \
     
     \ /
      Last update: 2022-03-14 13:11    [W:4.071 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site