commit | 5e58cfe41c7e5902c32bb7f62993d43fb4c48ccf | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Mon Jul 23 17:08:21 2007 +1000 |
committer | Avi Kivity <avi@qumranet.com> | Wed Jul 25 14:29:34 2007 +0300 |
tree | 5836d843b325dcea7ba9243f4c9ccb4664ecd255 | |
parent | b0fcd903e6f3f47189baddf3fe085bdf78c9644c [diff] |
KVM: Fix unlikely kvm_create vs decache_vcpus_on_cpu race We add the kvm to the vm_list before initializing the vcpu mutexes, which can be mutex_trylock()'ed by decache_vcpus_on_cpu(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Avi Kivity <avi@qumranet.com>