@@ -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 ) ?;
0 commit comments