• Peter Xu's avatar
    KVM: X86: Sanity check on gfn before removal · 0fd46044
    Peter Xu authored
    The index returned by kvm_async_pf_gfn_slot() will be removed when an
    async pf gfn is going to be removed.  However kvm_async_pf_gfn_slot()
    is not reliable in that it can return the last key it loops over even
    if the gfn is not found in the async gfn array.  It should never
    happen, but it's still better to sanity check against that to make
    sure no unexpected gfn will be removed.
    Signed-off-by: default avatarPeter Xu <peterx@redhat.com>
    Message-Id: <20200416155910.267514-1-peterx@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    0fd46044
x86.c 277 KB