Skip to content

kvm: disable virtualization on kdump

Eduardo Habkost kexec kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kdump: crash-time CPU halt notifier interfacearch/x86/kernel/crash.c arch/x86/kernel/reboot.c include/asm-x86/reboot.h+63 -00 replies
2/2kvm: disable virtualization when halting CPUs on crasharch/x86/kvm/x86.c+21 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSimon Horman
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] kvm: disable virtualization on kdump

The following two patches should make kdump work when the kvm-intel module is loaded. We need to disable vmx mode before booting the kdump kernel, so I've introduced a notifier interface where KVM can hook and disable virtualization on all CPUs just before they are halted.

It has the same purpose of the KVM reboot notifier that gets executed at kexec-time. But on the kdump case, things are not as simple because the kernel has just crashed.

The notifier interface being introduced is x86-specific. I don't know if an arch-independent interface would be more appropriate for this case.

It was tested only using kvm-intel. Testing on different machines is welcome.

Signature · 1 line
Eduardo