blob: 35e568f04b1e7b94a6322c05d48583b43af8618c [file] [log] [blame]
Ingo Molnar102d8322007-02-19 14:37:47 +02001#ifndef __LINUX_KVM_PARA_H
2#define __LINUX_KVM_PARA_H
3
David Howells607ca462012-10-13 10:46:48 +01004#include <uapi/linux/kvm_para.h>
Anthony Liguori7aa81cc2007-09-17 14:57:50 -05005
Marcelo Tosatti0cf1bfd2008-02-22 12:21:36 -05006
Yaowei Bai08ff0d52015-11-14 11:21:07 +08007static inline bool kvm_para_has_feature(unsigned int feature)
Anthony Liguori7aa81cc2007-09-17 14:57:50 -05008{
Yaowei Bai08ff0d52015-11-14 11:21:07 +08009 return !!(kvm_arch_para_features() & (1UL << feature));
Anthony Liguori7aa81cc2007-09-17 14:57:50 -050010}
Christian Borntraeger5f432382007-10-11 15:34:17 +020011#endif /* __LINUX_KVM_PARA_H */