File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/hyperlight_host/src/hypervisor Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -183,11 +183,21 @@ impl Vm for WhpVm {
183183 unsafe { std:: mem:: zeroed ( ) } ;
184184 println ! ( "whp get_sregs2" ) ;
185185
186+ println ! ( "parition: {:?}" , self . partition) ;
187+ println ! ( "whp_sregs_names: {:?}" , WHP_SREGS_NAMES ) ;
188+ println ! ( "ptr : {:?}" , WHP_SREGS_NAMES . as_ptr( ) ) ;
189+ println ! ( "first value: {:?}" , unsafe {
190+ WHP_SREGS_NAMES . as_ptr( ) . read( )
191+ } ) ;
192+ println ! ( "last value: {:?}" , unsafe {
193+ WHP_SREGS_NAMES . as_ptr( ) . add( WHP_SREGS_NAMES_LEN - 1 ) . read( )
194+ } ) ;
195+
186196 unsafe {
187197 WHvGetVirtualProcessorRegisters (
188198 self . partition ,
189199 0 ,
190- WHP_SREGS_NAMES . as_ref ( ) . as_ptr ( ) ,
200+ WHP_SREGS_NAMES . as_ptr ( ) ,
191201 whp_sregs_values. len ( ) as u32 ,
192202 whp_sregs_values. as_mut_ptr ( ) ,
193203 ) ?;
You can’t perform that action at this time.
0 commit comments