• Sean Christopherson's avatar
    KVM: VMX: Fold vmx_supported_debugctl() into vcpu_supported_debugctl() · 18e897d2
    Sean Christopherson authored
    Fold vmx_supported_debugctl() into vcpu_supported_debugctl(), its only
    caller.  Setting bits only to clear them a few instructions later is
    rather silly, and splitting the logic makes things seem more complicated
    than they actually are.
    
    Opportunistically drop DEBUGCTLMSR_LBR_MASK now that there's a single
    reference to the pair of bits.  The extra layer of indirection provides
    no meaningful value and makes it unnecessarily tedious to understand
    what KVM is doing.
    
    No functional change.
    Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
    Message-Id: <20221006000314.73240-4-seanjc@google.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    18e897d2
capabilities.h 9.74 KB