Changeset 48219 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Sep 1, 2013 5:11:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r48218 r48219 1128 1128 static void hmR0VmxFlushEpt(PVMCPU pVCpu, VMX_FLUSH_EPT enmFlush) 1129 1129 { 1130 uint64_t descriptor[2];1130 uint64_t au64Descriptor[2]; 1131 1131 if (enmFlush == VMX_FLUSH_EPT_ALL_CONTEXTS) 1132 descriptor[0] = 0;1132 au64Descriptor[0] = 0; 1133 1133 else 1134 1134 { 1135 1135 Assert(pVCpu); 1136 descriptor[0] = pVCpu->hm.s.vmx.HCPhysEPTP;1137 } 1138 descriptor[1] = 0;/* MBZ. Intel spec. 33.3 "VMX Instructions" */1139 1140 int rc = VMXR0InvEPT(enmFlush, & descriptor[0]);1136 au64Descriptor[0] = pVCpu->hm.s.vmx.HCPhysEPTP; 1137 } 1138 au64Descriptor[1] = 0; /* MBZ. Intel spec. 33.3 "VMX Instructions" */ 1139 1140 int rc = VMXR0InvEPT(enmFlush, &au64Descriptor[0]); 1141 1141 AssertMsg(rc == VINF_SUCCESS, ("VMXR0InvEPT %#x %RGv failed with %Rrc\n", enmFlush, pVCpu ? pVCpu->hm.s.vmx.HCPhysEPTP : 0, 1142 1142 rc)); … … 1165 1165 Assert(pVM->hm.s.vmx.fVpid); 1166 1166 1167 uint64_t descriptor[2];1167 uint64_t au64Descriptor[2]; 1168 1168 if (enmFlush == VMX_FLUSH_VPID_ALL_CONTEXTS) 1169 1169 { 1170 descriptor[0] = 0;1171 descriptor[1] = 0;1170 au64Descriptor[0] = 0; 1171 au64Descriptor[1] = 0; 1172 1172 } 1173 1173 else … … 1176 1176 AssertMsg(pVCpu->hm.s.uCurrentAsid != 0, ("VMXR0InvVPID: invalid ASID %lu\n", pVCpu->hm.s.uCurrentAsid)); 1177 1177 AssertMsg(pVCpu->hm.s.uCurrentAsid <= UINT16_MAX, ("VMXR0InvVPID: invalid ASID %lu\n", pVCpu->hm.s.uCurrentAsid)); 1178 descriptor[0] = pVCpu->hm.s.uCurrentAsid;1179 descriptor[1] = GCPtr;1180 } 1181 1182 int rc = VMXR0InvVPID(enmFlush, & descriptor[0]); NOREF(rc);1178 au64Descriptor[0] = pVCpu->hm.s.uCurrentAsid; 1179 au64Descriptor[1] = GCPtr; 1180 } 1181 1182 int rc = VMXR0InvVPID(enmFlush, &au64Descriptor[0]); NOREF(rc); 1183 1183 AssertMsg(rc == VINF_SUCCESS, 1184 1184 ("VMXR0InvVPID %#x %u %RGv failed with %d\n", enmFlush, pVCpu ? pVCpu->hm.s.uCurrentAsid : 0, GCPtr, rc));
Note:
See TracChangeset
for help on using the changeset viewer.