mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-25 01:11:16 +00:00
hypervisor: mshv: modify two safety comments
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
93883681be
commit
d272113d0c
@ -458,12 +458,13 @@ impl cpu::Vcpu for MshvVcpu {
|
|||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SAFETY: access_info is valid, otherwise we won't be here
|
|
||||||
assert!(
|
assert!(
|
||||||
|
// SAFETY: access_info is valid, otherwise we won't be here
|
||||||
(unsafe { access_info.__bindgen_anon_1.string_op() } != 1),
|
(unsafe { access_info.__bindgen_anon_1.string_op() } != 1),
|
||||||
"String IN/OUT not supported"
|
"String IN/OUT not supported"
|
||||||
);
|
);
|
||||||
assert!(
|
assert!(
|
||||||
|
// SAFETY: access_info is valid, otherwise we won't be here
|
||||||
(unsafe { access_info.__bindgen_anon_1.rep_prefix() } != 1),
|
(unsafe { access_info.__bindgen_anon_1.rep_prefix() } != 1),
|
||||||
"Rep IN/OUT not supported"
|
"Rep IN/OUT not supported"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user