]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita26dd5a7d88eadf7412c661d4df3d453680ee00f
treedf72e50f4cce34cfcd85eefb72feab7d8f102fd0
parent37aaee89122006e1059bf63de5885276a65d11eb
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