Hyperv provides GHCB protocol to write Synthetic Interrupt Controller MSR registers in Isolation VM with AMD SEV SNP and these registers are emulated by hypervisor directly. Hyperv requires to write SINTx MSR registers twice. First writes MSR via GHCB page to communicate with hypervisor and then writes wrmsr instruction to talk with paravisor which runs in VMPL0. Guest OS ID MSR also needs to be set via GHCB page.
Showing the changes to include (1 of 6 files). Show all
Unified · Split
| @@ -54,6 +54,7 @@ extern void __percpu **hyperv_pcpu_output_arg; · 53 unmodified lines | ||
| 54 | 54 | |
| 55 | 55 | extern u64 hv_do_hypercall(u64 control, void *inputaddr, void *outputaddr); |
| 56 | 56 | extern u64 hv_do_fast_hypercall8(u16 control, u64 input8); |
| 57 | +extern bool hv_isolation_type_snp(void); | |
| 57 | 58 | |
| 58 | 59 | /* Helper functions that provide a consistent pattern for checking Hyper-V hypercall status. */ |
| 59 | 60 | static inline int hv_result(u64 status) |