diff options
author | Tianyu Lan <[email protected]> | 2021-10-25 08:21:10 -0400 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-10-25 18:11:42 +0200 |
commit | 007faec014cb5d26983c1f86fd08c6539b41392e (patch) | |
tree | ee3222dafb55504d83fb3b269c73d0d580a10832 /scripts/gdb/linux/cpus.py | |
parent | ce47d0c00ff5621ae5825c9d81722b23b0df395e (diff) |
x86/sev: Expose sev_es_ghcb_hv_call() for use by HyperV
Hyper-V needs to issue the GHCB HV call in order to read/write MSRs in
Isolation VMs. For that, expose sev_es_ghcb_hv_call().
The Hyper-V Isolation VMs are unenlightened guests and run a paravisor
at VMPL0 for communicating. GHCB pages are being allocated and set up
by that paravisor. Linux gets the GHCB page's physical address via
MSR_AMD64_SEV_ES_GHCB from the paravisor and should not change it.
Add a @set_ghcb_msr parameter to sev_es_ghcb_hv_call() to control
whether the function should set the GHCB's address prior to the call or
not and export that function for use by HyperV.
[ bp: - Massage commit message
- add a struct ghcb forward declaration to fix randconfig builds. ]
Signed-off-by: Tianyu Lan <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Michael Kelley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions