summaryrefslogtreecommitdiff
path: root/include/linux/kvm_para.h
diff options
context:
space:
mode:
authorHaitao Shan <hshan@google.com>2016-11-29 17:20:32 -0800
committerHaitao Shan <hshan@google.com>2017-03-29 10:43:00 -0700
commitd9c0b9070fc0aca672f828bc7c34c093fca059a0 (patch)
tree4439e57c9d54c3abf258c32bf33ef7004f81e485 /include/linux/kvm_para.h
downloadaehd-d9c0b9070fc0aca672f828bc7c34c093fca059a0.tar.gz
Initial Commit by Copying Codes from Kernel
Diffstat (limited to 'include/linux/kvm_para.h')
-rw-r--r--include/linux/kvm_para.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/kvm_para.h b/include/linux/kvm_para.h
new file mode 100644
index 0000000..35e568f
--- /dev/null
+++ b/include/linux/kvm_para.h
@@ -0,0 +1,11 @@
+#ifndef __LINUX_KVM_PARA_H
+#define __LINUX_KVM_PARA_H
+
+#include <uapi/linux/kvm_para.h>
+
+
+static inline bool kvm_para_has_feature(unsigned int feature)
+{
+ return !!(kvm_arch_para_features() & (1UL << feature));
+}
+#endif /* __LINUX_KVM_PARA_H */