• Maxim Levitsky's avatar
    x86: KVM: SVM: add support for Invalid IPI Vector interception · 2dcf37ab
    Maxim Levitsky authored
    In later revisions of AMD's APM, there is a new 'incomplete IPI' exit code:
    
    "Invalid IPI Vector - The vector for the specified IPI was set to an
    illegal value (VEC < 16)"
    
    Note that tests on Zen2 machine show that this VM exit doesn't happen and
    instead AVIC just does nothing.
    
    Add support for this exit code by doing nothing, instead of filling
    the kernel log with errors.
    
    Also replace an unthrottled 'pr_err()' if another unknown incomplete
    IPI exit happens with vcpu_unimpl()
    
    (e.g in case AMD adds yet another 'Invalid IPI' exit reason)
    
    Cc: <stable@vger.kernel.org>
    Signed-off-by: default avatarMaxim Levitsky <mlevitsk@redhat.com>
    Reviewed-by: default avatarSean Christopherson <seanjc@google.com>
    Message-Id: <20230928173354.217464-3-mlevitsk@redhat.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    2dcf37ab
svm.h 16.4 KB