x86/reboot: Expose VMCS crash hooks if and only if KVM_{INTEL,AMD} is enabled
authorSean Christopherson <seanjc@google.com>
Fri, 21 Jul 2023 20:18:48 +0000 (13:18 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 3 Aug 2023 22:37:14 +0000 (15:37 -0700)
commit261cd5ed934e6923187cf1c9eaa6cb63f2b81212
treecbcaeaba2153745a6407923778d6703f60fcfd57
parent59765db5fc82726b32876b794667e2c6936a98ab
x86/reboot: Expose VMCS crash hooks if and only if KVM_{INTEL,AMD} is enabled

Expose the crash/reboot hooks used by KVM to disable virtualization in
hardware and unblock INIT only if there's a potential in-tree user,
i.e. either KVM_INTEL or KVM_AMD is enabled.

Reviewed-by: Kai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20230721201859.2307736-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/reboot.h
arch/x86/kernel/reboot.c