Skip to content
Commit edc8deb0 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

x86/reboot: Hoist "disable virt" helpers above "emergency reboot" path



Move the various "disable virtualization" helpers above the emergency
reboot path so that emergency_reboot_disable_virtualization() can be
stubbed out in a future patch if neither KVM_INTEL nor KVM_AMD is enabled,
i.e. if there is no in-tree user of CPU virtualization.

No functional change intended.

Reviewed-by: default avatarKai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20230721201859.2307736-7-seanjc@google.com
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent ad93c1a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment