Changeset 43805 in vbox
- Timestamp:
- Nov 5, 2012 3:30:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/HM.cpp
r43803 r43805 1169 1169 { 1170 1170 /* 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.*/ 1171 1172 ASMMemZero32(pVM->hm.s.vmx.pRealModeTSS, sizeof(*pVM->hm.s.vmx.pRealModeTSS)); 1172 1173 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); 1177 1180 *((unsigned char *)pVM->hm.s.vmx.pRealModeTSS + HM_VTX_TSS_SIZE - 2) = 0xff; 1178 1181
Note:
See TracChangeset
for help on using the changeset viewer.