]> git.karo-electronics.de Git - linux-beck.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)
commit2340b62f77c782c305e6ae7748675a638436d1ef
tree07815f82bd09a2ca2c2de17c607a536ae4916454
parent0f3e9eeba0ea212bbea88790729d054b700ab91e
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