diff options
author | Tianyu Lan <Tianyu.Lan@microsoft.com> | 2022-06-13 21:45:53 -0400 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2022-06-15 18:27:40 +0000 |
commit | 49d6a3c062a1026a5ba957c46f3603c372288ab6 (patch) | |
tree | 7ba8b165b8df0303ab511ccd2ba08be5047853e1 /drivers/vdpa | |
parent | 656c5ba50b7172a0ea25dc1b37606bd51d01fe8d (diff) | |
download | linux-49d6a3c062a1026a5ba957c46f3603c372288ab6.tar.gz linux-49d6a3c062a1026a5ba957c46f3603c372288ab6.tar.bz2 linux-49d6a3c062a1026a5ba957c46f3603c372288ab6.zip |
x86/Hyper-V: Add SEV negotiate protocol support in Isolation VM
Hyper-V Isolation VM current code uses sev_es_ghcb_hv_call()
to read/write MSR via GHCB page and depends on the sev code.
This may cause regression when sev code changes interface
design.
The latest SEV-ES code requires to negotiate GHCB version before
reading/writing MSR via GHCB page and sev_es_ghcb_hv_call() doesn't
work for Hyper-V Isolation VM. Add Hyper-V ghcb related implementation
to decouple SEV and Hyper-V code. Negotiate GHCB version in the
hyperv_init() and use the version to communicate with Hyper-V
in the ghcb hv call function.
Fixes: 2ea29c5abbc2 ("x86/sev: Save the negotiated GHCB version")
Signed-off-by: Tianyu Lan <Tianyu.Lan@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220614014553.1915929-1-ltykernel@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/vdpa')
0 files changed, 0 insertions, 0 deletions