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 /virt/kvm/kvm_main.c | |
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 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index f1e2e8c373c6..bbb4029d7c4d 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -2398,7 +2398,7 @@ static long kvm_dev_ioctl(struct file *filp, | |||
2398 | case KVM_TRACE_ENABLE: | 2398 | case KVM_TRACE_ENABLE: |
2399 | case KVM_TRACE_PAUSE: | 2399 | case KVM_TRACE_PAUSE: |
2400 | case KVM_TRACE_DISABLE: | 2400 | case KVM_TRACE_DISABLE: |
2401 | r = kvm_trace_ioctl(ioctl, arg); | 2401 | r = -EOPNOTSUPP; |
2402 | break; | 2402 | break; |
2403 | default: | 2403 | default: |
2404 | return kvm_arch_dev_ioctl(filp, ioctl, arg); | 2404 | return kvm_arch_dev_ioctl(filp, ioctl, arg); |
@@ -2748,7 +2748,6 @@ EXPORT_SYMBOL_GPL(kvm_init); | |||
2748 | 2748 | ||
2749 | void kvm_exit(void) | 2749 | void kvm_exit(void) |
2750 | { | 2750 | { |
2751 | kvm_trace_cleanup(); | ||
2752 | tracepoint_synchronize_unregister(); | 2751 | tracepoint_synchronize_unregister(); |
2753 | misc_deregister(&kvm_dev); | 2752 | misc_deregister(&kvm_dev); |
2754 | kmem_cache_destroy(kvm_vcpu_cache); | 2753 | kmem_cache_destroy(kvm_vcpu_cache); |