Skip to content

Drivers: hv: add kexec support (and fix kdump)

Vitaly Kuznetsov kexec lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesNew
  2. v23 patches 0 repliesSuperseded
  3. v13 patches 1 replySuperseded

Changes in v3 from the cover letter

- Get rid of #ifdefs in mshyperv.c [Olaf Hering, Greg KH] PATCH 2/5 is added to support the change.
- Fix (also broken) kdump [K. Y. Srinivasan] PATCH 5/5 added.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Drivers: hv: vmbus: remove hv_synic_free_cpu() call from hv_synic_cleanup()drivers/hv/hv.c drivers/hv/vmbus_drv.c+1 -20 replies
2/5kexec: define kexec_in_progress in !CONFIG_KEXEC caseinclude/linux/kexec.h+1 -00 replies
3/5Drivers: hv: vmbus: add special kexec handlerarch/x86/include/asm/mshyperv.h arch/x86/kernel/cpu/mshyperv.c drivers/hv/vmbus_drv.c+40 -00 replies
4/5Drivers: hv: don't do hypercalls when hypercall_page is NULLdrivers/hv/hv.c+8 -50 replies
5/5Drivers: hv: vmbus: add special crash handlerarch/x86/include/asm/mshyperv.h arch/x86/kernel/cpu/mshyperv.c drivers/hv/vmbus_drv.c+38 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/5] Drivers: hv: add kexec support (and fix kdump)

Changes since v2:
- Get rid of #ifdefs in mshyperv.c [Olaf Hering, Greg KH] PATCH 2/5 is added to support the change.
- Fix (also broken) kdump [K. Y. Srinivasan] PATCH 5/5 added.

Changes since v1:
- rebased on top of current Greg's char-misc-next tree.

To make general-purpose kexec (not just kdump) possible for Hyper-V guests we need to perform some additional cleanup before starting new kernel (see [PATCH 3/5] for the detailed description). Kdump also requires some mandatory cleanup [PATCH 5/5]

Know limitations: kexec with balloned out memory is not possible as the newly loaded kernel doesn't know about this memory and there is no way to ask the host to bring all the memory back on cleanup (or at least I'm not aware of such a way). Kexec with hotplugged memory leads to reboot (not exactly sure why).

Vitaly Kuznetsov (5):
Drivers: hv: vmbus: remove hv_synic_free_cpu() call from
hv_synic_cleanup()
kexec: define kexec_in_progress in !CONFIG_KEXEC case
Drivers: hv: vmbus: add special kexec handler
Drivers: hv: don't do hypercalls when hypercall_page is NULL
Drivers: hv: vmbus: add special crash handler

 arch/x86/include/asm/mshyperv.h |  4 ++++
 arch/x86/kernel/cpu/mshyperv.c  | 46 +++++++++++++++++++++++++++++++++++++++++
 drivers/hv/hv.c                 | 15 +++++++-------
 drivers/hv/vmbus_drv.c          | 29 ++++++++++++++++++++++++++
 include/linux/kexec.h           |  1 +
 5 files changed, 88 insertions(+), 7 deletions(-)
Signature · 1 line
2.4.2