VirtualBox

Changeset 14415

Show
Ignore:
Timestamp:
11/20/08 14:37:26 (2 months ago)
Author:
vboxsync
Message:

Corrected assertion

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r14414 r14415  
    10311031 
    10321032    Assert(sizeof(pVCpu->hwaccm.s.svm.pVMCBPhys) == 8); 
    1033     Assert(pVMCB->ctrl.u32InterceptCtrl2 == ( SVM_CTRL2_INTERCEPT_VMRUN         /* required */ 
    1034                                              | SVM_CTRL2_INTERCEPT_VMMCALL 
    1035                                              | SVM_CTRL2_INTERCEPT_VMLOAD 
    1036                                              | SVM_CTRL2_INTERCEPT_VMSAVE 
    1037                                              | SVM_CTRL2_INTERCEPT_STGI 
    1038                                              | SVM_CTRL2_INTERCEPT_CLGI 
    1039                                              | SVM_CTRL2_INTERCEPT_SKINIT 
    1040                                              | SVM_CTRL2_INTERCEPT_WBINVD 
    1041                                              | SVM_CTRL2_INTERCEPT_MWAIT_UNCOND  /* don't execute mwait or else we'll idle inside the guest (host thinks the cpu load is high) */ 
    1042                                             )); 
     1033    Assert((pVMCB->ctrl.u32InterceptCtrl2 &  (  SVM_CTRL2_INTERCEPT_VMRUN         /* required */ 
     1034                                              | SVM_CTRL2_INTERCEPT_VMMCALL 
     1035                                              | SVM_CTRL2_INTERCEPT_VMLOAD 
     1036                                              | SVM_CTRL2_INTERCEPT_VMSAVE 
     1037                                              | SVM_CTRL2_INTERCEPT_STGI 
     1038                                              | SVM_CTRL2_INTERCEPT_CLGI 
     1039                                              | SVM_CTRL2_INTERCEPT_SKINIT 
     1040                                              | SVM_CTRL2_INTERCEPT_WBINVD 
     1041                                              | SVM_CTRL2_INTERCEPT_MWAIT_UNCOND  /* don't execute mwait or else we'll idle inside the guest (host thinks the cpu load is high) */ 
     1042                                             )) 
     1043                                           == 
     1044                                             (  SVM_CTRL2_INTERCEPT_VMRUN         /* required */ 
     1045                                              | SVM_CTRL2_INTERCEPT_VMMCALL 
     1046                                              | SVM_CTRL2_INTERCEPT_VMLOAD 
     1047                                              | SVM_CTRL2_INTERCEPT_VMSAVE 
     1048                                              | SVM_CTRL2_INTERCEPT_STGI 
     1049                                              | SVM_CTRL2_INTERCEPT_CLGI 
     1050                                              | SVM_CTRL2_INTERCEPT_SKINIT 
     1051                                              | SVM_CTRL2_INTERCEPT_WBINVD 
     1052                                              | SVM_CTRL2_INTERCEPT_MWAIT_UNCOND  /* don't execute mwait or else we'll idle inside the guest (host thinks the cpu load is high) */                                          ); 
     1053                                             )); 
     1054 
    10431055    Assert(pVMCB->ctrl.IntCtrl.n.u1VIrqMasking); 
    10441056    Assert(pVMCB->ctrl.u64IOPMPhysAddr  == pVM->hwaccm.s.svm.pIOBitmapPhys); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy