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/linux/kvm.h | |
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/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 31 |
1 files changed, 1 insertions, 30 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 | /* |