]> git.hungrycats.org Git - linux/commit
KVM: VMX: Make handle_bus_lock_vmexit() a shared helper
authorXiaoyao Li <xiaoyao.li@intel.com>
Wed, 19 Aug 2026 09:49:01 +0000 (17:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Nov 2026 17:06:09 +0000 (12:06 -0500)
commit4ef5e623d2fe29a48a497f96b06ade68034718de
treed10e88eee1fa293e2fb7ed3dfc59d683e31f0439
parent196450c52f3517e4b7d6199e3841485e11c6f7c8
KVM: VMX: Make handle_bus_lock_vmexit() a shared helper

commit 326fa2c9b4d3e6cab58c139eb55aaabd7179192e upstream.

Move handle_bus_lock_vmexit() from vmx.c to main.c to make it a shared
helper so that TDX can use it for Bus Lock VM exit handling as well.
Rename it to add vt_ prefix to reflect that it is a helper for both VMX
and TDX.

Cc: stable@vger.kernel.org
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Link: https://patch.msgid.link/20260819094903.3060020-8-xiaoyao.li@intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx/common.h
arch/x86/kvm/vmx/main.c
arch/x86/kvm/vmx/vmx.c