Skip to content

x86: Disable kexec for SEV-ES guests

Joerg Roedel kvm linux-coco lkml stable virtualization 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Rebased to v5.13-rc4
- Add the check also to the kexec_file_load system call

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kexec: Allow architecture code to opt-out at runtimeinclude/linux/kexec.h kernel/kexec.c kernel/kexec_file.c+24 -00 replies
2/2x86/kexec/64: Forbid kexec when running as an SEV-ES guestarch/x86/kernel/machine_kexec_64.c+8 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] x86: Disable kexec for SEV-ES guests

From: Joerg Roedel <[email protected]>

Changes v1->v2:

- Rebased to v5.13-rc4
- Add the check also to the kexec_file_load system call

Original cover letter:

Hi,

two small patches to disable kexec on x86 when running as an SEV-ES guest. Trying to kexec a new kernel would fail anyway because there is no mechanism yet to hand over the APs from the old to the new kernel. Supporting this needs changes in the Hypervisor and the guest kernel as well.

This code is currently being work on, but disable kexec in SEV-ES guests until it is ready.

Please review.

Regards,

Joerg

Joerg Roedel (2):
kexec: Allow architecture code to opt-out at runtime x86/kexec/64: Forbid kexec when running as an SEV-ES guest

 arch/x86/kernel/machine_kexec_64.c |  8 ++++++++
 include/linux/kexec.h              |  1 +
 kernel/kexec.c                     | 14 ++++++++++++++
 kernel/kexec_file.c                |  9 +++++++++
 4 files changed, 32 insertions(+)
Signature · 1 line
2.31.1