Files
kernel/include/linux/kvm_para.h
T

18 lines
402 B
C
Raw Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
2007-02-19 14:37:47 +02:00
#ifndef __LINUX_KVM_PARA_H
#define __LINUX_KVM_PARA_H
2012-10-13 10:46:48 +01:00
#include <uapi/linux/kvm_para.h>
2007-09-17 14:57:50 -05:00
2008-02-22 12:21:36 -05:00
2015-11-14 11:21:07 +08:00
static inline bool kvm_para_has_feature(unsigned int feature)
2007-09-17 14:57:50 -05:00
{
2015-11-14 11:21:07 +08:00
return !!(kvm_arch_para_features() & (1UL << feature));
2007-09-17 14:57:50 -05:00
}
static inline bool kvm_para_has_hint(unsigned int feature)
{
return !!(kvm_arch_para_hints() & (1UL << feature));
}
2007-10-11 15:34:17 +02:00
#endif /* __LINUX_KVM_PARA_H */