]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Add basic support for POR_EL2
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Oct 2024 14:53:39 +0000 (15:53 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 02:44:22 +0000 (02:44 +0000)
commit5970e9903f03560ce9829297e302463acdc26bc0
treed21d877b304105c5b7aea591083b99453ceba1ff
parent26e89dccdf6328b608baa35d84cc36d915769f50
KVM: arm64: Add basic support for POR_EL2

S1POE support implies support for POR_EL2, which  we provide by

- adding it to the vcpu_sysreg enum
- advertising it as mapped to its EL1 counterpart in get_el2_to_el1_mapping
- wiring it in the sys_reg_desc table with the correct visibility
- handling POR_EL1 in __vcpu_{read,write}_sys_reg_from_cpu()

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241023145345.1613824-32-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/sys_regs.c