VirtualBox

Changeset 3724 in vbox for trunk/src


Ignore:
Timestamp:
Jul 19, 2007 6:57:24 PM (18 years ago)
Author:
vboxsync
Message:

removed the obsolete x86context.h (all constants are in VBox/x86.h).

Location:
trunk/src/VBox/VMM
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/CPUM.cpp

    r3686 r3724  
    4444#include <iprt/string.h>
    4545#include <iprt/system.h>
    46 #include "x86context.h"
     46
    4747
    4848/*******************************************************************************
     
    889889# ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
    890890    if (!(pCtx->efer & MSR_K6_EFER_LMA))
    891 # endif 
     891# endif
    892892    {
    893893        pHlp->pfnPrintf(pHlp,
     
    909909# ifdef VBOX_WITH_HYBIRD_32BIT_KERNEL
    910910    else
    911 # endif 
     911# endif
    912912#endif
    913913#if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBIRD_32BIT_KERNEL)
     
    17301730/**
    17311731 * API for controlling a few of the CPU features found in CR4.
    1732  * 
     1732 *
    17331733 * Currently only X86_CR4_TSD is accepted as input.
    1734  * 
     1734 *
    17351735 * @returns VBox status code.
    1736  * 
     1736 *
    17371737 * @param   pVM     The VM handle.
    17381738 * @param   fOr     The CR4 OR mask.
  • trunk/src/VBox/VMM/HWACCM.cpp

    r3295 r3724  
    4646#include <iprt/string.h>
    4747#include <iprt/thread.h>
    48 #include "x86context.h"
    4948
    5049
     
    285284        Log(("pVM->hwaccm.s.vmx.fSupported = %d\n", pVM->hwaccm.s.vmx.fSupported));
    286285
    287         if (    pVM->hwaccm.s.fInitialized == false 
     286        if (    pVM->hwaccm.s.fInitialized == false
    288287            &&  pVM->hwaccm.s.vmx.msr.feature_ctrl != 0)
    289288        {
     
    394393            if (val & VMX_VMCS_CTRL_ENTRY_CONTROLS_DEACTIVATE_DUALMON)
    395394                LogRel(("HWACCM:    VMX_VMCS_CTRL_ENTRY_CONTROLS_DEACTIVATE_DUALMON *must* be set\n"));
    396    
     395
    397396            LogRel(("HWACCM: MSR_IA32_VMX_EXIT_CTLS        = %VX64\n", pVM->hwaccm.s.vmx.msr.vmx_exit));
    398397            val = pVM->hwaccm.s.vmx.msr.vmx_exit >> 32ULL;
  • trunk/src/VBox/VMM/SELM.cpp

    r2981 r3724  
    4343#include <iprt/thread.h>
    4444#include <iprt/string.h>
    45 #include "x86context.h"
    4645
    4746
     
    103102    AssertCompileMemberAlignment(VM, selm.s, 32);                       AssertRelease(!(RT_OFFSETOF(VM, selm.s) & 31));
    104103#if 0 /* doesn't work */
    105     AssertCompile((RT_OFFSETOF(VM, selm.s.Tss)       & PAGE_OFFSET_MASK) <= PAGE_SIZE - sizeof(pVM->selm.s.Tss));       
    106     AssertCompile((RT_OFFSETOF(VM, selm.s.TssTrap08) & PAGE_OFFSET_MASK) <= PAGE_SIZE - sizeof(pVM->selm.s.TssTrap08)); 
     104    AssertCompile((RT_OFFSETOF(VM, selm.s.Tss)       & PAGE_OFFSET_MASK) <= PAGE_SIZE - sizeof(pVM->selm.s.Tss));
     105    AssertCompile((RT_OFFSETOF(VM, selm.s.TssTrap08) & PAGE_OFFSET_MASK) <= PAGE_SIZE - sizeof(pVM->selm.s.TssTrap08));
    107106#endif
    108107    AssertRelease((RT_OFFSETOF(VM, selm.s.Tss)       & PAGE_OFFSET_MASK) <= PAGE_SIZE - sizeof(pVM->selm.s.Tss));
     
    261260    pDesc->Gen.u8BaseHigh1      = 0;
    262261    pDesc->Gen.u8BaseHigh2      = 0;
    263     pDesc->Gen.u4Type           = X86_SELTYPE_MEM_EXECUTEREAD_ACC;
     262    pDesc->Gen.u4Type           = X86_SEL_TYPE_ER_ACC;
    264263    pDesc->Gen.u1DescType       = 1; /* not system, but code/data */
    265264    pDesc->Gen.u2Dpl            = 0; /* supervisor */
     
    277276    pDesc->Gen.u8BaseHigh1      = 0;
    278277    pDesc->Gen.u8BaseHigh2      = 0;
    279     pDesc->Gen.u4Type           = X86_SELTYPE_MEM_READWRITE_ACC;
     278    pDesc->Gen.u4Type           = X86_SEL_TYPE_RW_ACC;
    280279    pDesc->Gen.u1DescType       = 1; /* not system, but code/data */
    281280    pDesc->Gen.u2Dpl            = 0; /* supervisor */
     
    293292    pDesc->Gen.u8BaseHigh1      = 0;
    294293    pDesc->Gen.u8BaseHigh2      = 0;
    295     pDesc->Gen.u4Type           = X86_SELTYPE_MEM_EXECUTEREAD_ACC;
     294    pDesc->Gen.u4Type           = X86_SEL_TYPE_ER_ACC;
    296295    pDesc->Gen.u1DescType       = 1; /* not system, but code/data */
    297296    pDesc->Gen.u2Dpl            = 0; /* supervisor */
     
    312311    pDesc->Gen.u16LimitLow      = sizeof(VBOXTSS) - 1;
    313312    pDesc->Gen.u4LimitHigh      = 0;
    314     pDesc->Gen.u4Type           = X86_SELTYPE_SYS_386_TSS_AVAIL;
     313    pDesc->Gen.u4Type           = X86_SEL_TYPE_SYS_386_TSS_AVAIL;
    315314    pDesc->Gen.u1DescType       = 0; /* system */
    316315    pDesc->Gen.u2Dpl            = 0; /* supervisor */
     
    331330    pDesc->Gen.u8BaseHigh1      = RT_BYTE3(pGCTSS);
    332331    pDesc->Gen.u8BaseHigh2      = RT_BYTE4(pGCTSS);
    333     pDesc->Gen.u4Type           = X86_SELTYPE_SYS_386_TSS_AVAIL;
     332    pDesc->Gen.u4Type           = X86_SEL_TYPE_SYS_386_TSS_AVAIL;
    334333    pDesc->Gen.u1DescType       = 0; /* system */
    335334    pDesc->Gen.u2Dpl            = 0; /* supervisor */
     
    710709/**
    711710 * Sync the GDT, LDT and TSS after loading the state.
    712  * 
    713  * Just to play save, we set the FFs to force syncing before 
     711 *
     712 * Just to play save, we set the FFs to force syncing before
    714713 * executing GC code.
    715  * 
     714 *
    716715 * @returns VBox status code.
    717716 * @param   pVM             VM Handle.
     
    722721    LogFlow(("selmR3LoadDone:\n"));
    723722
    724     /* 
     723    /*
    725724     * Don't do anything if it's a load failure.
    726725     */
     
    977976            STAM_COUNTER_INC(&pVM->selm.s.StatHyperSelsChanged);
    978977
    979             /* 
     978            /*
    980979             * Do the relocation callbacks to let everyone update their hyper selector dependencies.
    981980             * (SELMR3Relocate will call selmR3SetupHyperGDTSelectors() for us.)
     
    14351434         */
    14361435#if 1
    1437         /* Don't bother with anything but the core structure. (Actually all we care for is the r0 ss.) */ 
    1438         if (cbTss > sizeof(VBOXTSS)) 
    1439             cbTss = sizeof(VBOXTSS); 
     1436        /* Don't bother with anything but the core structure. (Actually all we care for is the r0 ss.) */
     1437        if (cbTss > sizeof(VBOXTSS))
     1438            cbTss = sizeof(VBOXTSS);
    14401439#endif
    14411440        /* The guest's TSS can span multiple pages now. We will monitor the whole thing. */
     
    15181517                {
    15191518                    uint32_t offRedirBitmap = tss.offIoBitmap - sizeof(tss.IntRedirBitmap);
    1520                    
     1519
    15211520                    /** @todo not sure how the partial case is handled; probably not allowed */
    15221521                    if (offRedirBitmap + sizeof(tss.IntRedirBitmap) <= pVM->selm.s.cbGuestTss)
     
    17111710        cbTss++;
    17121711#if 1
    1713         /* Don't bother with anything but the core structure. (Actually all we care for is the r0 ss.) */ 
    1714         if (cbTss > sizeof(VBOXTSS)) 
    1715             cbTss = sizeof(VBOXTSS); 
     1712        /* Don't bother with anything but the core structure. (Actually all we care for is the r0 ss.) */
     1713        if (cbTss > sizeof(VBOXTSS))
     1714            cbTss = sizeof(VBOXTSS);
    17161715#endif
    17171716        AssertMsg((GCPtrTss >> PAGE_SHIFT) == ((GCPtrTss + sizeof(VBOXTSS) - 1) >> PAGE_SHIFT),
  • trunk/src/VBox/VMM/VMMInternal.h

    r3723 r3724  
    2424
    2525#include <VBox/cdefs.h>
    26 #include <x86context.h>
    2726#include <VBox/stam.h>
    2827#include <VBox/log.h>
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