summaryrefslogtreecommitdiff
path: root/kvm_x86impl.h
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-06-06 16:50:42 -0700
committerRobert Mustacchi <rm@joyent.com>2011-06-06 16:51:29 -0700
commit9ce61fba3deff284d10cb6e4cab9f47869d3d2f8 (patch)
treedd40888930adcc3463d57e4aaec48265de84970f /kvm_x86impl.h
parent8fd82e2f770502da502987b7529d137dc2962db4 (diff)
downloadillumos-kvm-9ce61fba3deff284d10cb6e4cab9f47869d3d2f8.tar.gz
HVM-311 Cleanup externs and includes in kvm_x86.c
Diffstat (limited to 'kvm_x86impl.h')
-rw-r--r--kvm_x86impl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kvm_x86impl.h b/kvm_x86impl.h
index a59f177..4e90237 100644
--- a/kvm_x86impl.h
+++ b/kvm_x86impl.h
@@ -6,6 +6,7 @@
#define __KVM_X86_IMPL_H
#include <sys/types.h>
+#include <vm/page.h>
#include "kvm_host.h"
#include "kvm_x86.h"
@@ -36,6 +37,7 @@ extern int zero_constructor(void *, void *, int);
typedef void (*kvm_xcall_t)(void *);
extern void kvm_xcall(processorid_t cpu, kvm_xcall_t func, void *arg);
+extern int kvm_xcall_func(kvm_xcall_t func, void *arg);
/*
* All the follwoing definitions are ones that are expected to just be in
@@ -95,4 +97,10 @@ unsigned long native_read_cr3(void);
#define read_cr3() (native_read_cr3())
uint32_t bit(int bitno);
+inline unsigned long get_desc_limit(const struct desc_struct *desc);
+unsigned long get_desc_base(const struct desc_struct *desc);
+
+inline page_t *compound_head(page_t *page);
+inline void get_page(page_t *page);
+
#endif