Changeset 26653 in vbox
- Timestamp:
- Feb 19, 2010 2:01:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/cpum.h
r25935 r26653 931 931 VMMR3DECL(void) CPUMR3ResetCpu(PVMCPU pVCpu); 932 932 VMMDECL(bool) CPUMR3IsStateRestorePending(PVM pVM); 933 VMMR3DECL(void) CPUMR3SetHWVirtEx(PVM pVM, bool fHWVirtExEnabled); 933 934 # ifdef DEBUG 934 935 VMMR3DECL(void) CPUMR3SaveEntryCtx(PVM pVM); -
trunk/src/VBox/VMM/CPUM.cpp
r26652 r26653 819 819 820 820 } 821 } 822 823 824 /** 825 * Apply late CPUM property changes based on the fHWVirtEx setting 826 * 827 * @param pVM The VM to operate on. 828 * @param fHWVirtExEnabled HWVirtEx enabled/disabled 829 */ 830 VMMR3DECL(void) CPUMR3SetHWVirtEx(PVM pVM, bool fHWVirtExEnabled) 831 { 821 832 /* 822 833 * Workaround for missing cpuid(0) patches when leaf 4 returns GuestCpuIdDef: … … 824 835 * of processors from (cpuid(4).eax >> 26) + 1. 825 836 */ 826 if (! HWACCMR3IsAllowed(pVM))837 if (!fHWVirtExEnabled) 827 838 pVM->cpum.s.aGuestCpuIdStd[4].eax = 0; 828 839 } 829 830 840 831 841 /** -
trunk/src/VBox/VMM/VM.cpp
r26365 r26653 1021 1021 /** @todo Move this to the VMINITCOMPLETED_RING0 notification handler. */ 1022 1022 if (RT_SUCCESS(rc)) 1023 { 1023 1024 rc = HWACCMR3InitFinalizeR0(pVM); 1025 CPUMR3SetHWVirtEx(pVM, HWACCMIsEnabled(pVM)); 1026 } 1024 1027 1025 1028 LogFlow(("vmR3InitRing0: returns %Rrc\n", rc));
Note:
See TracChangeset
for help on using the changeset viewer.