• S
    KVM: x86: Add wrappers for setting/clearing APICv inhibits · 320af55a
    Sean Christopherson 提交于
    Add set/clear wrappers for toggling APICv inhibits to make the call sites
    more readable, and opportunistically rename the inner helpers to align
    with the new wrappers and to make them more readable as well.  Invert the
    flag from "activate" to "set"; activate is painfully ambiguous as it's
    not obvious if the inhibit is being activated, or if APICv is being
    activated, in which case the inhibit is being deactivated.
    
    For the functions that take @set, swap the order of the inhibit reason
    and @set so that the call sites are visually similar to those that bounce
    through the wrapper.
    Signed-off-by: NSean Christopherson <seanjc@google.com>
    Message-Id: <20220311043517.17027-3-seanjc@google.com>
    Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
    320af55a
x86.c 338.3 KB