x86/seves: Support 32-bit boot path and other updates
Status from this message: The following commit has been merged into the x86/seves branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest8 patches 1 replyApplied
- v27 patches 4 repliesSuperseded
- v17 patches 12 repliesSuperseded
Changes in v3 from the cover letter
- Added a patch to remove the check for the Hypervisor CPUID bit for detecting SEV
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | x86/boot/compressed/64: Cleanup exception handling before booting kernelarch/ arch/ arch/ | +22 | 0 replies | |
| 2/8 | x86/sev: Do not require Hypervisor CPUID bit for SEV guestsarch/ arch/ arch/ | +20 | 1 reply | |
| 3/8 | x86/boot/compressed/64: Reload CS in startup_32arch/ | +8 | 0 replies | |
| 4/8 | x86/boot/compressed/64: Setup IDT in startup_32 boot patharch/ | +72 | 0 replies | |
| 5/8 | x86/boot/compressed/64: Add 32-bit boot #VC handlerarch/ arch/ | +101 | 0 replies | |
| 6/8 | x86/boot/compressed/64: Add CPUID sanity check to 32-bit boot-patharch/ | +28 | 0 replies | |
| 7/8 | x86/boot/compressed/64: Check SEV encryption in 32-bit boot-patharch/ | +83 | 0 replies | |
| 8/8 | x86/sev-es: Replace open-coded hlt-loops with sev_es_terminate()arch/ arch/ | +6 | 0 replies |
Reviews trailers per patch
1 of 8 patches has a Reviewed-by or Acked-by.
| Patch | Tom Lendacky |
|---|---|
| 1/8 | |
| 2/8 | A-b |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/8] x86/seves: Support 32-bit boot path and other updates
From: Joerg Roedel <[email protected]>
Hi,
these patches add support for the 32-bit boot in the decompressor code. This is needed to boot an SEV-ES guest on some firmware and grub versions. The patches also add the necessary CPUID sanity checks and a 32-bit version of the C-bit check.
Other updates included here:
1. Add code to shut down exception handling in the decompressor code before jumping to the real kernel. Once in the real kernel it is not safe anymore to jump back to the decompressor code via exceptions.
2. Replace open-coded hlt loops with proper calls to sev_es_terminate().
Please review.
Thanks,
Joerg
Changes v2->v3:
- Added a patch to remove the check for the Hypervisor CPUID bit for detecting SEV
Changes v1->v2:
- Addressed Boris' review comments.
- Fixed a bug which caused the cbit-check to never be executed even in an SEV guest.
Joerg Roedel (8):
x86/boot/compressed/64: Cleanup exception handling before booting
kernel
x86/sev: Do not require Hypervisor CPUID bit for SEV guests x86/boot/compressed/64: Reload CS in startup_32 x86/boot/compressed/64: Setup IDT in startup_32 boot path x86/boot/compressed/64: Add 32-bit boot #VC handler x86/boot/compressed/64: Add CPUID sanity check to 32-bit boot-path x86/boot/compressed/64: Check SEV encryption in 32-bit boot-path x86/sev-es: Replace open-coded hlt-loops with sev_es_terminate()
arch/x86/boot/compressed/head_64.S | 170 ++++++++++++++++++++++++- arch/x86/boot/compressed/idt_64.c | 14 ++ arch/x86/boot/compressed/mem_encrypt.S | 130 ++++++++++++++++++- arch/x86/boot/compressed/misc.c | 7 +- arch/x86/boot/compressed/misc.h | 6 + arch/x86/boot/compressed/sev-es.c | 12 +- arch/x86/kernel/sev-es-shared.c | 16 +-- arch/x86/mm/mem_encrypt_identity.c | 35 ++--- 8 files changed, 340 insertions(+), 50 deletions(-)
Signature · 6 lines
2.30.1 _______________________________________________ Virtualization mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/virtualization