File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ pub struct HvfNestedBindings {
210
210
hv_vm_config_get_el2_supported :
211
211
libloading:: Symbol < ' static , unsafe extern "C" fn ( * mut bool ) -> hv_return_t > ,
212
212
hv_vm_config_set_el2_enabled :
213
- libloading:: Symbol < ' static , unsafe extern "C" fn ( hv_vm_config_t , * mut bool ) -> hv_return_t > ,
213
+ libloading:: Symbol < ' static , unsafe extern "C" fn ( hv_vm_config_t , bool ) -> hv_return_t > ,
214
214
}
215
215
216
216
pub struct HvfVm { }
@@ -248,8 +248,7 @@ impl HvfVm {
248
248
return Err ( Error :: NestedCheck ) ;
249
249
}
250
250
251
- let mut el2_enabled = true ;
252
- let ret = unsafe { ( bindings. hv_vm_config_set_el2_enabled ) ( config, & mut el2_enabled) } ;
251
+ let ret = unsafe { ( bindings. hv_vm_config_set_el2_enabled ) ( config, true ) } ;
253
252
if ret != HV_SUCCESS {
254
253
return Err ( Error :: EnableEL2 ) ;
255
254
}
You can’t perform that action at this time.
0 commit comments