Skip to content

Story 6.2 — Stage-2 translation #36

Description

@Abhinkop

Goal

Set up a stage-2 page table so that guest physical memory accesses are translated and controlled by the hypervisor.

Tasks

  • Implement s2_map_page(ipa, pa, perms): walk/build stage-2 table (IPA → PA)
  • Configure VTCR_EL2: T0SZ, SL0, granule, IPS
  • Configure VTTBR_EL2: stage-2 root PA, VMID=1
  • Identity-map all RAM in stage-2 (IPA == PA) so the EL1 kernel boots unmodified
  • Enable stage-2: set HCR_EL2.VM=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions