VirtualBox

Changeset 1500 in vbox for trunk/src/VBox


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

Added virtual interrupt redirection bitmap to our TSS

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r1485 r1500  
    299299    pDesc = &paGdt[pVM->selm.s.aHyperSel[SELM_HYPER_SEL_TSS] >> 3];
    300300    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
    301308    pDesc->Gen.u16BaseLow       = RT_LOWORD(pGCTSS);
    302309    pDesc->Gen.u8BaseHigh1      = RT_BYTE3(pGCTSS);
  • trunk/src/VBox/VMM/VMMAll/TRPMAll.cpp

    r1359 r1500  
    633633                    }
    634634
    635                     /* @note we use the eflags copy, that includes the virtualized bits! */
     635                    /** @note we use the eflags copy, that includes the virtualized bits! */
     636                    /** @note not really necessary as we grab include those bits in the trap/irq handler trampoline */
    636637                    CTXSUFF(pTrapStack)[--idx] = eflags.u32;
    637638
  • trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp

    r1480 r1500  
    112112    CHECK_SIZE(VBOXPTE, 4);
    113113    CHECK_SIZE(VBOXPDE, 4);
    114     CHECK_SIZE(VBOXTSS, 104);
     114    CHECK_SIZE(VBOXTSS, 136);
    115115    CHECK_SIZE(X86FXSTATE, 512);
    116116    CHECK_SIZE(RTUUID, 16);
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