VirtualBox

Changeset 9023 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 21, 2008 2:48:23 PM (17 years ago)
Author:
vboxsync
Message:

Fixed some runtime assertions

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r9021 r9023  
    215215#undef PGM_SHW_TYPE
    216216#undef PGM_SHW_NAME
     217#endif
    217218
    218219/*
     
    271272#undef PGM_GST_NAME
    272273
     274#ifndef IN_GC /* AMD64 implies VT-x/AMD-V */
    273275/* Guest - AMD64 mode */
    274276#define PGM_GST_TYPE                PGM_TYPE_AMD64
     
    286288#undef PGM_SHW_TYPE
    287289#undef PGM_SHW_NAME
    288 
    289290#endif
    290 
    291291
    292292/**
  • trunk/src/VBox/VMM/VMMAll/PGMAllShw.h

    r8557 r9023  
    112112PGM_SHW_DECL(int, GetPage)(PVM pVM, RTGCUINTPTR GCPtr, uint64_t *pfFlags, PRTHCPHYS pHCPhys)
    113113{
     114#if PGM_SHW_TYPE == PGM_TYPE_NESTED
     115    return VERR_PAGE_TABLE_NOT_PRESENT;
     116#else
    114117    /*
    115118     * Get the PDE.
     
    215218
    216219    return VINF_SUCCESS;
     220#endif /* PGM_SHW_TYPE == PGM_TYPE_NESTED */
    217221}
    218222
     
    234238PGM_SHW_DECL(int, ModifyPage)(PVM pVM, RTGCUINTPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask)
    235239{
     240#if PGM_SHW_TYPE == PGM_TYPE_NESTED
     241    return VERR_PAGE_TABLE_NOT_PRESENT;
     242#else
    236243    int rc;
    237244
     
    308315        }
    309316    }
     317#endif /* PGM_SHW_TYPE == PGM_TYPE_NESTED */
    310318}
    311319
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