From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- 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 00000000..00a97bb9 --- /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.3.1