From: Sasha Levin Subject: [PATCH 2/2] Revert "kvm tools: Add kvm__has_cap() to check whether a cap is available on the host" Date: Thu, 15 Dec 2011 08:02:55 +0200 Message-ID: <1323928975-4863-2-git-send-email-levinsasha928@gmail.com> References: <1323928975-4863-1-git-send-email-levinsasha928@gmail.com> Cc: mingo@elte.hu, gorcunov@gmail.com, asias.hejun@gmail.com, kvm@vger.kernel.org, matt@ozlabs.org, Sasha Levin To: penberg@kernel.org Return-path: Received: from mail-ee0-f46.google.com ([74.125.83.46]:52227 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752667Ab1LOGDK (ORCPT ); Thu, 15 Dec 2011 01:03:10 -0500 Received: by mail-ee0-f46.google.com with SMTP id c4so1701739eek.19 for ; Wed, 14 Dec 2011 22:03:09 -0800 (PST) In-Reply-To: <1323928975-4863-1-git-send-email-levinsasha928@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 --- tools/kvm/include/kvm/kvm.h | 1 - tools/kvm/kvm.c | 5 ----- 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/tools/kvm/include/kvm/kvm.h b/tools/kvm/include/kvm/kvm.h index 7996dfd..4927caa 100644 --- a/tools/kvm/include/kvm/kvm.h +++ b/tools/kvm/include/kvm/kvm.h @@ -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 */ diff --git a/tools/kvm/kvm.c b/tools/kvm/kvm.c index 24b8a60..3cdac70 100644 --- a/tools/kvm/kvm.c +++ b/tools/kvm/kvm.c @@ -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; -} -- 1.7.8