Blame view

include/linux/kvm_para.h 260 Bytes
102d8325a   Ingo Molnar   KVM: add MSR base...
1
2
  #ifndef __LINUX_KVM_PARA_H
  #define __LINUX_KVM_PARA_H
607ca46e9   David Howells   UAPI: (Scripted) ...
3
  #include <uapi/linux/kvm_para.h>
102d8325a   Ingo Molnar   KVM: add MSR base...
4

0cf1bfd27   Marcelo Tosatti   x86: KVM guest: a...
5

7aa81cc04   Anthony Liguori   KVM: Refactor hyp...
6
7
  static inline int kvm_para_has_feature(unsigned int feature)
  {
5f43238d0   Christian Borntraeger   KVM: Per-architec...
8
  	if (kvm_arch_para_features() & (1UL << feature))
7aa81cc04   Anthony Liguori   KVM: Refactor hyp...
9
10
11
  		return 1;
  	return 0;
  }
5f43238d0   Christian Borntraeger   KVM: Per-architec...
12
  #endif /* __LINUX_KVM_PARA_H */