]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Fix an off-by-one typo in the comment for enabling AVIC by default
authorSean Christopherson <seanjc@google.com>
Fri, 9 Jan 2026 03:50:37 +0000 (19:50 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 14 Jan 2026 13:55:21 +0000 (05:55 -0800)
commit69555130dccb39df4d40f90fafc7fc79a5d55b8a
treec74c74f0d3a4f55297c369a44d4caaeb36a392aa
parentd6c20d19f7d3de14d02b47221988cdb19504bb84
KVM: SVM: Fix an off-by-one typo in the comment for enabling AVIC by default

Fix a goof in the comment that documents KVM's logic for enabling AVIC by
default to reference Zen5+ as family 0x1A (Zen5), not family 0x19 (Zen4).
The code is correct (checks for _greater_ than 0x19), only the comment is
flawed.

Opportunistically tweak the check too, even though it's already correct,
so that both the comment and the code reference 0x1A, and so that the
checks are "ascending", i.e. check Zen4 and then Zen5+.

No functional change intended.

Fixes: ca2967de5a5b ("KVM: SVM: Enable AVIC by default for Zen4+ if x2AVIC is support")
Acked-by: Naveen N Rao (AMD) <naveen@kernel.org>
Link: https://patch.msgid.link/20260109035037.1015073-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/avic.c