]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sev-es: Do not unroll string I/O for SEV-ES guests
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 1 Feb 2021 18:26:27 +0000 (12:26 -0600)
committerBorislav Petkov <bp@suse.de>
Tue, 2 Feb 2021 15:25:05 +0000 (16:25 +0100)
commit71c44e41207ff0507e5baa933747ccfc823e98de
treec99ef8b81224ce4c1069e93137b45da1a358bd7b
parenta5bcd1e766a4442962cb14550ab37793e515d3a2
x86/sev-es: Do not unroll string I/O for SEV-ES guests

Under the GHCB specification, SEV-ES guests can support string I/O.
The current #VC handler contains this support, so remove the need to
unroll kernel string I/O operations. This will reduce the number of #VC
exceptions generated as well as the number VM exits for the guest.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/3de04b5b638546ac75d42ba52307fe1a922173d3.1612203987.git.thomas.lendacky@amd.com
arch/x86/mm/mem_encrypt.c