Changeset 80871 in vbox for trunk/src/VBox
- Timestamp:
- Sep 17, 2019 5:41:42 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133442
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMR0.cpp
r80844 r80871 448 448 /* Restore CR4.VMXE if it wasn't set prior to us setting it above. */ 449 449 if (!(uOldCr4 & X86_CR4_VMXE)) 450 SUPR0ChangeCR4(0 /* fOrMask */, ~ X86_CR4_VMXE);450 SUPR0ChangeCR4(0 /* fOrMask */, ~(uint64_t)X86_CR4_VMXE); 451 451 452 452 /* Restore interrupts. */ -
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r80843 r80871 1621 1621 /* Restore CR4.VMXE if it was not set prior to our attempt to set it above. */ 1622 1622 if (!(uOldCr4 & X86_CR4_VMXE)) 1623 SUPR0ChangeCR4(0 /* fOrMask */, ~ X86_CR4_VMXE);1623 SUPR0ChangeCR4(0 /* fOrMask */, ~(uint64_t)X86_CR4_VMXE); 1624 1624 1625 1625 if (pVM) … … 1653 1653 /* Exit VMX root mode and clear the VMX bit in CR4. */ 1654 1654 VMXDisable(); 1655 SUPR0ChangeCR4(0 /* fOrMask */, ~ X86_CR4_VMXE);1655 SUPR0ChangeCR4(0 /* fOrMask */, ~(uint64_t)X86_CR4_VMXE); 1656 1656 rc = VINF_SUCCESS; 1657 1657 }
Note:
See TracChangeset
for help on using the changeset viewer.