]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Move kvm_rebooting to x86
authorSean Christopherson <seanjc@google.com>
Sat, 14 Feb 2026 01:26:47 +0000 (17:26 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 4 Mar 2026 16:52:19 +0000 (08:52 -0800)
commit4059172b2a78a71d15d8fcd8d3fd8ea1ba65d25b
tree1387dc3feb2ff9700c10163107daa95507f2b21c
parent11439c4635edd669ae435eec308f4ab8a0804808
KVM: x86: Move kvm_rebooting to x86

Move kvm_rebooting, which is only read by x86, to KVM x86 so that it can
be moved again to core x86 code.  Add a "shutdown" arch hook to facilate
setting the flag in KVM x86, along with a pile of comments to provide more
context around what KVM x86 is doing and why.

Reviewed-by: Chao Gao <chao.gao@intel.com>
Acked-by: Dave Hansen <dave.hansen@linux.intel.com>
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-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c