]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Drop pointless masking of default APIC base when setting V_APIC_BAR
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:11 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:52:56 +0000 (13:52 -0700)
commit430579577892f56d25d4bc97f34212acc00e55fa
tree7604b2f8571fbceabf6d83bf49f35bba41f14e69
parenta0ca34bb1aad0c72e3fe7b9377c7ac87fa3b7098
KVM: SVM: Drop pointless masking of default APIC base when setting V_APIC_BAR

Drop VMCB_AVIC_APIC_BAR_MASK, it's just a regurgitation of the maximum
theoretical 4KiB-aligned physical address, i.e. is not novel in any way,
and its only usage is to mask the default APIC base, which is 4KiB aligned
and (obviously) a legal physical address.

No functional change intended.

Tested-by: Sairaj Kodilkar <sarunkod@amd.com>
Reviewed-by: Naveen N Rao (AMD) <naveen@kernel.org>
Link: https://lore.kernel.org/r/20250611224604.313496-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/svm.h
arch/x86/kvm/svm/avic.c