Changeset 75940 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Dec 4, 2018 10:42:07 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm_vmx.h
r75693 r75940 4195 4195 * 4196 4196 * @returns @c true if the VM-entry is vectoring, @c false otherwise. 4197 * @param uEntryIntInfo The VM-entry interruption information field. 4198 */ 4199 DECLINLINE(bool) HMVmxIsVmentryVectoring(uint32_t uEntryIntInfo) 4200 { 4197 * @param uEntryIntInfo The VM-entry interruption information field. 4198 * @param pEntryIntInfoType The VM-entry interruption information type field. 4199 * Optional, can be NULL. Only updated when this 4200 * function returns @c true. 4201 */ 4202 DECLINLINE(bool) HMVmxIsVmentryVectoring(uint32_t uEntryIntInfo, uint8_t *pEntryIntInfoType) 4203 { 4204 /* 4205 * The definition of what is a vectoring VM-entry is taken 4206 * from Intel spec. 26.6 "Special Features of VM Entry". 4207 */ 4201 4208 if (!VMX_ENTRY_INT_INFO_IS_VALID(uEntryIntInfo)) 4202 4209 return false; 4203 switch (VMX_ENTRY_INT_INFO_TYPE(uEntryIntInfo)) 4210 uint8_t const uType = VMX_ENTRY_INT_INFO_TYPE(uEntryIntInfo); 4211 switch (uType) 4204 4212 { 4205 4213 case VMX_ENTRY_INT_INFO_TYPE_EXT_INT: … … 4209 4217 case VMX_ENTRY_INT_INFO_TYPE_PRIV_SW_XCPT: 4210 4218 case VMX_ENTRY_INT_INFO_TYPE_SW_XCPT: 4219 { 4220 if (pEntryIntInfoType) 4221 *pEntryIntInfoType = uType; 4211 4222 return true; 4223 } 4212 4224 } 4213 4225 return false;
Note:
See TracChangeset
for help on using the changeset viewer.