Fix DLSS and FSR crash: vkCreateDevice ErrorInitializationFailed #2274

Open
github-bot wants to merge 5 commits from github-bot/gh-2274 into main AGit
Owner

@⁠Ekt0re on GitHub · 2026-11-14 15:16 UTC · original
Ekt0re:fix-dlss-virtualAlloc → main · +393 −81 · 6 files · 5 commits · draft

Fix vkCreateDevice crash (ErrorInitializationFailed) with DLSS or FSR via two-phase guest address space reservation

Description

This PR fixes the immediate crash at startup when DLSS or FSR is enabled (--pssr-upscaler DLSS), which failed with:

vkCreateDevice failed: ErrorInitializationFailed (-3)
in src/graphics/host_gpu/vulkanCommon.cpp:122

The guest address space reservation is now split into two phases, so that the NVIDIA driver can create the Vulkan device before the entire virtual address space is occupied by placeholders.

Reference: original issue "DLSS and FSR crashes the PS5 Pro game on startup" (RTX 4070 Ti, driver 621.24, Windows 11).

Root cause

1. The original crash (vkCreateDevice → -3)

  • DLSS and FSR requires 4 extensions on the Vulkan device: VK_NVX_binary_import, VK_NVX_image_view_handle, VK_KHR_buffer_device_address, VK_KHR_push_descriptor.
  • VK_NVX_binary_import imports CUDA code into the driver. When it is requested in vkCreateDevice, the CUDA runtime embedded in the NVIDIA driver reserves roughly 52 GB of virtual address space for UVA (Unified Virtual Addressing).
  • In the original code, KytyPS5 reserved the entire guest address space up front (~1.5 TB, via VirtualAlloc2 with MEM_RESERVE_PLACEHOLDER), leaving the driver with no 64-bit address space available in its preferred area. As a result, vkCreateDevice failed.

2. The cascading error (address != DriverDmemBase)

Simply moving the whole reservation after Graphics::Initialize() led to a second problem:

  • the NVIDIA driver allocated its 52 GB from 0x0500000000 to 0x1200000000, overlapping the fixed address of Gen5Driver (DriverDmemBase = 0x0fe0000000, 63.5 GB);
  • Gen5Driver::Initialize() found the range occupied, its DMEM was relocated to 0x1200000000, and the address != DriverDmemBase assert failed.

Solution: two-phase reservation

In the PS5 memory model, all fixed and critical addresses (e.g. DriverDmemBase and the pthread thread stacks) live in Region 0 (0x40000 – 0x1000000000, the first 64 GB). Regions 1 and 2 (64 GB to 1 TB) are dynamic and used for free-address allocations.

Phase 1: Memory::Initialize()

  • Only Region 0 ([0x40000, 0x1000000000]) is reserved immediately.
  • DriverDmemBase and the system addresses stay protected from any host DLL or driver.
  • The high address space is left free for the NVIDIA driver.

Phase 2: window and Vulkan device creation

  • vkCreateDevice succeeds with all the DLSS and FSR extensions.
  • NVIDIA allocates its 52 GB beyond the 64 GB threshold (e.g. 0x1100000000), with no conflicts.

Phase 3: ReserveGuestAddressSpace() before Gen5Driver::Initialize()

  • Called in agc.cpp right after GPU initialization. It reserves Regions 1 and 2 and runs the consistency checks (SelfTest, SelfTestSub64SharedPlaceholderAlias).
  • Gen5Driver::Initialize() maps its DMEM exactly at DriverDmemBase = 0x0fe0000000.

Main changes

File Change
src/kernel/memoryAddressSpace.inc ReserveGuestRegions() now accepts a region range [first_region, last_region). The constructor reserves only Region 0. New ReserveRemainingGuestRegions() method for Regions 1–2. Updated the Windows branch (VirtualAlloc2), the occupied handling, and the Linux/POSIX branch (mmap).
src/kernel/memory.cpp / memory.h Initialize() no longer runs the self-tests. New ReserveGuestAddressSpace() function that completes the reservation and runs SelfTest and SelfTestSub64SharedPlaceholderAlias.
src/libs/agc.cpp Call to ReserveGuestAddressSpace() after InitializeGpu() and before Gen5Driver::Initialize().
src/emulator.cpp Comment documenting the initialization order and the reason for it.

Testing

DLSS mode (--trinity --pssr-upscaler DLSS --dlss-folder C:\DLSS):

Initialized: Memory
Initialized: FileSystem
Initialized: Controller
Initialized: Audio
DLSS: upscaling PSSR with the model in C:\DLSS
Vulkan pipeline cache: disabled (non-Release build)
Initialized: Graphics
Title ID: PPSA27950
Shaders: VS 0 | PS 0 | CS 1 | GS 0 | LS 0 | HS 0 | TES 0
...
Shaders: VS 0 | PS 1 | CS 4 | GS 0 | LS 0 | HS 0 | TES 0

The game starts normally, and DLSS and FSR compiles and runs graphics and compute shaders without crashing. Tested on several games, both PS5 Pro and non-Pro.

Linear mode (--trinity --pssr-upscaler Linear): no regressions; starts and runs normally.
FSR mode: no regressions; starts and runs normally.

Notes for reviewers

  • Behavior is unchanged for users who don't use DLSS: the full guest address space is reserved before Gen5Driver::Initialize(), as before.
  • The non-Windows (mmap) branch follows the same phased logic, but has not been tested on Linux or Mac.
  • Any code that accesses Regions 1–2 before ReserveGuestAddressSpace() (i.e. before the end of InitializeGpu()) will not find the reservation already in place. No such cases are currently known.

AI Use

Claude AI was used to investigate the root cause of the problem and to write this documentation. Testing and code review were done by me personally.

**@⁠Ekt0re** on GitHub · 2026-11-14 15:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2274) `Ekt0re:fix-dlss-virtualAlloc` → `main` · +393 −81 · 6 files · 5 commits · draft # Fix `vkCreateDevice` crash (ErrorInitializationFailed) with DLSS or FSR via two-phase guest address space reservation ## Description This PR fixes the immediate crash at startup when DLSS or FSR is enabled (`--pssr-upscaler DLSS`), which failed with: ``` vkCreateDevice failed: ErrorInitializationFailed (-3) in src/graphics/host_gpu/vulkanCommon.cpp:122 ``` The guest address space reservation is now split into two phases, so that the NVIDIA driver can create the Vulkan device before the entire virtual address space is occupied by placeholders. Reference: original issue "DLSS and FSR crashes the PS5 Pro game on startup" (RTX 4070 Ti, driver 621.24, Windows 11). ## Root cause ### 1. The original crash (`vkCreateDevice` → `-3`) - DLSS and FSR requires 4 extensions on the Vulkan device: `VK_NVX_binary_import`, `VK_NVX_image_view_handle`, `VK_KHR_buffer_device_address`, `VK_KHR_push_descriptor`. - `VK_NVX_binary_import` imports CUDA code into the driver. When it is requested in `vkCreateDevice`, the CUDA runtime embedded in the NVIDIA driver reserves roughly **52 GB** of virtual address space for UVA (Unified Virtual Addressing). - In the original code, KytyPS5 reserved the entire guest address space up front (~1.5 TB, via `VirtualAlloc2` with `MEM_RESERVE_PLACEHOLDER`), leaving the driver with no 64-bit address space available in its preferred area. As a result, `vkCreateDevice` failed. ### 2. The cascading error (`address != DriverDmemBase`) Simply moving the whole reservation after `Graphics::Initialize()` led to a second problem: - the NVIDIA driver allocated its 52 GB from `0x0500000000` to `0x1200000000`, overlapping the fixed address of `Gen5Driver` (`DriverDmemBase = 0x0fe0000000`, 63.5 GB); - `Gen5Driver::Initialize()` found the range occupied, its DMEM was relocated to `0x1200000000`, and the `address != DriverDmemBase` assert failed. ## Solution: two-phase reservation In the PS5 memory model, all fixed and critical addresses (e.g. `DriverDmemBase` and the pthread thread stacks) live in **Region 0** (`0x40000` – `0x1000000000`, the first 64 GB). Regions 1 and 2 (64 GB to 1 TB) are dynamic and used for free-address allocations. **Phase 1: `Memory::Initialize()`** - Only Region 0 (`[0x40000, 0x1000000000]`) is reserved immediately. - `DriverDmemBase` and the system addresses stay protected from any host DLL or driver. - The high address space is left free for the NVIDIA driver. **Phase 2: window and Vulkan device creation** - `vkCreateDevice` succeeds with all the DLSS and FSR extensions. - NVIDIA allocates its 52 GB beyond the 64 GB threshold (e.g. `0x1100000000`), with no conflicts. **Phase 3: `ReserveGuestAddressSpace()` before `Gen5Driver::Initialize()`** - Called in `agc.cpp` right after GPU initialization. It reserves Regions 1 and 2 and runs the consistency checks (`SelfTest`, `SelfTestSub64SharedPlaceholderAlias`). - `Gen5Driver::Initialize()` maps its DMEM exactly at `DriverDmemBase = 0x0fe0000000`. ## Main changes | File | Change | |---|---| | `src/kernel/memoryAddressSpace.inc` | `ReserveGuestRegions()` now accepts a region range `[first_region, last_region)`. The constructor reserves only Region 0. New `ReserveRemainingGuestRegions()` method for Regions 1–2. Updated the Windows branch (`VirtualAlloc2`), the `occupied` handling, and the Linux/POSIX branch (`mmap`). | | `src/kernel/memory.cpp` / `memory.h` | `Initialize()` no longer runs the self-tests. New `ReserveGuestAddressSpace()` function that completes the reservation and runs `SelfTest` and `SelfTestSub64SharedPlaceholderAlias`. | | `src/libs/agc.cpp` | Call to `ReserveGuestAddressSpace()` after `InitializeGpu()` and before `Gen5Driver::Initialize()`. | | `src/emulator.cpp` | Comment documenting the initialization order and the reason for it. | ## Testing **DLSS mode** (`--trinity --pssr-upscaler DLSS --dlss-folder C:\DLSS`): ``` Initialized: Memory Initialized: FileSystem Initialized: Controller Initialized: Audio DLSS: upscaling PSSR with the model in C:\DLSS Vulkan pipeline cache: disabled (non-Release build) Initialized: Graphics Title ID: PPSA27950 Shaders: VS 0 | PS 0 | CS 1 | GS 0 | LS 0 | HS 0 | TES 0 ... Shaders: VS 0 | PS 1 | CS 4 | GS 0 | LS 0 | HS 0 | TES 0 ``` The game starts normally, and DLSS and FSR compiles and runs graphics and compute shaders without crashing. Tested on several games, both PS5 Pro and non-Pro. **Linear mode** (`--trinity --pssr-upscaler Linear`): no regressions; starts and runs normally. **FSR mode**: no regressions; starts and runs normally. ## Notes for reviewers - Behavior is unchanged for users who don't use DLSS: the full guest address space is reserved before `Gen5Driver::Initialize()`, as before. - The non-Windows (`mmap`) branch follows the same phased logic, but has not been tested on Linux or Mac. - Any code that accesses Regions 1–2 before `ReserveGuestAddressSpace()` (i.e. before the end of `InitializeGpu()`) will not find the reservation already in place. No such cases are currently known. ## AI Use Claude AI was used to investigate the root cause of the problem and to write this documentation. Testing and code review were done by me personally.
Reserve only fixed system ranges during memory setup, then reserve remaining guest regions after Vulkan/NGX initialization. This avoids host address-space conflicts while ensuring guest mappings are ready before driver startup.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:17:51 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-14 15:25 UTC · original · edited 2026-11-19 20:27 UTC

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

GuestAddressSpace now reserves region 0 during construction and reserves regions 1 and 2 through a separate call. The memory API performs that reservation before running address-space self-tests. AGC calls the API after GPU initialization and before native driver startup. Emulator comments describe the initialization order and the stated NGX failure condition. Tests cover aligned free-range calculation, preservation of an existing mapping, and reservation before test execution.

Suggested reviewers: nmzik, thecruz

Change: Bug fix

Merge Risk: Minimal · up to a0da8

The change defers reservation of the upper guest address regions until after Vulkan device creation, which addresses the reported DLSS and FSR startup failure. No outstanding defects were found in the reviewed changes. The non-Windows reservation paths were not tested on Linux or Mac, but this does not currently block merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the specific crash (vkCreateDevice ErrorInitializationFailed) and the affected features (DLSS and FSR). The changeset splits guest address space reservation into phases, which addresse…
Description check Passed The description explains the crash, its root cause, and the two-phase reservation fix. It lists the changed files and the testing done. This matches the changeset in src/kernel/memoryAddressSpace.inc,…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the specific crash (vkCreateDevice ErrorInitializationFailed) and the affected features (DLSS and FSR). The changeset splits guest address space reservation into phases, which addresses that crash. The title does not name the fix mechanism, but it describes the main change from the developer's perspective.

Full details: Description check

Explanation

The description explains the crash, its root cause, and the two-phase reservation fix. It lists the changed files and the testing done. This matches the changeset in src/kernel/memoryAddressSpace.inc, src/kernel/memory.cpp, src/kernel/memory.h, src/libs/agc.cpp, and src/emulator.cpp.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between cfcedef18f and a0da859fbb.

Files selected for processing: 4

  • src/kernel/memory.cpp
  • src/kernel/memory.h
  • src/libs/agc.cpp
  • tests/VirtualMemoryAllocationTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-14 15:25 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2274#issuecomment-6879679046) · edited 2026-11-19 20:27 UTC <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/2274?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- This is an auto-generated comment: review paused by coderabbit.ai --> > [!NOTE] > ## Reviews paused > > It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the `reviews.auto_review.auto_pause_after_reviewed_commits` setting. > > - Last reviewed commit: a0da859fbba2c7713de00bacb885e647e9d94256 > > Use the following commands to manage reviews: > - `@coderabbitai resume` to resume automatic reviews. > - `@coderabbitai review` to trigger a single review. > > Use the checkboxes below for quick actions: > - [ ] <!-- {"checkboxId":"7f6cc2e2-2e4e-497a-8c31-c9e4573e93d1"} --> Resume reviews > - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger review <!-- end of auto-generated comment: review paused by coderabbit.ai --> <!-- recent_review_status_start --> No actionable comments were generated in the recent review. <!-- recent_review_status_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> <br> GuestAddressSpace now reserves region 0 during construction and reserves regions 1 and 2 through a separate call. The memory API performs that reservation before running address-space self-tests. AGC calls the API after GPU initialization and before native driver startup. Emulator comments describe the initialization order and the stated NGX failure condition. Tests cover aligned free-range calculation, preservation of an existing mapping, and reservation before test execution. **Suggested reviewers:** `nmzik`, `thecruz` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"a0da859fbba2c7713de00bacb885e647e9d94256" --> <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>a0da8</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `a0da8` --> <!-- final_review_risk_coverage:{"sourceCommitId":"a0da859fbba2c7713de00bacb885e647e9d94256","coveredCommitId":"a0da859fbba2c7713de00bacb885e647e9d94256","kind":"reviewed"} --> The change defers reservation of the upper guest address regions until after Vulkan device creation, which addresses the reported DLSS and FSR startup failure. No outstanding defects were found in the reviewed changes. The non-Windows reservation paths were not tested on Linux or Mac, but this does not currently block merging. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary> <dl> <dd> <br> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title names the specific crash (vkCreateDevice ErrorInitializationFailed) and the affected features (DLSS and FSR). The changeset splits guest address space reservation into phases, which addresse… | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description explains the crash, its root cause, and the two-phase reservation fix. It lists the changed files and the testing done. This matches the changeset in src/kernel/memoryAddressSpace.inc,… | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **Explanation** The title names the specific crash (vkCreateDevice ErrorInitializationFailed) and the affected features (DLSS and FSR). The changeset splits guest address space reservation into phases, which addresses that crash. The title does not name the fix mechanism, but it describes the main change from the developer's perspective. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **Explanation** The description explains the crash, its root cause, and the two-phase reservation fix. It lists the changed files and the testing done. This matches the changeset in src/kernel/memoryAddressSpace.inc, src/kernel/memory.cpp, src/kernel/memory.h, src/libs/agc.cpp, and src/emulator.cpp. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2274)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> <br> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end --> <!-- recent_review_start --> <h6> <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <br> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/5ad27cdd1aeb48a7885b1a71d5a8321590b31ecd/.coderabbit.yaml>) - **Commit**: [5ad27cd](<https://github.com/KytyPS5/KytyPS5/commit/5ad27cdd1aeb48a7885b1a71d5a8321590b31ecd>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `ce7e2457-ff02-4745-bad0-80808f1f6976` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between cfcedef18f8bfa96525d7c3b3b6b2442563ad094 and a0da859fbba2c7713de00bacb885e647e9d94256. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 4</strong></summary> <dl> <dd> <br> * `src/kernel/memory.cpp` * `src/kernel/memory.h` * `src/libs/agc.cpp` * `tests/VirtualMemoryAllocationTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- recent_review_end -->
@ -968,2 +967,4 @@
g_pooled_memory = std::make_unique<PooledMemory>();
g_virtual_ranges = std::make_unique<VirtualRanges>();
// SelfTest and SelfTestSub64SharedPlaceholderAlias require the guest regions to be
// reserved first; they are therefore deferred to ReserveGuestAddressSpace().
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-14 15:25 UTC · original · edited 2026-11-14 16:14 UTC

Major · Functional Correctness · Quick win

Update the memory-test harness for two-phase initialization.

tests/VirtualMemoryAllocationTests.cpp initializes Memory::Lifecycle without calling ReserveGuestAddressSpace(). Its pool-reservation test then requests a range at or above 0x1000000000.

With only Region 0 reserved, KernelMemoryPoolReserve delegates to KernelReserveVirtualRange, and FindGuestFreeRange returns zero. The call returns KERNEL_ERROR_ENOMEM, so CheckOk fails.

Call ReserveGuestAddressSpace() after Memory initialization in the host-test harness, before tests use Regions 1–2. This does not require GPU initialization in that harness.

✅ Addressed in commit 7cea4b2

**@⁠coderabbitai[bot]** on GitHub · 2026-11-14 15:25 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2274#discussion_r4574293573) · edited 2026-11-14 16:14 UTC <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/major-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Major** · **Functional Correctness** · **Quick win** **Update the memory-test harness for two-phase initialization.** `tests/VirtualMemoryAllocationTests.cpp` initializes `Memory::Lifecycle` without calling `ReserveGuestAddressSpace()`. Its pool-reservation test then requests a range at or above `0x1000000000`. With only Region 0 reserved, `KernelMemoryPoolReserve` delegates to `KernelReserveVirtualRange`, and `FindGuestFreeRange` returns zero. The call returns `KERNEL_ERROR_ENOMEM`, so `CheckOk` fails. Call `ReserveGuestAddressSpace()` after Memory initialization in the host-test harness, before tests use Regions 1–2. This does not require GPU initialization in that harness. <!-- fingerprinting:phantom:poseidon:wombat61 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:aecac72a5f1ad171545972b6 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit 7cea4b2
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-14 15:25 UTC · original · reviewed

Actionable comments posted: 1

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 3e226bff9d and 087d3b0dc1.

Files selected for processing: 5

  • src/emulator.cpp
  • src/kernel/memory.cpp
  • src/kernel/memory.h
  • src/kernel/memoryAddressSpace.inc
  • src/libs/agc.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-14 15:25 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2274#pullrequestreview-5905372937) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/3e226bff9d757cf973672979050d82d77e5a30ef/.coderabbit.yaml>) - **Commit**: [3e226bf](<https://github.com/KytyPS5/KytyPS5/commit/3e226bff9d757cf973672979050d82d77e5a30ef>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `d6005980-ac74-43ff-b6ed-8429c2ebff14` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 3e226bff9d757cf973672979050d82d77e5a30ef and 087d3b0dc1f48b32c385100cd6f5c8f1ed6cfe4b. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 5</summary> <dl> <dd> <br> * `src/emulator.cpp` * `src/kernel/memory.cpp` * `src/kernel/memory.h` * `src/kernel/memoryAddressSpace.inc` * `src/libs/agc.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=fe038bfe-2d19-4b08-8f69-3e82ee9d0bc9 attempt=d5dee963-2376-4669-accf-f64dc5f3763c batch=1/1 -->
@ -461,0 +592,4 @@
// [HOST_USER_MIN, HOST_USER_MAX] and kExtendedMemoryBase).
// Must be called after host GPU/DLSS initialization has completed.
// Returns true if the regions were newly reserved on this call.
bool ReserveRemainingGuestRegions() {
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-14 16:19 UTC · original · edited 2026-11-14 18:04 UTC

Major · Stability & Availability · Heavy lift

Delayed Region 1 reservation can overwrite the macOS backing alias.

The constructor now creates the backing alias before ReserveRemainingGuestRegions() reserves Region 1. On Apple x86_64, the alias uses a null address hint. The kernel can therefore place it inside [0x7000000000, 0xfbffffffff], which Region 1 covers. The non-Linux POSIX loop then maps the whole region with MAP_FIXED, and that call silently replaces the overlapping alias pages with PROT_NONE. Later access through the alias can fault.

On a target without KYTY_LINKED_GUEST_ADDRESS_SPACE, the same overlap makes the hinted mmap return a different address. The code then unmaps the result and terminates through EXIT.

The Linux branch scans existing mappings first, so it does not have this problem. The POSIX branch has no equivalent check.

Do not fix this by reserving Region 1 earlier. That would bring back the vkCreateDevice failure this change removes. The inspected code does not establish a safe localized correction, so this comment gives no patch. A remedy needs to keep the alias out of Regions 1–2 during the gap, or add an occupancy check to the POSIX path.

✅ Addressed in commit a2013e6

**@⁠coderabbitai[bot]** on GitHub · 2026-11-14 16:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2274#discussion_r4574590400) · edited 2026-11-14 18:04 UTC <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/major-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Major** · **Stability & Availability** · **Heavy lift** **Delayed Region 1 reservation can overwrite the macOS backing alias.** The constructor now creates the backing alias before `ReserveRemainingGuestRegions()` reserves Region 1. On Apple x86_64, the alias uses a null address hint. The kernel can therefore place it inside `[0x7000000000, 0xfbffffffff]`, which Region 1 covers. The non-Linux POSIX loop then maps the whole region with `MAP_FIXED`, and that call silently replaces the overlapping alias pages with `PROT_NONE`. Later access through the alias can fault. On a target without `KYTY_LINKED_GUEST_ADDRESS_SPACE`, the same overlap makes the hinted `mmap` return a different address. The code then unmaps the result and terminates through `EXIT`. The Linux branch scans existing mappings first, so it does not have this problem. The POSIX branch has no equivalent check. Do not fix this by reserving Region 1 earlier. That would bring back the `vkCreateDevice` failure this change removes. The inspected code does not establish a safe localized correction, so this comment gives no patch. A remedy needs to keep the alias out of Regions 1–2 during the gap, or add an occupancy check to the POSIX path. <!-- fingerprinting:phantom:poseidon:wombat61 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:c4b100eaa1bfa568b517a7e7 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit a2013e6
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-14 16:19 UTC · original · reviewed

Actionable comments posted: 1

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 087d3b0dc1 and 7cea4b2b1e.

Files selected for processing: 3

  • src/kernel/memory.cpp
  • src/kernel/memoryAddressSpace.inc
  • tests/VirtualMemoryAllocationTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-14 16:19 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2274#pullrequestreview-5905751297) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/3e226bff9d757cf973672979050d82d77e5a30ef/.coderabbit.yaml>) - **Commit**: [3e226bf](<https://github.com/KytyPS5/KytyPS5/commit/3e226bff9d757cf973672979050d82d77e5a30ef>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `c84b1ab8-f290-4941-98ef-aa1e15b87416` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 087d3b0dc1f48b32c385100cd6f5c8f1ed6cfe4b and 7cea4b2b1e82d10778d10fe15211e338af5f1ba5. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 3</summary> <dl> <dd> <br> * `src/kernel/memory.cpp` * `src/kernel/memoryAddressSpace.inc` * `tests/VirtualMemoryAllocationTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=f67666c5-28a8-4f5f-881c-14698bcfefdb attempt=c58c3455-a0a8-4c50-b5bc-36d68662a3f0 batch=1/1 -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-14 18:11 UTC · original · edited 2026-11-14 18:45 UTC
On src/kernel/memory.h line 220 (outdated):

@@ -213,6 +216,9 @@ bool ProtectGuestHostMemory(uint64_t vaddr, uint64_t size, Common::VirtualMemory
 bool FreeGuestMemory(uint64_t vaddr, uint64_t size);
 
 #if defined(KYTY_VIRTUAL_MEMORY_ALLOCATION_TESTS)
+#include <utility>
+#include <vector>

Major · Functional Correctness · Quick win

Move the standard-library includes above the namespace.

The <utility> and <vector> includes sit inside Libs::LibKernel::Memory. Standard headers must not be included inside a namespace. In the allocation-test build, memory.cpp includes kernel/memory.h before any standard header, so these includes are the first occurrence there. Their declarations can then land in Libs::LibKernel::Memory, and the include guards block a correct global inclusion. Later std:: references in that file can then fail to compile. The break affects only the virtual_memory_allocation_tests build, where the macro is defined.

Move both includes above the namespace and keep the test guard:

Suggested fix

 #include "common/virtualMemory.h"
+#if defined(KYTY_VIRTUAL_MEMORY_ALLOCATION_TESTS)
+#include <utility>
+#include <vector>
+#endif
-#if defined(KYTY_VIRTUAL_MEMORY_ALLOCATION_TESTS)
-#include <utility>
-#include <vector>
 #endif

✅ Addressed in commit cfcedef

**@⁠coderabbitai[bot]** on GitHub · 2026-11-14 18:11 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2274#discussion_r4575015946) · edited 2026-11-14 18:45 UTC On `src/kernel/memory.h` line 220 (outdated): ```diff @@ -213,6 +216,9 @@ bool ProtectGuestHostMemory(uint64_t vaddr, uint64_t size, Common::VirtualMemory bool FreeGuestMemory(uint64_t vaddr, uint64_t size); #if defined(KYTY_VIRTUAL_MEMORY_ALLOCATION_TESTS) +#include <utility> +#include <vector> ``` <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/major-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Major** · **Functional Correctness** · **Quick win** **Move the standard-library includes above the namespace.** The `<utility>` and `<vector>` includes sit inside `Libs::LibKernel::Memory`. Standard headers must not be included inside a namespace. In the allocation-test build, `memory.cpp` includes `kernel/memory.h` before any standard header, so these includes are the first occurrence there. Their declarations can then land in `Libs::LibKernel::Memory`, and the include guards block a correct global inclusion. Later `std::` references in that file can then fail to compile. The break affects only the `virtual_memory_allocation_tests` build, where the macro is defined. Move both includes above the namespace and keep the test guard: <details> <summary>Suggested fix</summary> <dl> <dd> <br> ```diff #include "common/virtualMemory.h" +#if defined(KYTY_VIRTUAL_MEMORY_ALLOCATION_TESTS) +#include <utility> +#include <vector> +#endif ``` ```diff -#if defined(KYTY_VIRTUAL_MEMORY_ALLOCATION_TESTS) -#include <utility> -#include <vector> #endif ``` </dd> </dl> </details> <!-- fingerprinting:phantom:medusa:beignet55 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:9097c2b9dba5baff31ecc8cc --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit cfcedef
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-14 18:11 UTC · original · edited 2026-11-14 18:45 UTC
On tests/VirtualMemoryAllocationTests.cpp line 5994 (outdated):

@@ -5886,12 +5991,13 @@ int main(int argc, char** argv) {
 		RunTest(TestMemoryPoolMultiRangeDecommit);
 		RunTest(TestFragmentedPoolDecommitOnSmallStack);
 		// Memory callbacks remain registered for the rest of the process.
-		RunTest(TestAsanShadowLifetimeAcrossRangeEdits);
+		RunTest(TestAsanShadowUpdatesAcrossRangeEdits);

Major · Functional Correctness · Quick win

Restore the TestAsanShadowLifetimeAcrossRangeEdits call in the memory-bottleneck suite.

Line 5994 calls TestAsanShadowUpdatesAcrossRangeEdits, but no declaration or macro with that name exists in the checkout. The only definition is TestAsanShadowLifetimeAcrossRangeEdits. The undeclared identifier stops compilation of this translation unit, so the whole test executable fails to build. The Lifetime test also registers the memory callbacks that the following ASan tests rely on, so its call must remain.

If a separate Updates test is intended, add its definition before using the name. Otherwise, restore the existing identifier.

Suggested fix

 		// Memory callbacks remain registered for the rest of the process.
-		RunTest(TestAsanShadowUpdatesAcrossRangeEdits);
+		RunTest(TestAsanShadowLifetimeAcrossRangeEdits);
 		RunTest(TestAsanAliasedPhysicalRelease);
 		RunTest(TestAsanPartialFreeAcrossSharedShadowBoundary);
Committable suggestion

IMPORTANT
Review the replacement and indentation, then test before committing.

		RunTest(TestAsanShadowLifetimeAcrossRangeEdits);

✅ Addressed in commit cfcedef

**@⁠coderabbitai[bot]** on GitHub · 2026-11-14 18:11 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2274#discussion_r4575015951) · edited 2026-11-14 18:45 UTC On `tests/VirtualMemoryAllocationTests.cpp` line 5994 (outdated): ```diff @@ -5886,12 +5991,13 @@ int main(int argc, char** argv) { RunTest(TestMemoryPoolMultiRangeDecommit); RunTest(TestFragmentedPoolDecommitOnSmallStack); // Memory callbacks remain registered for the rest of the process. - RunTest(TestAsanShadowLifetimeAcrossRangeEdits); + RunTest(TestAsanShadowUpdatesAcrossRangeEdits); ``` <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/major-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Major** · **Functional Correctness** · **Quick win** **Restore the `TestAsanShadowLifetimeAcrossRangeEdits` call in the memory-bottleneck suite.** Line 5994 calls `TestAsanShadowUpdatesAcrossRangeEdits`, but no declaration or macro with that name exists in the checkout. The only definition is `TestAsanShadowLifetimeAcrossRangeEdits`. The undeclared identifier stops compilation of this translation unit, so the whole test executable fails to build. The Lifetime test also registers the memory callbacks that the following ASan tests rely on, so its call must remain. If a separate Updates test is intended, add its definition before using the name. Otherwise, restore the existing identifier. <details> <summary>Suggested fix</summary> <dl> <dd> <br> ```diff // Memory callbacks remain registered for the rest of the process. - RunTest(TestAsanShadowUpdatesAcrossRangeEdits); + RunTest(TestAsanShadowLifetimeAcrossRangeEdits); RunTest(TestAsanAliasedPhysicalRelease); RunTest(TestAsanPartialFreeAcrossSharedShadowBoundary); ``` </dd> </dl> </details> <!-- suggestion_start --> <details> <summary>Committable suggestion</summary> <dl> <dd> <br> > <picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-warning.svg" width="20" height="20" align="absmiddle" alt=""></picture> **IMPORTANT** > Review the replacement and indentation, then test before committing. ```suggestion RunTest(TestAsanShadowLifetimeAcrossRangeEdits); ``` </dd> </dl> </details> <!-- suggestion_end --> <!-- fingerprinting:phantom:medusa:wombat61 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:45c0a5aa92e1371ed0f75776 --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit cfcedef
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-14 18:11 UTC · original · reviewed

Actionable comments posted: 2

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7cea4b2b1e and a2013e6666.

Files selected for processing: 4

  • src/kernel/memory.cpp
  • src/kernel/memory.h
  • src/kernel/memoryAddressSpace.inc
  • tests/VirtualMemoryAllocationTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-14 18:11 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2274#pullrequestreview-5906258601) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 2** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/3e226bff9d757cf973672979050d82d77e5a30ef/.coderabbit.yaml>) - **Commit**: [3e226bf](<https://github.com/KytyPS5/KytyPS5/commit/3e226bff9d757cf973672979050d82d77e5a30ef>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `8c22cc9c-3427-47fb-a66f-a378db76b632` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 7cea4b2b1e82d10778d10fe15211e338af5f1ba5 and a2013e6666374faca07b07bfad64d940f5a5416d. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 4</summary> <dl> <dd> <br> * `src/kernel/memory.cpp` * `src/kernel/memory.h` * `src/kernel/memoryAddressSpace.inc` * `tests/VirtualMemoryAllocationTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=f50f7a5d-214e-4680-84f7-9a3948bfec3b attempt=058bdcfe-a39a-47b6-8679-93d22425272d batch=1/1 -->
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2274/head:github-bot/gh-2274'
git switch 'github-bot/gh-2274'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2274'
git switch 'github-bot/gh-2274'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2274'
git switch 'github-bot/gh-2274'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2274'
git switch 'main'
git merge --squash 'github-bot/gh-2274'
git switch 'main'
git merge --ff-only 'github-bot/gh-2274'
git switch 'main'
git merge 'github-bot/gh-2274'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.