mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-20 15:01:16 +00:00
hypervisor: Fix hv_translate_gva_result_code with correct value
Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
parent
28ad84c207
commit
49e061d15b
@ -559,7 +559,7 @@ impl<'a> MshvEmulatorContext<'a> {
|
|||||||
|
|
||||||
let result_code = unsafe { r.1.__bindgen_anon_1.result_code };
|
let result_code = unsafe { r.1.__bindgen_anon_1.result_code };
|
||||||
match result_code {
|
match result_code {
|
||||||
hv_translate_gva_result_code_HvTranslateGvaSuccess => Ok(r.0),
|
hv_translate_gva_result_code_HV_TRANSLATE_GVA_SUCCESS => Ok(r.0),
|
||||||
_ => Err(PlatformError::TranslateVirtualAddress(anyhow!(result_code))),
|
_ => Err(PlatformError::TranslateVirtualAddress(anyhow!(result_code))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user