Skip to content

Commit c7efb05

Browse files
committed
More debugging println
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent a1861df commit c7efb05

File tree

1 file changed

+11
-1
lines changed
  • src/hyperlight_host/src/hypervisor

1 file changed

+11
-1
lines changed

src/hyperlight_host/src/hypervisor/whp.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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
)?;

0 commit comments

Comments
 (0)