mm: Don't pin ZERO_PAGE in pin_user_pages()
[linux-block.git] / include / linux / kvm_para.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
102d8325
IM
2#ifndef __LINUX_KVM_PARA_H
3#define __LINUX_KVM_PARA_H
4
607ca46e 5#include <uapi/linux/kvm_para.h>
102d8325 6
0cf1bfd2 7
08ff0d5e 8static inline bool kvm_para_has_feature(unsigned int feature)
7aa81cc0 9{
08ff0d5e 10 return !!(kvm_arch_para_features() & (1UL << feature));
7aa81cc0 11}
a4429e53
WL
12
13static inline bool kvm_para_has_hint(unsigned int feature)
14{
15 return !!(kvm_arch_para_hints() & (1UL << feature));
16}
5f43238d 17#endif /* __LINUX_KVM_PARA_H */