summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormax <max@bh1-build.(none)>2011-04-05 05:54:01 -0700
committerMax Bruning <max@joyent.com>2011-04-05 10:48:09 -0700
commite3336b9a47ec73b4aa384186c10ae251aa2db081 (patch)
tree513be68038ea5a03762e695fc0311b962695eadf
parente8483c9ff70595dc7d4ba5b54851f56e376996ce (diff)
downloadillumos-kvm-e3336b9a47ec73b4aa384186c10ae251aa2db081.tar.gz
remove inline keywords
-rw-r--r--kvm.c7
-rw-r--r--kvm_para.h7
-rw-r--r--kvm_x86host.h1
3 files changed, 8 insertions, 7 deletions
diff --git a/kvm.c b/kvm.c
index 9f77e9e..e24968f 100644
--- a/kvm.c
+++ b/kvm.c
@@ -35,6 +35,7 @@
#include "tss.h"
#include "ioapic.h"
#include "coalesced_mmio.h"
+#include "hyperv.h"
int kvmid; /* monotonically increasing, unique per vm */
@@ -9869,12 +9870,6 @@ void __init kvm_guest_init(void);
#define kvm_guest_init() do { } while (0)
#endif
-static int kvm_para_has_feature(unsigned int feature)
-{
- if (kvm_arch_para_features() & (1UL << feature))
- return 1;
- return 0;
-}
#endif /* _KERNEL */
int kvm_emulate_hypercall(struct kvm_vcpu *vcpu)
diff --git a/kvm_para.h b/kvm_para.h
index bc82b95..a060bd4 100644
--- a/kvm_para.h
+++ b/kvm_para.h
@@ -29,7 +29,12 @@ void __init kvm_guest_init(void);
#define kvm_guest_init() do { } while (0)
#endif
-static inline int kvm_para_has_feature(unsigned int feature)
+static unsigned int kvm_arch_para_features(void)
+{
+ return cpuid_eax(KVM_CPUID_FEATURES);
+}
+
+static int kvm_para_has_feature(unsigned int feature)
{
if (kvm_arch_para_features() & (1UL << feature))
return 1;
diff --git a/kvm_x86host.h b/kvm_x86host.h
index 23d040b..4f74dc8 100644
--- a/kvm_x86host.h
+++ b/kvm_x86host.h
@@ -29,6 +29,7 @@
#endif
#include "kvm_types.h"
+#include "msr.h"
#define KVM_PIO_PAGE_OFFSET 0
#define KVM_COALESCED_MMIO_PAGE_OFFSET 0