Skip to content

Commit 3db7d97

Browse files
committed
[fix] delete redundant outputs
1 parent 77d3b9d commit 3db7d97

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

src/vmx/vcpu.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,9 @@ impl<H: AxVCpuHal> VmxVcpu<H> {
9696
host_ctx: ctx,
9797
};
9898
debug!(
99-
"[HV] created {} VmxVcpu(vmcs: {:#x}) xstate {:#x?}",
99+
"[HV] created {} VmxVcpu(vmcs: {:#x})",
100100
if ctx.is_some() { "Host" } else { "Guest" },
101101
vcpu.vmcs.phys_addr(),
102-
vcpu.guest_xstate
103102
);
104103
Ok(vcpu)
105104
}
@@ -531,15 +530,6 @@ impl<H: AxVCpuHal> VmxVcpu<H> {
531530
fn setup_vmcs_guest_from_ctx(&mut self) -> AxResult {
532531
let linux = self.host_ctx.expect("Host context is not set");
533532

534-
warn!("Linux context: {:#x?}", linux);
535-
536-
warn!(
537-
"self xstate cur {:#x?} guest {:#x?}",
538-
self.cur_xstate, self.guest_xstate
539-
);
540-
541-
warn!("current xstate {:#x?}", XState::new());
542-
543533
self.set_cr(0, linux.cr0.bits());
544534
self.set_cr(4, linux.cr4.bits());
545535
self.set_cr(3, linux.cr3);
@@ -570,10 +560,6 @@ impl<H: AxVCpuHal> VmxVcpu<H> {
570560
VmcsGuestNW::IDTR_BASE.write(linux.idt.base.as_u64() as _)?;
571561
VmcsGuest32::IDTR_LIMIT.write(linux.idt.limit as _)?;
572562

573-
debug!(
574-
"this is the linux rip: {:#x} rsp:{:#x}",
575-
linux.rip, linux.rsp
576-
);
577563
VmcsGuestNW::RSP.write(linux.rsp as _)?;
578564
VmcsGuestNW::RIP.write(linux.rip as _)?;
579565
VmcsGuestNW::RFLAGS.write(0x2)?;

src/vmx/vmcs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ pub fn set_control(
597597
let allowed0 = cap as u32;
598598
let allowed1 = (cap >> 32) as u32;
599599
assert_eq!(allowed0 & allowed1, allowed0);
600-
debug!(
600+
trace!(
601601
"set {:?}: {:#x} (+{:#x}, -{:#x})",
602602
control, old_value, set, clear
603603
);

0 commit comments

Comments
 (0)