]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Move "kvm_rebooting" to kernel as "virt_rebooting"
authorSean Christopherson <seanjc@google.com>
Sat, 14 Feb 2026 01:26:49 +0000 (17:26 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 4 Mar 2026 16:52:31 +0000 (08:52 -0800)
commita1450a8156c65d9fe6111627094c26359d2e2274
tree78132508a65b0e8b4a29c0e4b45afaa5adcdc8f7
parent3c75e6a5da3c0dfcd34e5f9df5390804179f2aeb
KVM: x86: Move "kvm_rebooting" to kernel as "virt_rebooting"

Move "kvm_rebooting" to the kernel, exported for KVM, as one of many steps
towards extracting the innermost VMXON and EFER.SVME management logic out
of KVM and into to core x86.

For lack of a better name, call the new file "hw.c", to yield "virt
hardware" when combined with its parent directory.

No functional change intended.

Tested-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Sagi Shahar <sagis@google.com>
Link: https://patch.msgid.link/20260214012702.2368778-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/virt.h [new file with mode: 0644]
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/vmenter.S
arch/x86/kvm/vmx/tdx.c
arch/x86/kvm/vmx/vmenter.S
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h
arch/x86/virt/Makefile
arch/x86/virt/hw.c [new file with mode: 0644]