Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167675
b: refs/heads/master
c: 0ea4ed8
h: refs/heads/master
i:
  167673: 9274af2
  167671: 52aebf7
v: v3
  • Loading branch information
Darrick J. Wong authored and Marcelo Tosatti committed Oct 16, 2009
1 parent 4dae8a6 commit 5ec677d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8a8365c560b8b631e0a2d1ac032fbca66a9645bc
refs/heads/master: 0ea4ed8e948c30f88c824c973ee4b9529015fe65
7 changes: 3 additions & 4 deletions trunk/virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2717,8 +2717,6 @@ int kvm_init(void *opaque, unsigned int vcpu_size,
int r;
int cpu;

kvm_init_debug();

r = kvm_arch_init(opaque);
if (r)
goto out_fail;
Expand Down Expand Up @@ -2785,6 +2783,8 @@ int kvm_init(void *opaque, unsigned int vcpu_size,
kvm_preempt_ops.sched_in = kvm_sched_in;
kvm_preempt_ops.sched_out = kvm_sched_out;

kvm_init_debug();

return 0;

out_free:
Expand All @@ -2807,14 +2807,14 @@ int kvm_init(void *opaque, unsigned int vcpu_size,
out:
kvm_arch_exit();
out_fail:
kvm_exit_debug();
return r;
}
EXPORT_SYMBOL_GPL(kvm_init);

void kvm_exit(void)
{
tracepoint_synchronize_unregister();
kvm_exit_debug();
misc_deregister(&kvm_dev);
kmem_cache_destroy(kvm_vcpu_cache);
sysdev_unregister(&kvm_sysdev);
Expand All @@ -2824,7 +2824,6 @@ void kvm_exit(void)
on_each_cpu(hardware_disable, NULL, 1);
kvm_arch_hardware_unsetup();
kvm_arch_exit();
kvm_exit_debug();
free_cpumask_var(cpus_hardware_enabled);
__free_page(bad_page);
}
Expand Down

0 comments on commit 5ec677d

Please sign in to comment.