VirtualBox

Changeset 99292 in vbox for trunk/src


Ignore:
Timestamp:
Apr 5, 2023 8:19:50 AM (22 months ago)
Author:
vboxsync
Message:

VMM/NEMR3Native-darwin: Map the RAM page in NEMHCNotifyPhysPageChanged() immediately instead of post-poning it to map it on demand when the guest accesses it for the first time later on. This fixes guru meditations occuring on macOS Ventura 13.3 due to hv_vm_map/hv_vm_map_space returning HV_ERROR when the guest is running, bugref:10416 ticketref:21563

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin.cpp

    r98103 r99292  
    44444444    RT_NOREF(HCPhysPrev, HCPhysNew, pvNewR3, fPageProt, enmType);
    44454445
    4446     nemR3DarwinUnmap(pVM, GCPhys, X86_PAGE_SIZE, pu2State);
     4446    int rc = nemR3DarwinUnmap(pVM, GCPhys, X86_PAGE_SIZE, pu2State);
     4447    if (RT_SUCCESS(rc))
     4448    {
     4449        rc = nemR3DarwinMap(pVM, GCPhys, pvNewR3, X86_PAGE_SIZE, fPageProt, pu2State);
     4450        AssertLogRelMsgRC(rc, ("NEMHCNotifyPhysPageChanged: nemR3DarwinMap(,%p,%RGp,%RGp,) -> %Rrc\n",
     4451                          pvNewR3, GCPhys, X86_PAGE_SIZE, rc));
     4452    }
     4453    else
     4454        AssertReleaseFailed();
    44474455}
    44484456
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