VirtualBox

Ignore:
Timestamp:
Apr 3, 2008 9:54:12 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
29249
Message:

Some write protect changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r7500 r7717  
    805805        /* Note: protected mode & paging are always enabled; we use them for emulating real and protected mode without paging too. */
    806806        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;
    807809
    808810        rc |= VMXWriteVMCS(VMX_VMCS_GUEST_CR0,              val);
     
    812814         */
    813815        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). */
    815817              | X86_CR0_PG  /* Must monitor this bit (assumptions are made for real mode & protected mode without paging emulation) */
    816818              | X86_CR0_TS
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette