Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_KVM_PARA_H
0003 #define __LINUX_KVM_PARA_H
0004 
0005 #include <uapi/linux/kvm_para.h>
0006 
0007 
0008 static inline bool kvm_para_has_feature(unsigned int feature)
0009 {
0010     return !!(kvm_arch_para_features() & (1UL << feature));
0011 }
0012 
0013 static inline bool kvm_para_has_hint(unsigned int feature)
0014 {
0015     return !!(kvm_arch_para_hints() & (1UL << feature));
0016 }
0017 #endif /* __LINUX_KVM_PARA_H */