kdump: disable virtualization extensions on crash (v2)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | kdump: crash-time virt disable functionarch/ arch/ | +95 | 2 replies | |
| 2/6 | kvm_x86_ops: crash_hardware_disable() operationarch/ | +1 | 0 replies | |
| 3/6 | kvm: svm: set crash_hardware_disable to svm_hardware_disablearch/ | +1 | 0 replies | |
| 4/6 | kvm: vmx: crash_hardware_disable functionarch/ | +14 | 0 replies | |
| 5/6 | kvmx: x86: set kvm_x86_ops earlier on kvm_arch_init()arch/ | +5 | 0 replies | |
| 6/6 | kvm: x86: set kdump virt_disable function on initializationarch/ | +18 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] kdump: disable virtualization extensions on crash (v2)
Hi,
After some discussion, this is my second try to fix properly the kdump hang when the kvm-intel module is loaded. I've kept the virtualization code inside the KVM, and just used a function pointer that can be registered by KVM to be called at crash time.
This series is for one of the alternatives for solving the problem. Other alternatives that were discussed were:
a) Using a raw notifier chain (kernel/notifier.c) (the first version of this series)
- This was dropped because the less code we have to rely on, the better, and it would make it too easy to break kdump
b) Always calling vmxoff, after hacking the #UD vector to ignore unknown opcode exceptions.
- Too hackish in my opinion. And we don't need to hack #UD, anyway, if we can simply test CR4.VMXE (all our code that run vmxon/vmxoff toggle CR4.VMXE accordingly)
c) Moving the equivalent to the hardware_disable()/hardware_enable() API (and the vmx and svm implementations) from the KVM module to the kernel core, so the kernel core knows which CPUs have virtualization enabled, and disables virtualization without calling into the KVM module.
- This wasn't completely discarded, but would move to the core a bunch of code that always lived in the KVM module.
Signature · 1 line
Eduardo