mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-19 18:36:53 +02:00
kernel: explain a commit-limit failure at startup (#395)
When CreateFileMapping cannot reserve the guest backing store the log only carries the raw Win32 error, which gives no clue that the paging file is the thing to change. Print the size that was asked for and say so directly when the failure is ERROR_NO_SYSTEM_RESOURCES or ERROR_COMMITMENT_LIMIT.
This commit is contained in:
@@ -659,7 +659,16 @@ public:
|
||||
#endif
|
||||
ReserveGuestRegions();
|
||||
m_backing = new GuestBackingStore(backing_size);
|
||||
EXIT_IF(!m_backing->IsAvailable());
|
||||
if (!m_backing->IsAvailable()) {
|
||||
#if KYTY_PLATFORM == KYTY_PLATFORM_WINDOWS
|
||||
EXIT("could not reserve %" PRIu64 " MB for guest direct memory. Windows commits\n"
|
||||
"this up front, so the paging file is usually what needs to be larger.\n",
|
||||
backing_size / (1024U * 1024U));
|
||||
#else
|
||||
EXIT("could not reserve %" PRIu64 " MB for guest direct memory\n",
|
||||
backing_size / (1024U * 1024U));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
~GuestAddressSpace() {
|
||||
|
||||
Reference in New Issue
Block a user