hyp-constants.c 440 B

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