VirtualBox

Ignore:
Timestamp:
Dec 13, 2008 4:33:30 AM (16 years ago)
Author:
vboxsync
Message:

Corrected VBOX_WITH_HYBIRD_32BIT_KERNEL to VBOX_WITH_HYBRID_32BIT_KERNEL and moved it into src/VBox/VMM.

File:
1 edited

Legend:

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

    r15410 r15414  
    4646#if defined(RT_ARCH_AMD64)
    4747# define VMX_IS_64BIT_HOST_MODE()   (true)
    48 #elif defined(VBOX_WITH_HYBIRD_32BIT_KERNEL)
     48#elif defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    4949# define VMX_IS_64BIT_HOST_MODE()   (g_fVMXIs64bitHost != 0)
    5050#else
     
    5959static uint32_t const g_aIOOpAnd[4] = {0xff, 0xffff, 0, 0xffffffff};
    6060
    61 #ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
     61#ifdef VBOX_WITH_HYBRID_32BIT_KERNEL
    6262/** See HWACCMR0A.asm. */
    6363extern "C" uint32_t g_fVMXIs64bitHost;
     
    833833        /* Control registers */
    834834        rc  = VMXWriteVMCS(VMX_VMCS_HOST_CR0,               ASMGetCR0());
    835 #ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
     835#ifdef VBOX_WITH_HYBRID_32BIT_KERNEL
    836836        if (VMX_IS_64BIT_HOST_MODE())
    837837        {
     
    852852
    853853        /* Selector registers. */
    854 #ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
     854#ifdef VBOX_WITH_HYBRID_32BIT_KERNEL
    855855        if (VMX_IS_64BIT_HOST_MODE())
    856856        {
     
    894894
    895895        /* GDTR & IDTR */
    896 #ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
     896#ifdef VBOX_WITH_HYBRID_32BIT_KERNEL
    897897        if (VMX_IS_64BIT_HOST_MODE())
    898898        {
     
    927927        }
    928928
    929 #ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
     929#ifdef VBOX_WITH_HYBRID_32BIT_KERNEL
    930930        if (VMX_IS_64BIT_HOST_MODE())
    931931        {
     
    951951
    952952        /* FS and GS base. */
    953 #if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBIRD_32BIT_KERNEL)
     953#if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    954954        if (VMX_IS_64BIT_HOST_MODE())
    955955        {
     
    966966        rc  = VMXWriteVMCS(VMX_VMCS32_HOST_SYSENTER_CS,       ASMRdMsr_Low(MSR_IA32_SYSENTER_CS));
    967967        Log2(("VMX_VMCS_HOST_SYSENTER_CS  %08x\n", ASMRdMsr_Low(MSR_IA32_SYSENTER_CS)));
    968 #ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
     968#ifdef VBOX_WITH_HYBRID_32BIT_KERNEL
    969969        if (VMX_IS_64BIT_HOST_MODE())
    970970        {
     
    11101110    /* Save debug controls (dr7 & IA32_DEBUGCTL_MSR) (forced to 1 on the 'first' VT-x capable CPUs; this actually includes the newest Nehalem CPUs) */
    11111111    val |= VMX_VMCS_CTRL_EXIT_CONTROLS_SAVE_DEBUG;
    1112 #if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBIRD_32BIT_KERNEL)
     1112#if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    11131113    if (VMX_IS_64BIT_HOST_MODE())
    11141114        val |= VMX_VMCS_CTRL_EXIT_CONTROLS_HOST_AMD64;
     
    15611561#if !defined(VBOX_ENABLE_64_BITS_GUESTS)
    15621562        return VERR_PGM_UNSUPPORTED_SHADOW_PAGING_MODE;
    1563 #elif HC_ARCH_BITS == 32 && !defined(VBOX_WITH_HYBIRD_32BIT_KERNEL)
     1563#elif HC_ARCH_BITS == 32 && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    15641564        pVCpu->hwaccm.s.vmx.pfnStartVM  = VMXR0SwitcherStartVM64;
    15651565#else
    1566 # ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
     1566# ifdef VBOX_WITH_HYBRID_32BIT_KERNEL
    15671567        if (!pVM->hwaccm.s.fAllow64BitGuests)
    15681568            return VERR_PGM_UNSUPPORTED_SHADOW_PAGING_MODE;
     
    34873487            Log(("VMX_VMCS_HOST_RIP %RHv\n", val));
    34883488
    3489 # if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBIRD_32BIT_KERNEL)
     3489# if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    34903490            if (VMX_IS_64BIT_HOST_MODE())
    34913491            {
     
    35093509}
    35103510
    3511 #if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBIRD_32BIT_KERNEL)
     3511#if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
    35123512/**
    35133513 * Prepares for and executes VMLAUNCH (64 bits guest mode)
     
    36283628}
    36293629
    3630 #endif /* HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBIRD_32BIT_KERNEL) */
     3630#endif /* HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL) */
    36313631
    36323632
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