0001
0002 #ifndef BOOT_UV_H
0003 #define BOOT_UV_H
0004
0005 #if IS_ENABLED(CONFIG_KVM)
0006 unsigned long adjust_to_uv_max(unsigned long limit);
0007 void sanitize_prot_virt_host(void);
0008 #else
0009 static inline unsigned long adjust_to_uv_max(unsigned long limit)
0010 {
0011 return limit;
0012 }
0013 static inline void sanitize_prot_virt_host(void) {}
0014 #endif
0015
0016 #if defined(CONFIG_PROTECTED_VIRTUALIZATION_GUEST) || IS_ENABLED(CONFIG_KVM)
0017 void uv_query_info(void);
0018 #else
0019 static inline void uv_query_info(void) {}
0020 #endif
0021
0022 #endif