hyp-constants.c 317 B

12345678910111213
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. #include <linux/kbuild.h>
  3. #include <nvhe/memory.h>
  4. #include <nvhe/pkvm.h>
  5. int main(void)
  6. {
  7. DEFINE(STRUCT_HYP_PAGE_SIZE, sizeof(struct hyp_page));
  8. DEFINE(PKVM_HYP_VM_SIZE, sizeof(struct pkvm_hyp_vm));
  9. DEFINE(PKVM_HYP_VCPU_SIZE, sizeof(struct pkvm_hyp_vcpu));
  10. return 0;
  11. }