VirtualBox

Changeset 73289 in vbox


Ignore:
Timestamp:
Jul 21, 2018 5:00:51 AM (7 years ago)
Author:
vboxsync
Message:

VMM/HM: Hex digits nits.

File:
1 edited

Legend:

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

    r73287 r73289  
    247247    EXIT_REASON(SVM_EXIT_XCPT_24      ,   88, "Exception 24 (0x18)."),
    248248    EXIT_REASON(SVM_EXIT_XCPT_25      ,   89, "Exception 25 (0x19)."),
    249     EXIT_REASON(SVM_EXIT_XCPT_26      ,   90, "Exception 26 (0x1A)."),
    250     EXIT_REASON(SVM_EXIT_XCPT_27      ,   91, "Exception 27 (0x1B)."),
    251     EXIT_REASON(SVM_EXIT_XCPT_28      ,   92, "Exception 28 (0x1C)."),
    252     EXIT_REASON(SVM_EXIT_XCPT_29      ,   93, "Exception 29 (0x1D)."),
     249    EXIT_REASON(SVM_EXIT_XCPT_26      ,   90, "Exception 26 (0x1a)."),
     250    EXIT_REASON(SVM_EXIT_XCPT_27      ,   91, "Exception 27 (0x1b)."),
     251    EXIT_REASON(SVM_EXIT_XCPT_28      ,   92, "Exception 28 (0x1c)."),
     252    EXIT_REASON(SVM_EXIT_XCPT_29      ,   93, "Exception 29 (0x1d)."),
    253253    EXIT_REASON(SVM_EXIT_XCPT_30      ,   94, "Exception 30 (#SX)."),
    254254    EXIT_REASON(SVM_EXIT_XCPT_31      ,   95, "Exception 31 (0x1F)."),
     
    11491149        PVMCSCACHE pCache = &pVCpu->hm.s.vmx.VMCSCache;
    11501150        strcpy((char *)pCache->aMagic, "VMCSCACHE Magic");
    1151         pCache->uMagic = UINT64_C(0xDEADBEEFDEADBEEF);
     1151        pCache->uMagic = UINT64_C(0xdeadbeefdeadbeef);
    11521152    }
    11531153#endif
     
    20402040    /* Magic marker for searching in crash dumps. */
    20412041    strcpy((char *)pCache->aMagic, "VMCSCACHE Magic");
    2042     pCache->uMagic = UINT64_C(0xDEADBEEFDEADBEEF);
     2042    pCache->uMagic = UINT64_C(0xdeadbeefdeadbeef);
    20432043#endif
    20442044}
     
    23372337                pPatch->cbOp = cbOpMmio + cbOp;
    23382338
    2339                 /* 0xF0, 0x0F, 0x20, 0xC0 = mov eax, cr8 */
    2340                 abInstr[0] = 0xF0;
    2341                 abInstr[1] = 0x0F;
     2339                /* 0xf0, 0x0f, 0x20, 0xc0 = mov eax, cr8 */
     2340                abInstr[0] = 0xf0;
     2341                abInstr[1] = 0x0f;
    23422342                abInstr[2] = 0x20;
    2343                 abInstr[3] = 0xC0 | pDis->Param1.Base.idxGenReg;
     2343                abInstr[3] = 0xc0 | pDis->Param1.Base.idxGenReg;
    23442344                for (unsigned i = 4; i < pPatch->cbOp; i++)
    23452345                    abInstr[i] = 0x90;  /* nop */
     
    24802480                aPatch[off++] = 0x50;    /* push eax */
    24812481            aPatch[off++] = 0x31;    /* xor edx, edx */
    2482             aPatch[off++] = 0xD2;
     2482            aPatch[off++] = 0xd2;
    24832483            if (pDis->Param2.fUse == DISUSE_REG_GEN32)
    24842484            {
     
    24922492            {
    24932493                Assert(pDis->Param2.fUse == DISUSE_IMMEDIATE32);
    2494                 aPatch[off++] = 0xB8;    /* mov eax, immediate */
     2494                aPatch[off++] = 0xb8;    /* mov eax, immediate */
    24952495                *(uint32_t *)&aPatch[off] = pDis->Param2.uValue;
    24962496                off += sizeof(uint32_t);
    24972497            }
    2498             aPatch[off++] = 0xB9;    /* mov ecx, 0xc0000082 */
     2498            aPatch[off++] = 0xb9;    /* mov ecx, 0xc0000082 */
    24992499            *(uint32_t *)&aPatch[off] = MSR_K8_LSTAR;
    25002500            off += sizeof(uint32_t);
    25012501
    2502             aPatch[off++] = 0x0F;    /* wrmsr */
     2502            aPatch[off++] = 0x0f;    /* wrmsr */
    25032503            aPatch[off++] = 0x30;
    25042504            if (!fUsesEax)
    25052505                aPatch[off++] = 0x58;    /* pop eax */
    2506             aPatch[off++] = 0x5A;    /* pop edx */
     2506            aPatch[off++] = 0x5a;    /* pop edx */
    25072507            aPatch[off++] = 0x59;    /* pop ecx */
    25082508        }
     
    25332533
    25342534            aPatch[off++] = 0x31;    /* xor edx, edx */
    2535             aPatch[off++] = 0xD2;
    2536 
    2537             aPatch[off++] = 0xB9;    /* mov ecx, 0xc0000082 */
     2535            aPatch[off++] = 0xd2;
     2536
     2537            aPatch[off++] = 0xb9;    /* mov ecx, 0xc0000082 */
    25382538            *(uint32_t *)&aPatch[off] = MSR_K8_LSTAR;
    25392539            off += sizeof(uint32_t);
    25402540
    2541             aPatch[off++] = 0x0F;    /* rdmsr */
     2541            aPatch[off++] = 0x0f;    /* rdmsr */
    25422542            aPatch[off++] = 0x32;
    25432543
     
    25512551                aPatch[off++] = 0x58;    /* pop eax */
    25522552            if (pDis->Param1.Base.idxGenReg != DISGREG_EDX )
    2553                 aPatch[off++] = 0x5A;    /* pop edx */
     2553                aPatch[off++] = 0x5a;    /* pop edx */
    25542554            if (pDis->Param1.Base.idxGenReg != DISGREG_ECX)
    25552555                aPatch[off++] = 0x59;    /* pop ecx */
    25562556        }
    2557         aPatch[off++] = 0xE9;    /* jmp return_address */
     2557        aPatch[off++] = 0xe9;    /* jmp return_address */
    25582558        *(RTRCUINTPTR *)&aPatch[off] = ((RTRCUINTPTR)pCtx->eip + cbOp) - ((RTRCUINTPTR)pVM->hm.s.pFreeGuestPatchMem + off + 4);
    25592559        off += sizeof(RTRCUINTPTR);
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