]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Fix x2APIC MSRs interception
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Mon, 18 Jul 2022 08:38:33 +0000 (03:38 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2022 17:22:19 +0000 (13:22 -0400)
commit43d9a9160f50bdae6747fc91087b2ead587e28d8
treea6a26bed54586d3cdcddc8249782d1aff54d8534
parent4cd10ba2864112a74baeeedfecc6e72f6fb5dced
KVM: SVM: Fix x2APIC MSRs interception

The index for svm_direct_access_msrs was incorrectly initialized with
the APIC MMIO register macros. Fix by introducing a macro for calculating
x2APIC MSRs.

Fixes: eed8594e1138 ("KVM: SVM: Adding support for configuring x2APIC MSRs interception")
Cc: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Message-Id: <20220718083833.222117-1-suravee.suthikulpanit@amd.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c