]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Introduce {get,set}_host_state() helpers
authorQuentin Perret <qperret@google.com>
Wed, 16 Apr 2025 15:26:44 +0000 (15:26 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 28 Apr 2025 08:23:46 +0000 (09:23 +0100)
commitba5b2e5b9dff5ba14940e1525f6e3a595f012466
treed1a48a9f9ba497e7644b55c07e62be9d5830bf48
parentcd4b039165a5e709d0d599e207709d73141a8bed
KVM: arm64: Introduce {get,set}_host_state() helpers

Instead of directly accessing the host_state member in struct hyp_page,
introduce static inline accessors to do it. The future hyp_state member
will follow the same pattern as it will need some logic in the accessors.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20250416152648.2982950-5-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/include/nvhe/memory.h
arch/arm64/kvm/hyp/nvhe/mem_protect.c
arch/arm64/kvm/hyp/nvhe/setup.c