Skip to content
Snippets Groups Projects
user avatar
Vitaly Kuznetsov authored
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2119111

commit 1685c0f3
Author: Mingwei Zhang <mizhang@google.com>
Date:   Sun Aug 7 05:21:41 2022 +0000

    KVM: x86/mmu: rename trace function name for asynchronous page fault

    Rename the tracepoint function from trace_kvm_async_pf_doublefault() to
    trace_kvm_async_pf_repeated_fault() to make it clear, since double fault
    has nothing to do with this trace function.

    Asynchronous Page Fault (APF) is an artifact generated by KVM when it
    cannot find a physical page to satisfy an EPT violation. KVM uses APF to
    tell the guest OS to do something else such as scheduling other guest
    processes to make forward progress. However, when another guest process
    also touches a previously APFed page, KVM halts the vCPU instead of
    generating a repeated APF to avoid wasting cycles.

    Double fault (#DF) clearly has a different meaning and a different
    consequence when triggered. #DF requires two nested contributory exceptions
    instead of two page faults faulting at the same address. A prevous bug on
    APF indicates that it may trigger a double fault in the guest [1] and
    clearly this trace function has nothing to do with it. So rename this
    function should be a valid choice.

    No functional change intended.

    [1] https://www.spinics.net/lists/kvm/msg214957.html



Signed-off-by: default avatarMingwei Zhang <mizhang@google.com>
    Message-Id: <20220807052141.69186-1-mizhang@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>

Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
68f636eb
Name Last commit Last update