Skip to content

Commit c8833d5

Browse files
committed
hypervisor: Fix hv_translate_gva_result_code with correct value
Signed-off-by: Muminul Islam <[email protected]>
1 parent b3a8c96 commit c8833d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypervisor/src/mshv/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ impl<'a> MshvEmulatorContext<'a> {
559559

560560
let result_code = unsafe { r.1.__bindgen_anon_1.result_code };
561561
match result_code {
562-
hv_translate_gva_result_code_HvTranslateGvaSuccess => Ok(r.0),
562+
hv_translate_gva_result_code_HV_TRANSLATE_GVA_SUCCESS => Ok(r.0),
563563
_ => Err(PlatformError::TranslateVirtualAddress(anyhow!(result_code))),
564564
}
565565
}

0 commit comments

Comments
 (0)