diff options
author | Joerg Roedel <jroedel@suse.de> | 2020-09-07 15:15:48 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-09-09 11:33:19 +0200 |
commit | d3529bb73f76d0ec8aafaca505226fa0971c1dc9 (patch) | |
tree | 812415932923398750b5b05a10d3cc3769c44072 /arch/x86/kernel/sev-es.c | |
parent | x86/sev-es: Add a Runtime #VC Exception Handler (diff) | |
download | linux-d3529bb73f76d0ec8aafaca505226fa0971c1dc9.tar.xz linux-d3529bb73f76d0ec8aafaca505226fa0971c1dc9.zip |
x86/sev-es: Wire up existing #VC exit-code handlers
Re-use the handlers for CPUID- and IOIO-caused #VC exceptions in the
early boot handler.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-48-joro@8bytes.org
Diffstat (limited to 'arch/x86/kernel/sev-es.c')
-rw-r--r-- | arch/x86/kernel/sev-es.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/sev-es.c b/arch/x86/kernel/sev-es.c index 0d6b66e93260..b10a62a78c07 100644 --- a/arch/x86/kernel/sev-es.c +++ b/arch/x86/kernel/sev-es.c @@ -441,6 +441,12 @@ static enum es_result vc_handle_exitcode(struct es_em_ctxt *ctxt, enum es_result result; switch (exit_code) { + case SVM_EXIT_CPUID: + result = vc_handle_cpuid(ghcb, ctxt); + break; + case SVM_EXIT_IOIO: + result = vc_handle_ioio(ghcb, ctxt); + break; default: /* * Unexpected #VC exception |