Changeset 7717 in vbox for trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
- Timestamp:
- Apr 3, 2008 9:54:12 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29249
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r7500 r7717 805 805 /* Note: protected mode & paging are always enabled; we use them for emulating real and protected mode without paging too. */ 806 806 val |= X86_CR0_PE | X86_CR0_PG; 807 /* Note: We must also set this as we rely on protecting various pages for which supervisor writes must be caught. */ 808 val |= X86_CR0_WP; 807 809 808 810 rc |= VMXWriteVMCS(VMX_VMCS_GUEST_CR0, val); … … 812 814 */ 813 815 val = X86_CR0_PE /* Must monitor this bit (assumptions are made for real mode emulation) */ 814 | X86_CR0_WP /* * @todo do we care? (we do if we start patching the guest)*/816 | X86_CR0_WP /* Must monitor this bit (it must always be enabled). */ 815 817 | X86_CR0_PG /* Must monitor this bit (assumptions are made for real mode & protected mode without paging emulation) */ 816 818 | X86_CR0_TS
Note:
See TracChangeset
for help on using the changeset viewer.