Revert "kvm tools: Add kvm__has_cap() to check whether a cap is available on the host"

We already had kvm__has_extension, no need for two functions that do the
same.

This reverts commit 42efb1abf4ebebeedd14af34c073e673923e2898.

Conflicts:

	tools/kvm/include/kvm/kvm.h

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Sasha Levin
2011-12-15 08:02:55 +02:00
committed by Will Deacon
parent 1d6fb3f2bb
commit a9389e2cef
2 changed files with 0 additions and 6 deletions
-1
View File
@@ -81,7 +81,6 @@ static inline void *guest_flat_to_host(struct kvm *kvm, unsigned long offset)
return kvm->ram_start + offset;
}
bool kvm__has_cap(struct kvm *kvm, u32 cap);
bool kvm__supports_extension(struct kvm *kvm, unsigned int extension);
#endif /* KVM__KVM_H */
-5
View File
@@ -520,8 +520,3 @@ void kvm__notify_paused(void)
mutex_lock(&pause_lock);
mutex_unlock(&pause_lock);
}
bool kvm__has_cap(struct kvm *kvm, u32 cap)
{
return ioctl(kvm->sys_fd, KVM_CHECK_EXTENSION, cap) == 0;
}