]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Handle APIC-write offset wrangling in VMX code
authorSean Christopherson <seanjc@google.com>
Fri, 4 Feb 2022 21:41:56 +0000 (21:41 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Mar 2022 13:50:45 +0000 (08:50 -0500)
commite8db9ccdfef20aaf0ea4999cf00544ba0916de7d
treec97e52fcfb42cbf2fcada35bd803e60c6d90f2bf
parent575d338b96f468fd3fc272bd3c4d8cee5cb0ee4d
KVM: VMX: Handle APIC-write offset wrangling in VMX code

Move the vAPIC offset adjustments done in the APIC-write trap path from
common x86 to VMX in anticipation of using the nodecode path for SVM's
AVIC.  The adjustment reflects hardware behavior, i.e. it's technically a
property of VMX, no common x86.  SVM's AVIC behavior is identical, so
it's a bit of a moot point, the goal is purely to make it easier to
understand why the adjustment is ok.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220204214205.3306634-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/vmx/vmx.c