KVM: arm64: Generate hyp_constants.h for the host
authorWill Deacon <will@kernel.org>
Thu, 2 Dec 2021 17:10:47 +0000 (17:10 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 6 Dec 2021 08:37:03 +0000 (08:37 +0000)
commited4ed15d571065eb66ea718d7f6050553586417d
tree433e41374a3f48e1ef18c7008337c930da99ad5e
parent7e04f05984dd03edad7daaa4fa97958b7133c62a
KVM: arm64: Generate hyp_constants.h for the host

In order to avoid exposing hypervisor (EL2) data structures directly to
the host, generate hyp_constants.h to provide constants such as structure
sizes to the host without dragging in the definitions themselves.

Signed-off-by: Will Deacon <will@kernel.org>
Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211202171048.26924-3-will@kernel.org
arch/arm64/kvm/.gitignore [new file with mode: 0644]
arch/arm64/kvm/Makefile
arch/arm64/kvm/hyp/hyp-constants.c [new file with mode: 0644]