VirtualBox

Changeset 1501 in vbox


Ignore:
Timestamp:
Mar 15, 2007 9:22:58 AM (18 years ago)
Author:
vboxsync
Message:

Move redirection bitmap init.

File:
1 edited

Legend:

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

    r1500 r1501  
    148148    pVM->selm.s.fSyncTSSRing0Stack = false;
    149149
     150    /* The I/O bitmap starts right after the virtual interrupt redirection bitmap. Outside the TSS on purpose; the CPU will not check it
     151     * for I/O operations. */
     152    pVM->selm.s.Tss.offIoBitmap = sizeof(VBOXTSS);
     153    /* bit set to 1 means no redirection */
     154    memset(pVM->selm.s.Tss.redirBitmap, 0xff, sizeof(pVM->selm.s.Tss.redirBitmap));
     155
    150156    /*
    151157     * Register the saved state data unit.
     
    299305    pDesc = &paGdt[pVM->selm.s.aHyperSel[SELM_HYPER_SEL_TSS] >> 3];
    300306    RTGCPTR pGCTSS = VM_GUEST_ADDR(pVM, &pVM->selm.s.Tss);
    301 
    302     /* The I/O bitmap starts right after the virtual interrupt redirection bitmap. Outside the TSS on purpose; the CPU will not check it
    303      * for I/O operations. */
    304     pVM->selm.s.Tss.offIoBitmap = RT_OFFSETOF(VBOXTSS, redirBitmap) + sizeof(pVM->selm.s.Tss.redirBitmap);
    305     /* bit set to 1 means no redirection */
    306     memset(pVM->selm.s.Tss.redirBitmap, 0xff, sizeof(pVM->selm.s.Tss.redirBitmap));
    307 
    308307    pDesc->Gen.u16BaseLow       = RT_LOWORD(pGCTSS);
    309308    pDesc->Gen.u8BaseHigh1      = RT_BYTE3(pGCTSS);
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