VirtualBox

忽略:
時間撮記:
2008-10-20 下午01:26:44 (16 年 以前)
作者:
vboxsync
訊息:

Updates for physical page aliases

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp

    r13392 r13393  
    17621762    AssertRCReturn(rc, rc);
    17631763
     1764    /* Prefetch it as it's now marked as not present and our trap handler will
     1765     * still call the access handler.
     1766     */
     1767    rc = PGMPrefetchPage(pVM, (RTGCPTR)GCPhys);
     1768    AssertRC(rc);
     1769
    17641770    /* Mark it as writable and present so reads and writes no longer fault. */
    1765     rc = PGMShwSetPage(pVM, (RTGCPTR)GCPhys, PAGE_SIZE, fPageFlags);
     1771    rc = PGMShwModifyPage(pVM, (RTGCPTR)GCPhys, 1, fPageFlags, ~fPageFlags);
    17661772    AssertRC(rc);
    17671773
     
    18061812
    18071813        /* Mark it as not present again to intercept all read and write access. */
    1808         rc = PGMShwSetPage(pVM, (RTGCPTR)GCPhys, PAGE_SIZE, 0);
     1814        rc = PGMShwModifyPage(pVM, (RTGCPTR)GCPhys, 1, 0, ~(uint64_t)(X86_PTE_RW|X86_PTE_P));
    18091815        AssertRC(rc);
    18101816
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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