From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGyJG-0005dl-N5 for qemu-devel@nongnu.org; Wed, 26 Sep 2012 16:34:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TGyJC-0004N8-1D for qemu-devel@nongnu.org; Wed, 26 Sep 2012 16:34:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TGyJB-0004Mt-P2 for qemu-devel@nongnu.org; Wed, 26 Sep 2012 16:34:13 -0400 From: Igor Mammedov Date: Wed, 26 Sep 2012 22:32:44 +0200 Message-Id: <1348691578-17231-9-git-send-email-imammedo@redhat.com> In-Reply-To: <1348691578-17231-1-git-send-email-imammedo@redhat.com> References: <1348691578-17231-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH 08/22] target-i386: add stubs for hyperv_(vapic_recommended|relaxed_timing_enabled|get_spinlock_retries)() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, ehabkost@redhat.com, jan.kiszka@siemens.com, Don@CloudSwitch.com, mtosatti@redhat.com, mdroth@linux.vnet.ibm.com, blauwirbel@gmail.com, pbonzini@redhat.com, lersek@redhat.com, afaerber@suse.de, stefanha@linux.vnet.ibm.com It's needed for the next 3 patches to avoid build breakage when qemu is built with --disable-kvm option. Signed-off-by: Igor Mammedov Reported-by: Eduardo Habkost --- target-i386/hyperv.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/target-i386/hyperv.h b/target-i386/hyperv.h index bacb1d4..7bd4d9e 100644 --- a/target-i386/hyperv.h +++ b/target-i386/hyperv.h @@ -30,16 +30,19 @@ void hyperv_enable_vapic_recommended(bool val); void hyperv_enable_relaxed_timing(bool val); void hyperv_set_spinlock_retries(int val); +bool hyperv_vapic_recommended(void); +bool hyperv_relaxed_timing_enabled(void); +int hyperv_get_spinlock_retries(void); #else static inline void hyperv_enable_vapic_recommended(bool val) { } static inline void hyperv_enable_relaxed_timing(bool val) { } static inline void hyperv_set_spinlock_retries(int val) { } +static inline bool hyperv_vapic_recommended(void) { return false; } +static inline bool hyperv_relaxed_timing_enabled(void) { return false; } +static inline int hyperv_get_spinlock_retries(void) { return 0; } #endif bool hyperv_enabled(void); bool hyperv_hypercall_available(void); -bool hyperv_vapic_recommended(void); -bool hyperv_relaxed_timing_enabled(void); -int hyperv_get_spinlock_retries(void); #endif /* QEMU_HW_HYPERV_H */ -- 1.7.1