Changeset 9539 in vbox
- Timestamp:
- Jun 9, 2008 12:15:55 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31819
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/HWACCM.cpp
r9383 r9539 635 635 } 636 636 637 /* @todo we can support real-mode by using v86 and protected mode without pagingwith identity mapped pages.637 /* @todo we can support real-mode by using v86 with identity mapped pages. 638 638 * (but do we really care?) 639 639 */ … … 643 643 /** @note The context supplied by REM is partial. If we add more checks here, be sure to verify that REM provides this info! */ 644 644 645 #if ndef HWACCM_VMX_EMULATE_ALL645 #if 0 //ndef HWACCM_VMX_EMULATE_ALL 646 646 /* Too early for VMX. */ 647 647 if (pCtx->idtr.pIdt == 0 || pCtx->idtr.cbIdt == 0 || pCtx->tr == 0) 648 648 return false; 649 #endif 649 650 650 651 /* The guest is about to complete the switch to protected mode. Wait a bit longer. */ 652 /* Windows XP; switch to protected mode; all selectors are marked not present in the 653 * hidden registers (possible recompiler bug) */ 651 654 if (pCtx->csHid.Attr.n.u1Present == 0) 652 655 return false; 653 656 if (pCtx->ssHid.Attr.n.u1Present == 0) 654 657 return false; 655 #endif656 658 657 659 if (pVM->hwaccm.s.vmx.fEnabled) -
trunk/src/VBox/VMM/PGM.cpp
r9383 r9539 3147 3147 } 3148 3148 3149 //case PGMMODE_AMD64_NX:3149 case PGMMODE_AMD64_NX: 3150 3150 case PGMMODE_AMD64: 3151 3151 GCPhysCR3 = CPUMGetGuestCR3(pVM) & 0xfffffffffffff000ULL; /** @todo define this mask! */ -
trunk/src/VBox/VMM/VMM.cpp
r9281 r9539 1700 1700 } 1701 1701 1702 /* Do nothing if the switcher is disabled. */ 1703 if (pVM->vmm.s.fSwitcherDisabled) 1704 return VINF_SUCCESS; 1705 1702 1706 /* 1703 1707 * Select the new switcher. -
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r9300 r9539 581 581 int rc; 582 582 583 Log Flow(("PGMInvalidatePage: GCPtrPage=%VGv\n", GCPtrPage));583 Log2(("PGMInvalidatePage: GCPtrPage=%VGv\n", GCPtrPage)); 584 584 585 585 /** @todo merge PGMGCInvalidatePage with this one */ -
trunk/src/VBox/VMM/VMMAll/PGMAllGst.h
r9212 r9539 398 398 { 399 399 #if PGM_GST_TYPE == PGM_TYPE_32BIT \ 400 || PGM_GST_TYPE == PGM_TYPE_PAE \ 401 || PGM_GST_TYPE == PGM_TYPE_AMD64 400 || PGM_GST_TYPE == PGM_TYPE_PAE 402 401 403 402 LogFlow(("MapCR3: %VGp\n", GCPhysCR3)); … … 415 414 { 416 415 PGM_INVL_PG(pVM->pgm.s.GCPtrCR3Mapping); 417 # if PGM_GST_TYPE == PGM_TYPE_32BIT416 # if PGM_GST_TYPE == PGM_TYPE_32BIT 418 417 pVM->pgm.s.pGuestPDHC = (R3R0PTRTYPE(PX86PD))HCPtrGuestCR3; 419 418 pVM->pgm.s.pGuestPDGC = (RCPTRTYPE(PX86PD))pVM->pgm.s.GCPtrCR3Mapping; 420 419 421 # elif PGM_GST_TYPE == PGM_TYPE_PAE420 # else /* PAE */ 422 421 unsigned offset = GCPhysCR3 & GST_CR3_PAGE_MASK & PAGE_OFFSET_MASK; 423 422 pVM->pgm.s.pGstPaePDPTHC = (R3R0PTRTYPE(PX86PDPT)) HCPtrGuestCR3; … … 455 454 PGM_INVL_PG(GCPtr); 456 455 } 457 458 #else /* PGM_GST_TYPE == PGM_TYPE_AMD64 */ 459 rc = VERR_NOT_IMPLEMENTED; 460 #endif 456 # endif 461 457 } 462 458 else … … 466 462 AssertMsgFailed(("rc=%Vrc GCPhysGuestPD=%VGp\n", rc, GCPhysCR3)); 467 463 468 #else /* prot/real mode stub */464 #else /* prot/real/amd64 mode stub */ 469 465 int rc = VINF_SUCCESS; 470 466 #endif … … 500 496 501 497 #elif PGM_GST_TYPE == PGM_TYPE_AMD64 502 //#error not implemented 503 rc = VERR_NOT_IMPLEMENTED; 498 /* nothing to do; vt-x/amd-v only */ 504 499 505 500 #else /* prot/real mode stub */ … … 613 608 } 614 609 615 #elif PGM_GST_TYPE == PGM_TYPE_AMD64616 AssertFailed();617 610 #else 618 /* prot/real mode stub */611 /* prot/real/amd64 mode stub */ 619 612 620 613 #endif … … 680 673 } 681 674 } 682 #elif PGM_GST_TYPE == PGM_TYPE_AMD64683 AssertFailed();684 675 #else 685 /* prot/real mode stub */676 /* prot/real/amd64 mode stub */ 686 677 #endif 687 678 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.