diff options
| author | Tianyu Lan <[email protected]> | 2021-10-25 12:21:10 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2021-10-25 16:11:42 +0000 |
| commit | 007faec014cb5d26983c1f86fd08c6539b41392e (patch) | |
| tree | ee3222dafb55504d83fb3b269c73d0d580a10832 /lib/timerqueue.c | |
| parent | x86/sev: Allow #VC exceptions on the VC2 stack (diff) | |
| download | kernel-007faec014cb5d26983c1f86fd08c6539b41392e.tar.gz kernel-007faec014cb5d26983c1f86fd08c6539b41392e.zip | |
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 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
