]> www.infradead.org Git - users/dwmw2/linux.git/commit
kdump: forcibly disable VMX and SVM on machine_crash_shutdown()
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 17 Nov 2008 21:03:23 +0000 (19:03 -0200)
committerAvi Kivity <avi@redhat.com>
Fri, 21 Nov 2008 15:54:00 +0000 (17:54 +0200)
commit6a62e73e355a83cda313ffbc3beadf4baab0e647
treea3428cdc65027bc776db2a525ff2cc5a19913000
parentbeabc25f0c063fc1230ebdf456e70858c07701ea
kdump: forcibly disable VMX and SVM on machine_crash_shutdown()

We need to disable virtualization extensions on all CPUs before booting
the kdump kernel, otherwise the kdump kernel booting will fail, and
rebooting after the kdump kernel did its task may also fail.

We do it using cpu_emergency_vmxoff() and cpu_emergency_svm_disable(),
that should always work, because those functions check if the CPUs
support SVM or VMX before doing their tasks.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kernel/crash.c