]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sev: Move GHCB MSR protocol and NAE definitions in a common header
authorBrijesh Singh <brijesh.singh@amd.com>
Tue, 27 Apr 2021 11:16:35 +0000 (06:16 -0500)
committerBorislav Petkov <bp@suse.de>
Mon, 10 May 2021 05:46:39 +0000 (07:46 +0200)
commit3da53323950e003fd40f95f8ba4c4f98d3d1f9c2
tree09dd0959cb65f9055e247341215880654fe5a514
parent12d443d017656807c03e83bec4a7faa0f6f6a0cf
x86/sev: Move GHCB MSR protocol and NAE definitions in a common header

The guest and the hypervisor contain separate macros to get and set
the GHCB MSR protocol and NAE event fields. Consolidate the GHCB
protocol definitions and helper macros in one place.

Leave the supported protocol version define in separate files to keep
the guest and hypervisor flexibility to support different GHCB version
in the same release.

There is no functional change intended.

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Joerg Roedel <jroedel@suse.de>
Link: https://lkml.kernel.org/r/20210427111636.1207-3-brijesh.singh@amd.com
arch/x86/include/asm/sev-common.h [new file with mode: 0644]
arch/x86/include/asm/sev.h
arch/x86/kernel/sev-shared.c
arch/x86/kvm/svm/svm.h