From d2e1446d81725c351dc73a03b397ce043fb18452 Mon Sep 17 00:00:00 2001 From: Meizu OpenSource Date: Mon, 15 Aug 2016 10:19:42 +0800 Subject: first commit --- include/linux/kvm_para.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/linux/kvm_para.h (limited to 'include/linux/kvm_para.h') diff --git a/include/linux/kvm_para.h b/include/linux/kvm_para.h new file mode 100644 index 000000000..00a97bb90 --- /dev/null +++ b/include/linux/kvm_para.h @@ -0,0 +1,13 @@ +#ifndef __LINUX_KVM_PARA_H +#define __LINUX_KVM_PARA_H + +#include + + +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 */ -- cgit v1.2.3