diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-06-18 10:47:28 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 01:33:03 -0400 |
commit | 2023a29cbe34139afcea8f65f8aef78c325c5dc0 (patch) | |
tree | 142223b88f59710a366321a1b47b54b33ba8e19c /include | |
parent | 46f43c6ee022c3aeb9686b104234b9f27fac03c2 (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')
-rw-r--r-- | include/linux/kvm.h | 31 | ||||
-rw-r--r-- | include/linux/kvm_host.h | 31 |
2 files changed, 1 insertions, 61 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 671051829da6..76c640834ea6 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | #define KVM_API_VERSION 12 | 15 | #define KVM_API_VERSION 12 |
16 | 16 | ||
17 | /* for KVM_TRACE_ENABLE */ | 17 | /* for KVM_TRACE_ENABLE, deprecated */ |
18 | struct kvm_user_trace_setup { | 18 | struct kvm_user_trace_setup { |
19 | __u32 buf_size; /* sub_buffer size of each per-cpu */ | 19 | __u32 buf_size; /* sub_buffer size of each per-cpu */ |
20 | __u32 buf_nr; /* the number of sub_buffers of each per-cpu */ | 20 | __u32 buf_nr; /* the number of sub_buffers of each per-cpu */ |
@@ -325,35 +325,6 @@ struct kvm_guest_debug { | |||
325 | #define KVM_TRC_CYCLE_SIZE 8 | 325 | #define KVM_TRC_CYCLE_SIZE 8 |
326 | #define KVM_TRC_EXTRA_MAX 7 | 326 | #define KVM_TRC_EXTRA_MAX 7 |
327 | 327 | ||
328 | /* This structure represents a single trace buffer record. */ | ||
329 | struct kvm_trace_rec { | ||
330 | /* variable rec_val | ||
331 | * is split into: | ||
332 | * bits 0 - 27 -> event id | ||
333 | * bits 28 -30 -> number of extra data args of size u32 | ||
334 | * bits 31 -> binary indicator for if tsc is in record | ||
335 | */ | ||
336 | __u32 rec_val; | ||
337 | __u32 pid; | ||
338 | __u32 vcpu_id; | ||
339 | union { | ||
340 | struct { | ||
341 | __u64 timestamp; | ||
342 | __u32 extra_u32[KVM_TRC_EXTRA_MAX]; | ||
343 | } __attribute__((packed)) timestamp; | ||
344 | struct { | ||
345 | __u32 extra_u32[KVM_TRC_EXTRA_MAX]; | ||
346 | } notimestamp; | ||
347 | } u; | ||
348 | }; | ||
349 | |||
350 | #define TRACE_REC_EVENT_ID(val) \ | ||
351 | (0x0fffffff & (val)) | ||
352 | #define TRACE_REC_NUM_DATA_ARGS(val) \ | ||
353 | (0x70000000 & ((val) << 28)) | ||
354 | #define TRACE_REC_TCS(val) \ | ||
355 | (0x80000000 & ((val) << 31)) | ||
356 | |||
357 | #define KVMIO 0xAE | 328 | #define KVMIO 0xAE |
358 | 329 | ||
359 | /* | 330 | /* |
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 { | |||
482 | extern struct kvm_stats_debugfs_item debugfs_entries[]; | 482 | extern struct kvm_stats_debugfs_item debugfs_entries[]; |
483 | extern struct dentry *kvm_debugfs_dir; | 483 | extern 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 | ||
505 | int kvm_trace_ioctl(unsigned int ioctl, unsigned long arg); | ||
506 | void kvm_trace_cleanup(void); | ||
507 | #else | ||
508 | static inline | ||
509 | int 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 |
517 | static inline int mmu_notifier_retry(struct kvm_vcpu *vcpu, unsigned long mmu_seq) | 486 | static inline int mmu_notifier_retry(struct kvm_vcpu *vcpu, unsigned long mmu_seq) |
518 | { | 487 | { |