kernel - Skip vmm_shutdown() when in a panic
commit1887942f2b5442d1fbe870f07b0d89239a3d2607
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 5 Dec 2016 00:09:23 +0000 (4 16:09 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 5 Dec 2016 00:09:23 +0000 (4 16:09 -0800)
treee5aa555b4a412034dcb4ffbf20eab874d359acae
parent43c88c9d711a1d08f93df21293aea381e9fd1681
kernel - Skip vmm_shutdown() when in a panic

* vmm_shutdown() calls cpusync and assumes that the system is basically
  in working order.  This is definitely not the case from a panic.
  Conditionalize the code to be skipped if shutting-down due to a panic.

* Fixes a number of situations where the panic code locks up and refuses
  to dump when called with debug.debugger_on_panic=0.
sys/platform/pc64/vmm/vmm.c