WIP FPC-III support
[linux/fpc-iii.git] / arch / powerpc / include / asm / kvm_para.h
blobabe1b5e82547b1137f18cdd62c4959e519980236
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
4 * Copyright IBM Corp. 2008
6 * Authors: Hollis Blanchard <hollisb@us.ibm.com>
7 */
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)
22 unsigned long r;
24 if (!kvm_para_available())
25 return 0;
27 if(epapr_hypercall0_1(KVM_HCALL_TOKEN(KVM_HC_FEATURES), &r))
28 return 0;
30 return r;
33 static inline unsigned int kvm_arch_para_hints(void)
35 return 0;
38 static inline bool kvm_check_and_clear_guest_paused(void)
40 return false;
43 #endif /* __POWERPC_KVM_PARA_H__ */