VirtualBox

Changeset 72272 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
May 21, 2018 12:48:49 PM (7 years ago)
Author:
vboxsync
Message:

NEMAll: Oops, forgot to drop && defined(IN_RING3) after doing the ring-0 impl. This caused page replacements and assignments made in ring-0 to be ignored, with the usual consequences (guest confusion). bugref:9044

File:
1 edited

Legend:

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

    r71152 r72272  
    3939VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb)
    4040{
    41 #if defined(VBOX_WITH_NATIVE_NEM) && defined(IN_RING3)
     41#ifdef VBOX_WITH_NATIVE_NEM
    4242    if (VM_IS_NEM_ENABLED(pVM))
    4343        nemHCNativeNotifyHandlerPhysicalRegister(pVM, enmKind, GCPhys, cb);
     
    5151                                                        int fRestoreAsRAM, bool fRestoreAsRAM2)
    5252{
    53 #if defined(VBOX_WITH_NATIVE_NEM) && defined(IN_RING3)
     53#ifdef VBOX_WITH_NATIVE_NEM
    5454    if (VM_IS_NEM_ENABLED(pVM))
    5555        nemHCNativeNotifyHandlerPhysicalDeregister(pVM, enmKind, GCPhys, cb, fRestoreAsRAM, fRestoreAsRAM2);
     
    6363                                                    RTGCPHYS GCPhysNew, RTGCPHYS cb, bool fRestoreAsRAM)
    6464{
    65 #if defined(VBOX_WITH_NATIVE_NEM) && defined(IN_RING3)
     65#ifdef VBOX_WITH_NATIVE_NEM
    6666    if (VM_IS_NEM_ENABLED(pVM))
    6767        nemHCNativeNotifyHandlerPhysicalModify(pVM, enmKind, GCPhysOld, GCPhysNew, cb, fRestoreAsRAM);
     
    7676{
    7777    Assert(VM_IS_NEM_ENABLED(pVM));
    78 #if defined(VBOX_WITH_NATIVE_NEM) && defined(IN_RING3)
     78#ifdef VBOX_WITH_NATIVE_NEM
    7979    return nemHCNativeNotifyPhysPageAllocated(pVM, GCPhys, HCPhys, fPageProt, enmType, pu2State);
    8080#else
     
    8989{
    9090    Assert(VM_IS_NEM_ENABLED(pVM));
    91 #if defined(VBOX_WITH_NATIVE_NEM)
     91#ifdef VBOX_WITH_NATIVE_NEM
    9292    nemHCNativeNotifyPhysPageProtChanged(pVM, GCPhys, HCPhys, fPageProt, enmType, pu2State);
    9393#else
     
    101101{
    102102    Assert(VM_IS_NEM_ENABLED(pVM));
    103 #if defined(VBOX_WITH_NATIVE_NEM)
     103#ifdef VBOX_WITH_NATIVE_NEM
    104104    nemHCNativeNotifyPhysPageChanged(pVM, GCPhys, HCPhysPrev, HCPhysNew, fPageProt, enmType, pu2State);
    105105#else
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