mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-18 19:35:53 +00:00
kvm tools: Use kvm__supports_extension instead of kvm__has_cap
kvm__supports_extension has been there before, and it's does it's job right unlike kvm__has_cap. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
@@ -82,5 +82,6 @@ static inline void *guest_flat_to_host(struct kvm *kvm, unsigned long offset)
|
||||
}
|
||||
|
||||
bool kvm__has_cap(struct kvm *kvm, u32 cap);
|
||||
bool kvm__supports_extension(struct kvm *kvm, unsigned int extension);
|
||||
|
||||
#endif /* KVM__KVM_H */
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ static bool ioeventfd_avail;
|
||||
|
||||
void ioeventfd__init(struct kvm *kvm)
|
||||
{
|
||||
ioeventfd_avail = kvm__has_cap(kvm, KVM_CAP_IOEVENTFD);
|
||||
ioeventfd_avail = kvm__supports_extension(kvm, KVM_CAP_IOEVENTFD);
|
||||
if (!ioeventfd_avail)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user