summaryrefslogtreecommitdiff
path: root/kvm_emulate.h
diff options
context:
space:
mode:
authormax <max@maxpad.(none)>2010-12-22 18:40:12 +0100
committermax <max@maxpad.(none)>2010-12-22 18:40:12 +0100
commit74210da6801d87dcf9552c97497a60da88c99bde (patch)
tree21c5da2743d67e0c12dac94f70a857b8a7214c1b /kvm_emulate.h
parentc8e2e3d1ec0e7b7fc3dcf4e23aa320c8b628e79a (diff)
downloadillumos-kvm-74210da6801d87dcf9552c97497a60da88c99bde.tar.gz
Now compiles clean with kernel gcc flags
Diffstat (limited to 'kvm_emulate.h')
-rw-r--r--kvm_emulate.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/kvm_emulate.h b/kvm_emulate.h
index be9bd75..afdabb4 100644
--- a/kvm_emulate.h
+++ b/kvm_emulate.h
@@ -12,7 +12,7 @@
#define _ASM_X86_KVM_X86_EMULATE_H
struct x86_emulate_ctxt;
-
+#ifdef _KERNEL
/*
* x86_emulate_ops:
*
@@ -110,6 +110,7 @@ struct x86_emulate_ops {
struct kvm_vcpu *vcpu);
};
+#endif /*_KERNEL*/
/* Type, address-of, and value of an instruction's operand. */
struct operand {
@@ -190,9 +191,10 @@ struct x86_emulate_ctxt {
#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT64
#endif
+#ifdef _KERNEL
int x86_decode_insn(struct x86_emulate_ctxt *ctxt,
struct x86_emulate_ops *ops);
int x86_emulate_insn(struct x86_emulate_ctxt *ctxt,
struct x86_emulate_ops *ops);
-
+#endif /*_KERNEL*/
#endif /* _ASM_X86_KVM_X86_EMULATE_H */