aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2009-06-18 10:47:28 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:33:03 -0400
commit2023a29cbe34139afcea8f65f8aef78c325c5dc0 (patch)
tree142223b88f59710a366321a1b47b54b33ba8e19c /include/linux/kvm_host.h
parent46f43c6ee022c3aeb9686b104234b9f27fac03c2 (diff)
KVM: remove old KVMTRACE support code
Return EOPNOTSUPP for KVM_TRACE_ENABLE/PAUSE/DISABLE ioctls. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 06af936a250a..0604d56f6eed 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -482,37 +482,6 @@ struct kvm_stats_debugfs_item {
482extern struct kvm_stats_debugfs_item debugfs_entries[]; 482extern struct kvm_stats_debugfs_item debugfs_entries[];
483extern struct dentry *kvm_debugfs_dir; 483extern struct dentry *kvm_debugfs_dir;
484 484
485#define KVMTRACE_5D(evt, vcpu, d1, d2, d3, d4, d5, name) \
486 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
487 vcpu, 5, d1, d2, d3, d4, d5)
488#define KVMTRACE_4D(evt, vcpu, d1, d2, d3, d4, name) \
489 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
490 vcpu, 4, d1, d2, d3, d4, 0)
491#define KVMTRACE_3D(evt, vcpu, d1, d2, d3, name) \
492 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
493 vcpu, 3, d1, d2, d3, 0, 0)
494#define KVMTRACE_2D(evt, vcpu, d1, d2, name) \
495 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
496 vcpu, 2, d1, d2, 0, 0, 0)
497#define KVMTRACE_1D(evt, vcpu, d1, name) \
498 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
499 vcpu, 1, d1, 0, 0, 0, 0)
500#define KVMTRACE_0D(evt, vcpu, name) \
501 trace_mark(kvm_trace_##name, "%u %p %u %u %u %u %u %u", KVM_TRC_##evt, \
502 vcpu, 0, 0, 0, 0, 0, 0)
503
504#ifdef CONFIG_KVM_TRACE
505int kvm_trace_ioctl(unsigned int ioctl, unsigned long arg);
506void kvm_trace_cleanup(void);
507#else
508static inline
509int kvm_trace_ioctl(unsigned int ioctl, unsigned long arg)
510{
511 return -EINVAL;
512}
513#define kvm_trace_cleanup() ((void)0)
514#endif
515
516#ifdef KVM_ARCH_WANT_MMU_NOTIFIER 485#ifdef KVM_ARCH_WANT_MMU_NOTIFIER
517static inline int mmu_notifier_retry(struct kvm_vcpu *vcpu, unsigned long mmu_seq) 486static inline int mmu_notifier_retry(struct kvm_vcpu *vcpu, unsigned long mmu_seq)
518{ 487{