Changeset 10493 in vbox
- Timestamp:
- Jul 11, 2008 8:45:55 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33172
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r10436 r10493 633 633 static DECLCALLBACK(int) pgmR3CmdSync(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs, PDBGCVAR pResult); 634 634 static DECLCALLBACK(int) pgmR3CmdSyncAlways(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs, PDBGCVAR pResult); 635 static DECLCALLBACK(int) pgmR3CmdAssertCR3(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs, PDBGCVAR pResult); 635 636 #endif 636 637 … … 647 648 { "pgmmap", 0, 0, NULL, 0, NULL, 0, pgmR3CmdMap, "", "Display the mapping ranges." }, 648 649 { "pgmsync", 0, 0, NULL, 0, NULL, 0, pgmR3CmdSync, "", "Sync the CR3 page." }, 650 { "pgmassertcr3", 0, 0, NULL, 0, NULL, 0, pgmR3CmdAssertCR3, "", "Check the shadow CR3 mapping." }, 649 651 { "pgmsyncalways", 0, 0, NULL, 0, NULL, 0, pgmR3CmdSyncAlways, "", "Toggle permanent CR3 syncing." }, 650 652 }; … … 3885 3887 */ 3886 3888 if (!pVM) 3887 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The command requires VM to be selected.\n");3889 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The command requires a VM to be selected.\n"); 3888 3890 if (!pVM->pgm.s.pRamRangesGC) 3889 3891 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Sorry, no Ram is registered.\n"); … … 3923 3925 */ 3924 3926 if (!pVM) 3925 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The command requires VM to be selected.\n");3927 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The command requires a VM to be selected.\n"); 3926 3928 if (!pVM->pgm.s.pMappingsR3) 3927 3929 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Sorry, no mappings are registered.\n"); … … 3967 3969 */ 3968 3970 if (!pVM) 3969 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The command requires VM to be selected.\n");3971 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The command requires a VM to be selected.\n"); 3970 3972 3971 3973 /* … … 3983 3985 3984 3986 /** 3985 * The '.pgm syncalways' command.3987 * The '.pgmassertcr3' command. 3986 3988 * 3987 3989 * @returns VBox status. … … 3992 3994 * @param cArgs Number of arguments in the array. 3993 3995 */ 3996 static DECLCALLBACK(int) pgmR3CmdAssertCR3(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs, PDBGCVAR pResult) 3997 { 3998 /* 3999 * Validate input. 4000 */ 4001 if (!pVM) 4002 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The command requires a VM to be selected.\n"); 4003 4004 int rc = pCmdHlp->pfnPrintf(pCmdHlp, NULL, "Checking shadow CR3 page tables for consistency.\n"); 4005 if (VBOX_FAILURE(rc)) 4006 return rc; 4007 4008 PGMAssertCR3(pVM, CPUMGetGuestCR3(pVM), CPUMGetGuestCR4(pVM)); 4009 4010 return VINF_SUCCESS; 4011 } 4012 4013 4014 /** 4015 * The '.pgmsyncalways' command. 4016 * 4017 * @returns VBox status. 4018 * @param pCmd Pointer to the command descriptor (as registered). 4019 * @param pCmdHlp Pointer to command helper functions. 4020 * @param pVM Pointer to the current VM (if any). 4021 * @param paArgs Pointer to (readonly) array of arguments. 4022 * @param cArgs Number of arguments in the array. 4023 */ 3994 4024 static DECLCALLBACK(int) pgmR3CmdSyncAlways(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR paArgs, unsigned cArgs, PDBGCVAR pResult) 3995 4025 { … … 3998 4028 */ 3999 4029 if (!pVM) 4000 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The command requires VM to be selected.\n");4030 return pCmdHlp->pfnPrintf(pCmdHlp, NULL, "error: The command requires a VM to be selected.\n"); 4001 4031 4002 4032 /*
Note:
See TracChangeset
for help on using the changeset viewer.