[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/9] target-i386: add stubs for hyperv_(vapic_recomm
From: |
Igor Mammedov |
Subject: |
[Qemu-devel] [PATCH 2/9] target-i386: add stubs for hyperv_(vapic_recommended|relaxed_timing_enabled|get_spinlock_retries)() |
Date: |
Mon, 11 Feb 2013 17:35:04 +0100 |
It's needed for converting hv_* features into properties and to
avoid build breakage when qemu is built with --disable-kvm option.
Signed-off-by: Igor Mammedov <address@hidden>
Reported-by: Eduardo Habkost <address@hidden>
---
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
- [Qemu-devel] [PATCH qom-cpu-next 0/9 v6] target-i386: convert CPU features into properties, Igor Mammedov, 2013/02/11
- [Qemu-devel] [PATCH 4/9] target-i386: convert 'hv_relaxed' to static property, Igor Mammedov, 2013/02/11
- [Qemu-devel] [PATCH 5/9] target-i386: convert 'hv_vapic' to static property, Igor Mammedov, 2013/02/11
- [Qemu-devel] [PATCH 2/9] target-i386: add stubs for hyperv_(vapic_recommended|relaxed_timing_enabled|get_spinlock_retries)(),
Igor Mammedov <=
- [Qemu-devel] [PATCH 7/9] target-i386: cleanup 'foo' feature handling', Igor Mammedov, 2013/02/11
- [Qemu-devel] [PATCH 8/9] target-i386: cleanup 'foo=val' feature handling, Igor Mammedov, 2013/02/11
- [Qemu-devel] [PATCH 3/9] target-i386: convert 'hv_spinlocks' to static property, Igor Mammedov, 2013/02/11
- [Qemu-devel] [PATCH 6/9] target-i386: convert 'check' and 'enforce' to static properties, Igor Mammedov, 2013/02/11
- [Qemu-devel] [PATCH 9/9] target-i386: set [+-]feature using static properties, Igor Mammedov, 2013/02/11