VirtualBox

Changeset 27490 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 18, 2010 4:44:10 PM (15 years ago)
Author:
vboxsync
Message:

More comment + paranoid assertions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r27489 r27490  
    15001500                &&  PGM_PAGE_GET_STATE(pPage) != PGM_PAGE_STATE_ALLOCATED)
    15011501            {
     1502                /* Still applies to shared pages. */
     1503                Assert(!PGM_PAGE_IS_ZERO(pPage));
    15021504                PteDst.n.u1Write = 0;   /** @todo this isn't quite working yet. */
    15031505                Log3(("SyncPageWorker: write-protecting %RGp pPage=%R[pgmpage]at iPTDst=%d\n", (RTGCPHYS)(PteSrc.u & X86_PTE_PAE_PG_MASK), pPage, iPTDst));
     
    18331835                        &&  PGM_PAGE_GET_STATE(pPage) != PGM_PAGE_STATE_ALLOCATED)
    18341836                    {
     1837                        /* Still applies to shared pages. */
     1838                        Assert(!PGM_PAGE_IS_ZERO(pPage));
    18351839                        PteDst.n.u1Write = 0;   /** @todo this isn't quite working yet... */
    18361840                        Log3(("SyncPage: write-protecting %RGp pPage=%R[pgmpage] at %RGv\n", GCPhys, pPage, GCPtrPage));
     
    23942398                                }
    23952399                                if (PGM_PAGE_GET_STATE(pPage) == PGM_PAGE_STATE_ALLOCATED)
     2400                                {
    23962401                                    PteDst.n.u1Write = 1;
     2402                                }
    23972403                                else
     2404                                {
     2405                                    /* Still applies to shared pages. */
     2406                                    Assert(!PGM_PAGE_IS_ZERO(pPage));
    23982407                                    PteDst.n.u1Write = 0;
     2408                                }
    23992409                            }
    24002410                        }
     
    28622872                            &&  PGM_PAGE_GET_STATE(pPage) != PGM_PAGE_STATE_ALLOCATED)
    28632873                        {
     2874                            /* Still applies to shared pages. */
     2875                            Assert(!PGM_PAGE_IS_ZERO(pPage));
    28642876                            PteDst.n.u1Write = 0;   /** @todo this isn't quite working yet... */
    28652877                            Log3(("SyncPT: write-protecting %RGp pPage=%R[pgmpage] at %RGv\n", GCPhys, pPage, (RTGCPTR)(GCPtr | (iPTDst << SHW_PT_SHIFT))));
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