Changeset 36639 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Apr 11, 2011 10:10:38 AM (14 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r36315 r36639 870 870 871 871 if ((pVCpu->CTX_SUFF(pVM)->cpum.s.aGuestCpuIdStd[1].ecx & X86_CPUID_FEATURE_ECX_MONITOR) != 0) 872 872 873 873 *puValue |= MSR_IA32_MISC_ENABLE_MONITOR /* if mwait/monitor available */; 874 874 /** @todo: add more cpuid-controlled features this way. */ … … 2059 2059 2060 2060 /** 2061 * Tests if the guest is running in real or virtual 8086 mode. 2062 * 2063 * @returns @c true if it is, @c false if not. 2064 * @param pVCpu The virtual CPU handle. 2065 */ 2066 VMMDECL(bool) CPUMIsGuestInRealOrV86Mode(PVMCPU pVCpu) 2067 { 2068 return !(pVCpu->cpum.s.Guest.cr0 & X86_CR0_PE) 2069 || pVCpu->cpum.s.Guest.eflags.Bits.u1VM; /** @todo verify that this cannot be set in long mode. */ 2070 } 2071 2072 2073 /** 2061 2074 * Tests if the guest is running in protected or not. 2062 2075 * -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r36009 r36639 544 544 { 545 545 /* Lazy approach: check all pages in the 2 MB range. 546 * The whole range must be ram and unallocated. */ 546 * The whole range must be ram and unallocated. */ 547 547 GCPhys = GCPhysBase; 548 548 unsigned iPage;
Note:
See TracChangeset
for help on using the changeset viewer.