Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Ingo Molnar | 102d832 | 2007-02-19 14:37:47 +0200 | [diff] [blame] | 2 | #ifndef __LINUX_KVM_PARA_H |
| 3 | #define __LINUX_KVM_PARA_H |
| 4 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 5 | #include <uapi/linux/kvm_para.h> |
Anthony Liguori | 7aa81cc | 2007-09-17 14:57:50 -0500 | [diff] [blame] | 6 | |
Marcelo Tosatti | 0cf1bfd | 2008-02-22 12:21:36 -0500 | [diff] [blame] | 7 | |
Yaowei Bai | 08ff0d5 | 2015-11-14 11:21:07 +0800 | [diff] [blame] | 8 | static inline bool kvm_para_has_feature(unsigned int feature) |
Anthony Liguori | 7aa81cc | 2007-09-17 14:57:50 -0500 | [diff] [blame] | 9 | { |
Yaowei Bai | 08ff0d5 | 2015-11-14 11:21:07 +0800 | [diff] [blame] | 10 | return !!(kvm_arch_para_features() & (1UL << feature)); |
Anthony Liguori | 7aa81cc | 2007-09-17 14:57:50 -0500 | [diff] [blame] | 11 | } |
Christian Borntraeger | 5f43238 | 2007-10-11 15:34:17 +0200 | [diff] [blame] | 12 | #endif /* __LINUX_KVM_PARA_H */ |