Changeset 74306 in vbox for trunk/include/VBox
- Timestamp:
- Sep 17, 2018 12:02:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm_vmx.h
r74303 r74306 3897 3897 return true; 3898 3898 } 3899 3900 3901 /** 3902 * Returns whether or not the VM-exit is trap-like or fault-like. 3903 * 3904 * @returns @c true if it's a trap-like VM-exit, @c false otehrwise. 3905 * @param uExitReason The VM-exit reason. 3906 * 3907 * @remarks Warning! This does not validate the VM-exit reason. 3908 */ 3909 DECLINLINE(bool) HMVmxIsTrapLikeVmexit(uint32_t uExitReason) 3910 { 3911 /* 3912 * Trap-like VM-exits - The instruction causing the VM-exit completes before the 3913 * VM-exit occurs. 3914 * 3915 * Fault-like VM-exits - The instruction causing the VM-exit is not completed before 3916 * the VM-exit occurs. 3917 * 3918 * See Intel spec. 29.1.4 "EOI Virtualization". 3919 * See Intel spec. 29.4.3.3 "APIC-Write VM Exits". 3920 * See Intel spec. 29.1.2 "TPR Virtualization". 3921 */ 3922 switch (uExitReason) 3923 { 3924 case VMX_EXIT_VIRTUALIZED_EOI: 3925 case VMX_EXIT_APIC_WRITE: 3926 case VMX_EXIT_TPR_BELOW_THRESHOLD: 3927 return true; 3928 } 3929 return false; 3930 } 3899 3931 /** @} */ 3900 3932
Note:
See TracChangeset
for help on using the changeset viewer.