History

x86/hyperv: Add Write/Read MSR registers via ghcb page

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.

Tianyu Lan committed 5 years ago

Commit faff4401 parent d4dccf36 files · +232 −59Browse files

Showing the changes to include (1 of 6 files). Show all

Unified · Split

include/asm-generic/mshyperv.h+1−0
@@ -54,6 +54,7 @@ extern void __percpu **hyperv_pcpu_output_arg; · 53 unmodified lines
5454
5555 extern u64 hv_do_hypercall(u64 control, void *inputaddr, void *outputaddr);
5656 extern u64 hv_do_fast_hypercall8(u16 control, u64 input8);
57+extern bool hv_isolation_type_snp(void);
5758
5859 /* Helper functions that provide a consistent pattern for checking Hyper-V hypercall status. */
5960 static inline int hv_result(u64 status)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t