VirtualBox

Changeset 2773 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
May 22, 2007 3:16:10 PM (18 years ago)
Author:
vboxsync
Message:

cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r2762 r2773  
    7575
    7676    /* Enter VMX Root Mode */
     77    Log(("pVMXONPhys = %VHp\n", pVM->hwaccm.s.vmx.pVMXONPhys));
    7778    rc = VMXEnable(pVM->hwaccm.s.vmx.pVMXONPhys);
    7879    if (VBOX_FAILURE(rc))
     
    8283
    8384    /* Clear VM Control Structure. */
     85    Log(("pVMCSPhys  = %VHp\n", pVM->hwaccm.s.vmx.pVMCSPhys));
    8486    rc = VMXClearVMCS(pVM->hwaccm.s.vmx.pVMCSPhys);
    8587    if (VBOX_FAILURE(rc))
     
    194196
    195197    rc  = VMXWriteVMCS(VMX_VMCS_CTRL_IO_BITMAP_A_FULL, 0);
     198#if HC_ARCH_BITS == 32
    196199    rc |= VMXWriteVMCS(VMX_VMCS_CTRL_IO_BITMAP_A_HIGH, 0);
     200#endif
    197201    AssertRC(rc);
    198202
    199203    rc  = VMXWriteVMCS(VMX_VMCS_CTRL_IO_BITMAP_B_FULL, 0);
     204#if HC_ARCH_BITS == 32
    200205    rc |= VMXWriteVMCS(VMX_VMCS_CTRL_IO_BITMAP_B_HIGH, 0);
     206#endif
    201207    AssertRC(rc);
    202208
     
    210216    }
    211217    rc  = VMXWriteVMCS(VMX_VMCS_CTRL_VMEXIT_MSR_STORE_FULL, 0);
     218    rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VMEXIT_MSR_LOAD_FULL, 0);
     219    rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VMENTRY_MSR_LOAD_FULL, 0);
     220#if HC_ARCH_BITS == 32
    212221    rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VMEXIT_MSR_STORE_HIGH, 0);
    213     rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VMEXIT_MSR_LOAD_FULL, 0);
    214222    rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VMEXIT_MSR_LOAD_HIGH, 0);
    215     rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VMENTRY_MSR_LOAD_FULL, 0);
    216     rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VMENTRY_MSR_LOAD_HIGH, 0);
     223    rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VMEXIT_MSR_LOAD_HIGH, 0);
     224#endif
    217225    rc |= VMXWriteVMCS(VMX_VMCS_CTRL_EXIT_MSR_STORE_COUNT, 0);
    218226    rc |= VMXWriteVMCS(VMX_VMCS_CTRL_EXIT_MSR_LOAD_COUNT, 0);
     
    224232        rc  = VMXWriteVMCS(VMX_VMCS_CTRL_TPR_TRESHOLD, 0);
    225233        rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VAPIC_PAGEADDR_FULL, 0);
     234#if HC_ARCH_BITS == 32
    226235        rc |= VMXWriteVMCS(VMX_VMCS_CTRL_VAPIC_PAGEADDR_HIGH, 0);
     236#endif
    227237        AssertRC(rc);
    228238    }
    229239
    230240    /* Set link pointer to -1. Not currently used. */
     241#if HC_ARCH_BITS == 32
    231242    rc  = VMXWriteVMCS(VMX_VMCS_GUEST_LINK_PTR_FULL, 0xFFFFFFFF);
    232243    rc |= VMXWriteVMCS(VMX_VMCS_GUEST_LINK_PTR_HIGH, 0xFFFFFFFF);
     244#else
     245    rc  = VMXWriteVMCS(VMX_VMCS_GUEST_LINK_PTR_FULL, 0xFFFFFFFFFFFFFFFF);
     246#endif
    233247    AssertRC(rc);
    234248
     
    10941108            VMXReadVMCS(VMX_VMCS_HOST_RIP, &val);
    10951109            Log(("VMX_VMCS_HOST_RIP %VHv\n", val));
     1110
     1111#if HC_ARCH_BITS == 64
     1112            Log(("MSR_K6_EFER       = %VX64\n", ASMRdMsr(MSR_K6_EFER)));
     1113            Log(("MSR_K6_STAR       = %VX64\n", ASMRdMsr(MSR_K6_STAR)));
     1114            Log(("MSR_K8_LSTAR      = %VX64\n", ASMRdMsr(MSR_K8_LSTAR)));
     1115            Log(("MSR_K8_CSTAR      = %VX64\n", ASMRdMsr(MSR_K8_CSTAR)));
     1116            Log(("MSR_K8_SF_MASK    = %VX64\n", ASMRdMsr(MSR_K8_SF_MASK)));
     1117#endif
    10961118        }
    10971119#endif /* VBOX_STRICT */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette