]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86: Move update_cr8_intercept() to lapic.c
authorSean Christopherson <seanjc@google.com>
Fri, 29 May 2026 22:21:56 +0000 (15:21 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 3 Jun 2026 12:35:23 +0000 (05:35 -0700)
commitc7722e5e1daeeabbd9f969554d52bb7158120b27
treeb62f7aa03becccc9bf511466867f183cbdbb0ad5
parent879fffc09474241428e142142206f903585e0834
KVM: x86: Move update_cr8_intercept() to lapic.c

Move update_cr8_intercept() to lapic.c so that it's globally visible
in anticipation of extracting most of the register-specific code out of
x86.c and into a new compilation unit.  Opportunistically prefix the
helper kvm_lapic_ to make its role/scope more obvious.

No functional change intended.

Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260529222223.870923-14-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/x86.c