VirtualBox

Changeset 43805 in vbox


Ignore:
Timestamp:
Nov 5, 2012 3:30:40 PM (12 years ago)
Author:
vboxsync
Message:

VMM/HM: comment clarifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r43803 r43805  
    11691169                {
    11701170                    /* The I/O bitmap starts right after the virtual interrupt redirection bitmap. */
     1171                    /* Refer Intel spec. 20.3.3 "Software Interrupt Handling in Virtual-8086 mode" esp. Figure 20-5.*/
    11711172                    ASMMemZero32(pVM->hm.s.vmx.pRealModeTSS, sizeof(*pVM->hm.s.vmx.pRealModeTSS));
    11721173                    pVM->hm.s.vmx.pRealModeTSS->offIoBitmap = sizeof(*pVM->hm.s.vmx.pRealModeTSS);
    1173                     /* Bit set to 0 means redirection enabled. */
    1174                     memset(pVM->hm.s.vmx.pRealModeTSS->IntRedirBitmap, 0x0, sizeof(pVM->hm.s.vmx.pRealModeTSS->IntRedirBitmap));
    1175                     /* Allow all port IO, so the VT-x IO intercepts do their job. */
    1176                     memset(pVM->hm.s.vmx.pRealModeTSS + 1, 0, PAGE_SIZE*2);
     1174                    /* Bit set to 0 means software interrupts are redirected to the 8086 program interrupt handler rather than
     1175                       switching to protected-mode handler. */
     1176                    memset(pVM->hm.s.vmx.pRealModeTSS->IntRedirBitmap, 0, sizeof(pVM->hm.s.vmx.pRealModeTSS->IntRedirBitmap));
     1177                    /* Allow all port IO, so that port IO instructions do not cause exceptions and would instead
     1178                       cause a VM-exit (based on VT-x's IO bitmap which we currently configure to always cause an exit). */
     1179                    memset(pVM->hm.s.vmx.pRealModeTSS + 1, 0, PAGE_SIZE * 2);
    11771180                    *((unsigned char *)pVM->hm.s.vmx.pRealModeTSS + HM_VTX_TSS_SIZE - 2) = 0xff;
    11781181
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