]> git.baikalelectronics.ru Git - kernel.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>
Wed, 31 Dec 2008 14:52:30 +0000 (16:52 +0200)
commita306da9268de0878b38a06b10ffe5021e9fec551
tree07815f82bd09a2ca2c2de17c607a536ae4916454
parent35b82f2bef54c6ce64e836d898ce1e77061e4a16
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