Changeset 87564 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Feb 3, 2021 1:32:10 PM (4 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r87563 r87564 3659 3659 } 3660 3660 3661 3662 3661 #ifdef VBOX_WITH_NESTED_HWVIRT_VMX 3662 3663 3663 /** 3664 3664 * Sets up the VMREAD bitmap address for the VMCS. … … 3689 3689 AssertRC(rc); 3690 3690 } 3691 3691 3692 #endif 3692 3693 3693 3694 3694 /** -
trunk/src/VBox/VMM/include/HMInternal.h
r87563 r87564 650 650 typedef struct HMR0PERVM 651 651 { 652 /** The maximum number of resumes loops allowed in ring-0 (safety precaution). 653 * This number is set much higher when RTThreadPreemptIsPending is reliable. */ 654 uint32_t cMaxResumeLoops; 655 652 656 /** Set if nested paging is enabled. */ 653 657 bool fNestedPaging; 654 658 /** Set if we can support 64-bit guests or not. */ 655 659 bool fAllow64BitGuests; 656 bool afAlignment0[2]; 657 658 /** The maximum number of resumes loops allowed in ring-0 (safety precaution). 659 * This number is set much higher when RTThreadPreemptIsPending is reliable. */ 660 uint32_t cMaxResumeLoops; 660 bool afAlignment1[1]; 661 662 /** AMD-V specific data. */ 663 struct HMR0SVMVM 664 { 665 /** Set if erratum 170 affects the AMD cpu. */ 666 bool fAlwaysFlushTLB; 667 } svm; 661 668 662 669 /** VT-x specific data. */ … … 672 679 /** Set if Last Branch Record (LBR) is enabled. */ 673 680 bool fLbr; 681 bool afAlignment2[3]; 682 674 683 /** Set if VPID is supported (copy in HM::vmx::fVpidForRing3). */ 675 684 bool fVpid; … … 681 690 VMXTLBFLUSHVPID enmTlbFlushVpid; 682 691 692 /** The host LBR TOS (top-of-stack) MSR id. */ 693 uint32_t idLbrTosMsr; 694 683 695 /** The first valid host LBR branch-from-IP stack range. */ 684 696 uint32_t idLbrFromIpMsrFirst; … … 691 703 uint32_t idLbrToIpMsrLast; 692 704 693 /** The host LBR TOS (top-of-stack) MSR id. */694 uint32_t idLbrTosMsr;695 uint32_t u32Alignment1;696 697 /** Virtual address of the APIC-access page. */698 R0PTRTYPE(uint8_t *) pbApicAccess;699 705 /** Pointer to the VMREAD bitmap. */ 700 706 R0PTRTYPE(void *) pvVmreadBitmap; … … 727 733 /** Ring-0 memory object for per-VM VMX structures. */ 728 734 RTR0MEMOBJ hMemObj; 735 /** Virtual address of the APIC-access page (not used). */ 736 R0PTRTYPE(uint8_t *) pbApicAccess; 729 737 } vmx; 730 731 /** AMD-V specific data. */732 struct HMR0SVMVM733 {734 /** Set if erratum 170 affects the AMD cpu. */735 bool fAlwaysFlushTLB;736 bool afAlignment0[3];737 } svm;738 738 } HMR0PERVM; 739 739 /** Pointer to HM's per-VM ring-0 instance data. */
Note:
See TracChangeset
for help on using the changeset viewer.