VirtualBox

Ignore:
Timestamp:
Sep 27, 2022 2:30:57 PM (2 years ago)
Author:
vboxsync
Message:

VMM: Nested SVM: bugref:7243 VM reset and init. nits for nested SVM, don't rely on order of usage assumptions.

File:
1 edited

Legend:

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

    r96839 r96902  
    10491049        AssertCompile(sizeof(pCtx->hwvirt.svm.abMsrBitmap) == SVM_MSRPM_PAGES * X86_PAGE_SIZE);
    10501050        AssertCompile(sizeof(pCtx->hwvirt.svm.abIoBitmap) == SVM_IOPM_PAGES * X86_PAGE_SIZE);
     1051
     1052        /* Initialize non-zero values. */
     1053        pCtx->hwvirt.svm.GCPhysVmcb = NIL_RTGCPHYS;
    10511054    }
    10521055}
     
    10641067
    10651068    RT_ZERO(pCtx->hwvirt.svm.Vmcb);
    1066     pCtx->hwvirt.svm.uMsrHSavePa    = 0;
    1067     pCtx->hwvirt.svm.uPrevPauseTick = 0;
     1069    RT_ZERO(pCtx->hwvirt.svm.HostState);
     1070    RT_ZERO(pCtx->hwvirt.svm.abMsrBitmap);
     1071    RT_ZERO(pCtx->hwvirt.svm.abIoBitmap);
     1072
     1073    pCtx->hwvirt.svm.uMsrHSavePa           = 0;
     1074    pCtx->hwvirt.svm.uPrevPauseTick        = 0;
     1075    pCtx->hwvirt.svm.GCPhysVmcb            = NIL_RTGCPHYS;
     1076    pCtx->hwvirt.svm.cPauseFilter          = 0;
     1077    pCtx->hwvirt.svm.cPauseFilterThreshold = 0;
     1078    pCtx->hwvirt.svm.fInterceptEvents      = false;
    10681079}
    10691080
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