VirtualBox

Changeset 78611 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 21, 2019 4:34:34 AM (6 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested VMX: bugref:9180 Spaces, nits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImplVmxInstr.cpp.h

    r78592 r78611  
    21712171
    21722172    /* LDTR (Warning! do not touch the base and limits here). */
    2173     pVCpu->cpum.GstCtx.ldtr.Sel               = 0;
    2174     pVCpu->cpum.GstCtx.ldtr.ValidSel          = 0;
    2175     pVCpu->cpum.GstCtx.ldtr.fFlags            = CPUMSELREG_FLAGS_VALID;
    2176     pVCpu->cpum.GstCtx.ldtr.Attr.u            = X86DESCATTR_UNUSABLE;
     2173    pVCpu->cpum.GstCtx.ldtr.Sel                = 0;
     2174    pVCpu->cpum.GstCtx.ldtr.ValidSel           = 0;
     2175    pVCpu->cpum.GstCtx.ldtr.fFlags             = CPUMSELREG_FLAGS_VALID;
     2176    pVCpu->cpum.GstCtx.ldtr.Attr.u             = X86DESCATTR_UNUSABLE;
    21772177
    21782178    /* GDTR. */
     
    35763576        if (uInstrId == VMXINSTRID_IO_INS)
    35773577        {
    3578             uDirection = VMX_EXIT_QUAL_IO_DIRECTION_IN;
     3578            uDirection       = VMX_EXIT_QUAL_IO_DIRECTION_IN;
    35793579            uGuestLinearAddr = pVCpu->cpum.GstCtx.aSRegs[iSegReg].u64Base + (pVCpu->cpum.GstCtx.rdi & uAddrSizeMask);
    35803580        }
    35813581        else
    35823582        {
    3583             uDirection = VMX_EXIT_QUAL_IO_DIRECTION_OUT;
     3583            uDirection       = VMX_EXIT_QUAL_IO_DIRECTION_OUT;
    35843584            uGuestLinearAddr = pVCpu->cpum.GstCtx.aSRegs[iSegReg].u64Base + (pVCpu->cpum.GstCtx.rsi & uAddrSizeMask);
    35853585        }
    35863586
    35873587        /*
    3588          * If the segment is ununsable, the guest-linear address in undefined.
     3588         * If the segment is unusable, the guest-linear address in undefined.
    35893589         * We shall clear it for consistency.
    35903590         *
     
    47904790 *
    47914791 * @returns VBox status code.
    4792  * @retval  VINF_SUCCES when the highest set bit is found.
     4792 * @retval  VINF_SUCCESS when the highest set bit is found.
    47934793 * @retval  VERR_NOT_FOUND when no bit is set.
    47944794 *
     
    76157615                    /*
    76167616                     * Blocking of NMIs need to be restored if VM-entry fails due to invalid-guest state.
    7617                      * So we save the the VMCPU_FF_BLOCK_NMI force-flag here so we can restore it on
     7617                     * So we save the VMCPU_FF_BLOCK_NMI force-flag here so we can restore it on
    76187618                     * VM-exit when required.
    76197619                     * See Intel spec. 26.7 "VM-entry Failures During or After Loading Guest State"
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