Changeset 7717 in vbox
- Timestamp:
- Apr 3, 2008 9:54:12 AM (17 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r7496 r7717 527 527 528 528 val |= X86_CR0_PG; /* Paging is always enabled; even when the guest is running in real mode or PE without paging. */ 529 val |= X86_CR0_WP; /* Must set this as we rely on protect various pages and supervisor writes must be caught. */ 529 530 pVMCB->guest.u64CR0 = val; 530 531 } -
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.