• Sean Christopherson's avatar
    KVM: x86: Trace all APICv inhibit changes and capture overall status · 4f4c4a3e
    Sean Christopherson authored
    Trace all APICv inhibit changes instead of just those that result in
    APICv being (un)inhibited, and log the current state.  Debugging why
    APICv isn't working is frustrating as it's hard to see why APICv is still
    inhibited, and logging only the first inhibition means unnecessary onion
    peeling.
    
    Opportunistically drop the export of the tracepoint, it is not and should
    not be used by vendor code due to the need to serialize toggling via
    apicv_update_lock.
    
    Note, using the common flow means kvm_apicv_init() switched from atomic
    to non-atomic bitwise operations.  The VM is unreachable at init, so
    non-atomic is perfectly ok.
    Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
    Message-Id: <20220311043517.17027-4-seanjc@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    4f4c4a3e
trace.h 41.9 KB