libkernel: PS5X360 (PPSA50011) stops on a fixed sceKernelReserveVirtualRange below 0x200000000 (Linux: outside the guest address space arena; Windows: VirtualAlloc fixed failed) #10143
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-23T10:43:25Z.
What happens
PS5X360 (PPSA50011, v1.0.2, a Xenia Canary port, source) stops during emulator setup on both host OSes, on a fixed
sceKernelReserveVirtualRangebelow0x200000000:mainb3e42bd1eb, lavapipe, Ubuntu 24.04 container), 5.3 s: This is the arena check inMapPlaced(DirectMemory.cpp,#if defined(__linux__)). With the address added to that message in a local build, the request is0x10000+0x150000with flags0x10(fixed).main513ca7e558, RTX 3080, Windows 11 26200), 11.1 s:[memory]lines are printed only after a mapping succeeds, so the address isn't in the trace, but the sequence before it is the same as on Linux.Why the title asks for these addresses
In the title's
platform/ps5/memory_ps5.cpp(Reserve), when the kernel moves a reservation hint and the wanted range ends below 4 GiB, the title checks the range withsceKernelVirtualQueryand then asks for it again withsceKernelReserveVirtualRange(&at, bytes, 0x10, 0x4000). If that call returns non-zero,Reservereturnsnullptr, so the title expects a failure code, not a fault:The file's header says it was measured on hardware (FW 13.60). The port also moves Xenia's code cache below 2 GiB on the console (
tools/prepare.py): "The console loads the title's libc at 0x80000000 ... the indirection table and the generated code move below 2 GiB, near the title's own code". Its generated code is at0x40000000and its indirection table at0x80000000 - 0x30000000.A local experiment
With
DoReserveVirtualreturningSCE_KERNEL_ERROR_EINVALfor a fixed request outside the arena (local only, Linux, lavapipe), the title gets past this stop and runs 25.8 s:0x150000-byte allocations at every 64 KiB from0x10000upward. Each fails and the title moves on ([X360] MEMORY alloc-fixed address=... result=ffffffff).main returned 4):Possible directions
SCE_KERNEL_ERROR_EINVALorENOMEM?) from fixed reservations and mappings the host can't place, so the title's fallback runs instead of an abort. That alone doesn't get PS5X360 past setup.0x200000000be placed when the host range is free (the title needs0x40000000+0x10000000and0x50000000+0x20000000at least). On Linux that range is normally free above the executable at0x400000; on Windows the executable is at0x140000000by default.Is (2) in scope for the arena, or should it start with (1)? I don't know what range the console allows for fixed reservations below
0x200000000, beyond what the title's comments say.