Re: [PATCH v6 2/4] x86/tests: Add tests for AMD SEV-ES #VC handling
From: Borislav Petkov
Date: Tue Apr 12 2022 - 07:33:59 EST
On Fri, Mar 18, 2022 at 11:46:44AM +0100, Vasant Karasulli wrote:
> Add KUnit based tests to validate Linux's
> VC handling for instructions cpuid and wbinvd.
This looks like a commit message title to me.
Also, please write x86 instructions in all caps: CPUID and WBINVD.
> These tests:
> 1. install a kretprobe on the #VC handler (sev_es_ghcb_hv_call, to
> access GHCB before/after the resulting VMGEXIT).
> 2. trigger an NAE by executing either cpuid or wbinvd.
> 3. check that the kretprobe was hit with the right exit_code
> available in GHCB.
Yes, I'd appreciate a short step-by-step thing how to run them or a
pointer to the docs.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette