From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA5as-0003rL-I2 for qemu-devel@nongnu.org; Fri, 07 Sep 2012 16:56:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TA5ar-0005A6-6Z for qemu-devel@nongnu.org; Fri, 07 Sep 2012 16:56:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA5aq-00059y-To for qemu-devel@nongnu.org; Fri, 07 Sep 2012 16:56:01 -0400 From: Igor Mammedov Date: Fri, 7 Sep 2012 22:54:57 +0200 Message-Id: <1347051311-16122-9-git-send-email-imammedo@redhat.com> In-Reply-To: <1347051311-16122-1-git-send-email-imammedo@redhat.com> References: <1347051311-16122-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: peter.maydell@linaro.org, aliguori@us.ibm.com, stefanha@linux.vnet.ibm.com, jan.kiszka@siemens.com, mdroth@linux.vnet.ibm.com, don.slutz@gmail.com, blauwirbel@gmail.com, avi@redhat.com, pbonzini@redhat.com, lersek@redhat.com, afaerber@suse.de, ehabkost@redhat.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 file 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.11.4