kvm_para.h 402 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_KVM_PARA_H
  3. #define __LINUX_KVM_PARA_H
  4. #include <uapi/linux/kvm_para.h>
  5. static inline bool kvm_para_has_feature(unsigned int feature)
  6. {
  7. return !!(kvm_arch_para_features() & (1UL << feature));
  8. }
  9. static inline bool kvm_para_has_hint(unsigned int feature)
  10. {
  11. return !!(kvm_arch_para_hints() & (1UL << feature));
  12. }
  13. #endif /* __LINUX_KVM_PARA_H */