Skip to content

RFC Add #VC exception handling for AMD SEV-ES

Varad Gautam kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest12 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12x86: AMD SEV-ES: Setup #VC exception handler for AMD SEV-ESlib/x86/amd_sev.c lib/x86/amd_sev.h lib/x86/amd_sev_vc.c +4 more+44 -11 reply
2/12x86: Move svm.h to lib/x86/lib/x86/svm.h x86/svm.c x86/svm_tests.c+2 -21 reply
3/12lib: x86: Import insn decoder from Linuxlib/x86/insn/inat-tables.c lib/x86/insn/inat.c lib/x86/insn/inat.h +4 more+2963 -00 replies
4/12x86: AMD SEV-ES: Pull related GHCB definitions and helpers from Linuxlib/x86/amd_sev.h lib/x86/svm.h x86/Makefile.x86_64+144 -00 replies
5/12x86: AMD SEV-ES: Prepare for #VC processinglib/x86/amd_sev_vc.c+78 -00 replies
6/12x86: AMD SEV-ES: Handle WBINVD #VClib/x86/amd_sev_vc.c+66 -00 replies
7/12lib/x86: Move xsave helpers to lib/lib/x86/xsave.c lib/x86/xsave.h x86/Makefile.common +1 more+55 -420 replies
8/12x86: AMD SEV-ES: Handle CPUID #VClib/x86/amd_sev_vc.c+41 -00 replies
9/12x86: AMD SEV-ES: Handle RDTSC/RDTSCP #VClib/x86/amd_sev_vc.c+27 -00 replies
10/12x86: AMD SEV-ES: Handle MSR #VClib/x86/amd_sev_vc.c+28 -00 replies
11/12x86: AMD SEV-ES: Handle IOIO #VClib/x86/amd_sev_vc.c+146 -00 replies
12/12x86: AMD SEV-ES: Handle string IO for IOIO #VClib/x86/amd_sev_vc.c+106 -20 replies

Reviews trailers per patch

1 of 12 patches has a Reviewed-by or Acked-by.

PatchMarc Orr
1/12
2/12R-b
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

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

Read the v1 thread

Cover letter [RFC kvm-unit-tests 00/12] Add #VC exception handling for AMD SEV-ES

This series adds #VC exception processing from Linux to kvm-unit-tests. The rationale is to not rely on UEFI-provided #VC handler when running the testcases as SEV-ES guests.

The series is based on the kvm-unit-tests uefi branch.

Tree: https://github.com/varadgautam/kvm-unit-tests/tree/vc-handler-rfc1

Varad Gautam (12):
x86: AMD SEV-ES Setup #VC exception handler for AMD SEV-ES
x86: Move svm.h to lib/x86/
lib: x86: Import insn decoder from Linux
x86: AMD SEV-ES: Pull related GHCB definitions and helpers from Linux
x86: AMD SEV-ES: Prepare for #VC processing
x86: AMD SEV-ES: Handle WBINVD #VC
lib/x86: Move xsave helpers to lib/
x86: AMD SEV-ES: Handle CPUID #VC
x86: AMD SEV-ES: Handle RDTSC/RDTSCP #VC
x86: AMD SEV-ES: Handle MSR #VC
x86: AMD SEV-ES: Handle IOIO #VC
x86: AMD SEV-ES: Handle string IO for IOIO #VC

 lib/x86/amd_sev.c          |    3 +-
 lib/x86/amd_sev.h          |  107 +++
 lib/x86/amd_sev_vc.c       |  504 ++++++++++++
 lib/x86/desc.c             |   17 +
 lib/x86/desc.h             |    1 +
 lib/x86/insn/inat-tables.c | 1566 ++++++++++++++++++++++++++++++++++++
 lib/x86/insn/inat.c        |   86 ++
 lib/x86/insn/inat.h        |  233 ++++++
 lib/x86/insn/inat_types.h  |   18 +
 lib/x86/insn/insn.c        |  778 ++++++++++++++++++
 lib/x86/insn/insn.h        |  280 +++++++
 lib/x86/setup.c            |    8 +
 {x86 => lib/x86}/svm.h     |   37 +
 lib/x86/xsave.c            |   37 +
 lib/x86/xsave.h            |   16 +
 x86/Makefile.common        |    4 +
 x86/Makefile.x86_64        |    1 +
 x86/svm.c                  |    2 +-
 x86/svm_tests.c            |    2 +-
 x86/xsave.c                |   43 +-
 20 files changed, 3698 insertions(+), 45 deletions(-)
 create mode 100644 lib/x86/amd_sev_vc.c
 create mode 100644 lib/x86/insn/inat-tables.c
 create mode 100644 lib/x86/insn/inat.c
 create mode 100644 lib/x86/insn/inat.h
 create mode 100644 lib/x86/insn/inat_types.h
 create mode 100644 lib/x86/insn/insn.c
 create mode 100644 lib/x86/insn/insn.h
 rename {x86 => lib/x86}/svm.h (93%)
 create mode 100644 lib/x86/xsave.c
 create mode 100644 lib/x86/xsave.h
Signature · 1 line
2.32.0