xref: /openbmc/linux/arch/s390/boot/uv.h (revision 57ad19bc)
1c5cf5054SAlexander Egorenkov /* SPDX-License-Identifier: GPL-2.0 */
2c5cf5054SAlexander Egorenkov #ifndef BOOT_UV_H
3c5cf5054SAlexander Egorenkov #define BOOT_UV_H
4c5cf5054SAlexander Egorenkov 
5c5cf5054SAlexander Egorenkov #if IS_ENABLED(CONFIG_KVM)
6*57ad19bcSAlexander Gordeev unsigned long adjust_to_uv_max(unsigned long limit);
742c89439SAlexander Egorenkov void sanitize_prot_virt_host(void);
8c5cf5054SAlexander Egorenkov #else
adjust_to_uv_max(unsigned long limit)9*57ad19bcSAlexander Gordeev static inline unsigned long adjust_to_uv_max(unsigned long limit)
10*57ad19bcSAlexander Gordeev {
11*57ad19bcSAlexander Gordeev 	return limit;
12*57ad19bcSAlexander Gordeev }
sanitize_prot_virt_host(void)1342c89439SAlexander Egorenkov static inline void sanitize_prot_virt_host(void) {}
14c5cf5054SAlexander Egorenkov #endif
15c5cf5054SAlexander Egorenkov 
16c5cf5054SAlexander Egorenkov #if defined(CONFIG_PROTECTED_VIRTUALIZATION_GUEST) || IS_ENABLED(CONFIG_KVM)
17c5cf5054SAlexander Egorenkov void uv_query_info(void);
18c5cf5054SAlexander Egorenkov #else
uv_query_info(void)19c5cf5054SAlexander Egorenkov static inline void uv_query_info(void) {}
20c5cf5054SAlexander Egorenkov #endif
21c5cf5054SAlexander Egorenkov 
22c5cf5054SAlexander Egorenkov #endif /* BOOT_UV_H */
23