VirtualBox

Changeset 8900 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 16, 2008 3:18:42 PM (17 years ago)
Author:
vboxsync
Message:

Some updates

File:
1 edited

Legend:

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

    r8881 r8900  
    252252    /* Program the control fields. Most of them never have to be changed again. */
    253253    /* CR0/3/4 reads must be intercepted, our shadow values are not necessarily the same as the guest's. */
     254    /* Note: CR8 reads will refer to V_TPR, so no need to catch them. */
    254255    /** @note CR0 & CR4 can be safely read when guest and shadow copies are identical. */
    255     pVMCB->ctrl.u16InterceptRdCRx = RT_BIT(0) | RT_BIT(3) | RT_BIT(4) | RT_BIT(8);
     256    pVMCB->ctrl.u16InterceptRdCRx = RT_BIT(0) | RT_BIT(3) | RT_BIT(4);
    256257
    257258    /*
     
    276277                                    | SVM_CTRL1_INTERCEPT_SMI
    277278                                    | SVM_CTRL1_INTERCEPT_INIT
    278                                     | SVM_CTRL1_INTERCEPT_CR0           /** @todo redundant?  */
    279279                                    | SVM_CTRL1_INTERCEPT_RDPMC
    280280                                    | SVM_CTRL1_INTERCEPT_CPUID
     
    303303    Log(("pVMCB->ctrl.u32InterceptCtrl2 = %x\n", pVMCB->ctrl.u32InterceptCtrl2));
    304304
    305     /* Virtualize masking of INTR interrupts. */
     305    /* Virtualize masking of INTR interrupts. (reads/writes from/to CR8 go to the V_TPR register) */
    306306    pVMCB->ctrl.IntCtrl.n.u1VIrqMasking = 1;
    307307
Note: See TracChangeset for help on using the changeset viewer.

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