]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sev-es: Use GHCB accessor for setting the MMIO scratch buffer
authorTom Lendacky <thomas.lendacky@amd.com>
Fri, 25 Sep 2020 13:38:26 +0000 (08:38 -0500)
committerBorislav Petkov <bp@suse.de>
Fri, 25 Sep 2020 15:12:41 +0000 (17:12 +0200)
commit3bd308eae6e65a975a30f2d40d280216219cc83c
tree1381fe44d01716e7a05bb15687e3797f844ce5d8
parent50247986e029dd76ed86eb133af3ca5ca6f1c811
x86/sev-es: Use GHCB accessor for setting the MMIO scratch buffer

Use ghcb_set_sw_scratch() to set the GHCB scratch field, which will also
set the corresponding bit in the GHCB valid_bitmap field to denote that
sw_scratch is actually valid.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Link: https://lkml.kernel.org/r/ba84deabdf44a7a880454fb351d189c6ad79d4ba.1601041106.git.thomas.lendacky@amd.com
arch/x86/kernel/sev-es.c