VirtualBox

Changeset 78483 in vbox


Ignore:
Timestamp:
May 13, 2019 10:52:16 AM (6 years ago)
Author:
vboxsync
Message:

VMM: Nested SVM: bugref:7243 Renamed a couple of functions and doxygen to be more consistent.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r78454 r78483  
    14751475VMM_INT_DECL(bool)      CPUMGetVmxIoBitmapPermission(void const *pvIoBitmapA, void const *pvIoBitmapB, uint16_t uPort,
    14761476                                                     uint8_t cbAccess);
    1477 VMM_INT_DECL(bool)      CPUMIsSvmIoInterceptActive(void *pvIoBitmap, uint16_t u16Port, SVMIOIOTYPE enmIoType, uint8_t cbReg,
    1478                                                    uint8_t cAddrSizeBits, uint8_t iEffSeg, bool fRep, bool fStrIo,
    1479                                                    PSVMIOIOEXITINFO pIoExitInfo);
     1477VMM_INT_DECL(bool)      CPUMIsSvmIoInterceptSet(void *pvIoBitmap, uint16_t u16Port, SVMIOIOTYPE enmIoType, uint8_t cbReg,
     1478                                                uint8_t cAddrSizeBits, uint8_t iEffSeg, bool fRep, bool fStrIo,
     1479                                                PSVMIOIOEXITINFO pIoExitInfo);
    14801480VMM_INT_DECL(int)       CPUMGetSvmMsrpmOffsetAndBit(uint32_t idMsr, uint16_t *pbOffMsrpm, uint8_t *puMsrpmBit);
    14811481/** @} */
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r78454 r78483  
    33043304
    33053305/**
    3306  * Determines whether an IOIO intercept is active for the nested-guest or not.
     3306 * Determines whether the given I/O access should cause a nested-guest \#VMEXIT.
    33073307 *
    33083308 * @param   pvIoBitmap      Pointer to the nested-guest IO bitmap.
     
    33173317 *                          Optional, can be NULL.
    33183318 */
    3319 VMM_INT_DECL(bool) CPUMIsSvmIoInterceptActive(void *pvIoBitmap, uint16_t u16Port, SVMIOIOTYPE enmIoType, uint8_t cbReg,
    3320                                               uint8_t cAddrSizeBits, uint8_t iEffSeg, bool fRep, bool fStrIo,
    3321                                               PSVMIOIOEXITINFO pIoExitInfo)
     3319VMM_INT_DECL(bool) CPUMIsSvmIoInterceptSet(void *pvIoBitmap, uint16_t u16Port, SVMIOIOTYPE enmIoType, uint8_t cbReg,
     3320                                           uint8_t cAddrSizeBits, uint8_t iEffSeg, bool fRep, bool fStrIo,
     3321                                           PSVMIOIOEXITINFO pIoExitInfo)
    33223322{
    33233323    Assert(cAddrSizeBits == 16 || cAddrSizeBits == 32 || cAddrSizeBits == 64);
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImplSvmInstr.cpp.h

    r78371 r78483  
    990990    SVMIOIOEXITINFO IoExitInfo;
    991991    void *pvIoBitmap = pVCpu->cpum.GstCtx.hwvirt.svm.CTX_SUFF(pvIoBitmap);
    992     bool const fIntercept = CPUMIsSvmIoInterceptActive(pvIoBitmap, u16Port, enmIoType, cbReg, cAddrSizeBits, iEffSeg, fRep,
    993                                                        fStrIo, &IoExitInfo);
     992    bool const fIntercept = CPUMIsSvmIoInterceptSet(pvIoBitmap, u16Port, enmIoType, cbReg, cAddrSizeBits, iEffSeg, fRep,
     993                                                    fStrIo, &IoExitInfo);
    994994    if (fIntercept)
    995995    {
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r78371 r78483  
    51305130#ifdef VBOX_WITH_NESTED_HWVIRT_SVM
    51315131/**
    5132  * Determines whether an IOIO intercept is active for the nested-guest or not.
     5132 * Determines whether the given I/O access should cause a nested-guest \#VMEXIT.
    51335133 *
    51345134 * @param   pvIoBitmap      Pointer to the nested-guest IO bitmap.
    51355135 * @param   pIoExitInfo     Pointer to the SVMIOIOEXITINFO.
    51365136 */
    5137 static bool hmR0SvmIsIoInterceptActive(void *pvIoBitmap, PSVMIOIOEXITINFO pIoExitInfo)
     5137static bool hmR0SvmIsIoInterceptSet(void *pvIoBitmap, PSVMIOIOEXITINFO pIoExitInfo)
    51385138{
    51395139    const uint16_t    u16Port       = pIoExitInfo->n.u16Port;
     
    51455145    const bool        fStrIo        = pIoExitInfo->n.u1Str;
    51465146
    5147     return CPUMIsSvmIoInterceptActive(pvIoBitmap, u16Port, enmIoType, cbReg, cAddrSizeBits, iEffSeg, fRep, fStrIo,
    5148                                       NULL /* pIoExitInfo */);
     5147    return CPUMIsSvmIoInterceptSet(pvIoBitmap, u16Port, enmIoType, cbReg, cAddrSizeBits, iEffSeg, fRep, fStrIo,
     5148                                   NULL /* pIoExitInfo */);
    51495149}
    51505150
     
    52745274                SVMIOIOEXITINFO IoExitInfo;
    52755275                IoExitInfo.u = pVmcbNstGst->ctrl.u64ExitInfo1;
    5276                 bool const fIntercept = hmR0SvmIsIoInterceptActive(pvIoBitmap, &IoExitInfo);
     5276                bool const fIntercept = hmR0SvmIsIoInterceptSet(pvIoBitmap, &IoExitInfo);
    52775277                if (fIntercept)
    52785278                    NST_GST_VMEXIT_CALL_RET(pVCpu, uExitCode, uExitInfo1, uExitInfo2);
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