uv.h 525 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef BOOT_UV_H
  3. #define BOOT_UV_H
  4. #if IS_ENABLED(CONFIG_KVM)
  5. unsigned long adjust_to_uv_max(unsigned long limit);
  6. void sanitize_prot_virt_host(void);
  7. #else
  8. static inline unsigned long adjust_to_uv_max(unsigned long limit)
  9. {
  10. return limit;
  11. }
  12. static inline void sanitize_prot_virt_host(void) {}
  13. #endif
  14. #if defined(CONFIG_PROTECTED_VIRTUALIZATION_GUEST) || IS_ENABLED(CONFIG_KVM)
  15. void uv_query_info(void);
  16. #else
  17. static inline void uv_query_info(void) {}
  18. #endif
  19. #endif /* BOOT_UV_H */