KVM: SVM: Add GHCB Accessor functions
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:15:04 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 7 Sep 2020 17:45:24 +0000 (19:45 +0200)
commit3702c2f4eed2188440f65ecdfc89165106fe565d
treedf72e50f4cce34cfcd85eefb72feab7d8f102fd0
parentd07f46f9f51afc7fc9f021eae19eba3c2e7870ac
KVM: SVM: Add GHCB Accessor functions

Building a correct GHCB for the hypervisor requires setting valid bits
in the GHCB. Simplify that process by providing accessor functions to
set values and to update the valid bitmap and to check the valid bitmap
in KVM.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-4-joro@8bytes.org
arch/x86/include/asm/svm.h