1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright IBM Corp. 2008
6 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
8 #ifndef __POWERPC_KVM_PARA_H__
9 #define __POWERPC_KVM_PARA_H__
11 #include <asm/kvm_guest.h>
13 #include <uapi/asm/kvm_para.h>
15 static inline int kvm_para_available(void)
17 return IS_ENABLED(CONFIG_KVM_GUEST
) && is_kvm_guest();
20 static inline unsigned int kvm_arch_para_features(void)
24 if (!kvm_para_available())
27 if(epapr_hypercall0_1(KVM_HCALL_TOKEN(KVM_HC_FEATURES
), &r
))
33 static inline unsigned int kvm_arch_para_hints(void)
38 static inline bool kvm_check_and_clear_guest_paused(void)
43 #endif /* __POWERPC_KVM_PARA_H__ */