summaryrefslogtreecommitdiff
path: root/libkvm
diff options
context:
space:
mode:
authorJerone Young <jyoung5@us.ibm.com>2007-11-26 09:05:50 -0600
committerAvi Kivity <avi@qumranet.com>2007-11-26 17:15:04 +0200
commita219e447309d953aed646cf4f45cad19afba8f52 (patch)
treec5867d453771e26ba0c622d73f06341075d88f6b /libkvm
parent1e79d4532af51300d253de1beb13c0f844915ff3 (diff)
kvm: libkvm: add ifdefs to libkvm.h to pervent warnings for other archs
This patch adds ifdefs around x86 specific functions to pervent compilers warnings for other archs. Signed-off-by: Jerone Young <jyoung5@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'libkvm')
-rw-r--r--libkvm/libkvm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h
index 2094dfd4..7aaaaa97 100644
--- a/libkvm/libkvm.h
+++ b/libkvm/libkvm.h
@@ -348,6 +348,7 @@ int kvm_inject_irq(kvm_context_t kvm, int vcpu, unsigned irq);
int kvm_guest_debug(kvm_context_t, int vcpu, struct kvm_debug_guest *dbg);
+#if defined(__i386__) || defined(__x86_64__)
/*!
* \brief Setup a vcpu's cpuid instruction emulation
*
@@ -361,6 +362,7 @@ int kvm_guest_debug(kvm_context_t, int vcpu, struct kvm_debug_guest *dbg);
*/
int kvm_setup_cpuid(kvm_context_t kvm, int vcpu, int nent,
struct kvm_cpuid_entry *entries);
+#endif
/*!
* \brief Set a vcpu's signal mask for guest mode
@@ -499,6 +501,7 @@ int kvm_get_irqchip(kvm_context_t kvm, struct kvm_irqchip *chip);
*/
int kvm_set_irqchip(kvm_context_t kvm, struct kvm_irqchip *chip);
+#if defined(__i386__) || defined(__x86_64__)
/*!
* \brief Get in kernel local APIC for vcpu
*
@@ -520,6 +523,7 @@ int kvm_get_lapic(kvm_context_t kvm, int vcpu, struct kvm_lapic_state *s);
* \param s Local apic state of the specific virtual CPU
*/
int kvm_set_lapic(kvm_context_t kvm, int vcpu, struct kvm_lapic_state *s);
+#endif
#endif