hypervisor: mshv: hook up TranslateGVA hypercall

At this stage this is the bare minimum needed to make Windows server
2019 work on MSHV.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2021-03-01 18:07:02 +00:00
committed by Samuel Ortiz
parent 99baee8d37
commit 74565538ae
4 changed files with 42 additions and 7 deletions

View File

@@ -47,8 +47,8 @@ pub enum PlatformError {
#[error("Set CPU state failure: {0}")]
SetCpuStateFailure(#[source] anyhow::Error),
#[error("Unmapped virtual address: {0}")]
UnmappedGVA(#[source] anyhow::Error),
#[error("Translate virtual address: {0}")]
TranslateGVA(#[source] anyhow::Error),
#[error("Unsupported CPU Mode: {0}")]
UnsupportedCpuMode(#[source] anyhow::Error),