mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
ed4ed15d57
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
11 lines
180 B
C
11 lines
180 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#include <linux/kbuild.h>
|
|
#include <nvhe/memory.h>
|
|
|
|
int main(void)
|
|
{
|
|
DEFINE(STRUCT_HYP_PAGE_SIZE, sizeof(struct hyp_page));
|
|
return 0;
|
|
}
|