summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/kvm_para.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/kvm_para.h')
-rw-r--r--kernel/include/linux/kvm_para.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/include/linux/kvm_para.h b/kernel/include/linux/kvm_para.h
new file mode 100644
index 000000000..00a97bb90
--- /dev/null
+++ b/kernel/include/linux/kvm_para.h
@@ -0,0 +1,13 @@
+#ifndef __LINUX_KVM_PARA_H
+#define __LINUX_KVM_PARA_H
+
+#include <uapi/linux/kvm_para.h>
+
+
+static inline int kvm_para_has_feature(unsigned int feature)
+{
+ if (kvm_arch_para_features() & (1UL << feature))
+ return 1;
+ return 0;
+}
+#endif /* __LINUX_KVM_PARA_H */