aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-07-21 13:18:47 -0700
committerSean Christopherson <[email protected]>2023-08-03 15:37:14 -0700
commit59765db5fc82726b32876b794667e2c6936a98ab (patch)
treebf4fb5cc3b84afe13f2059fe8468da0ebf425f20 /net/lapb/lapb_out.c
parentedc8deb087d884bac2f7013f0c23af73042b23a7 (diff)
x86/reboot: Disable virtualization during reboot iff callback is registered
Attempt to disable virtualization during an emergency reboot if and only if there is a registered virt callback, i.e. iff a hypervisor (KVM) is active. If there's no active hypervisor, then the CPU can't be operating with VMX or SVM enabled (barring an egregious bug). Checking for a valid callback instead of simply for SVM or VMX support can also eliminates spurious NMIs by avoiding the unecessary call to nmi_shootdown_cpus_on_restart(). Note, IRQs are disabled, which prevents KVM from coming along and enabling virtualization after the fact. Reviewed-by: Kai Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions