KVM: Split vcpu creation to avoid vcpu_load() before preemption setup
authorAvi Kivity <avi@qumranet.com>
Tue, 20 Nov 2007 13:30:24 +0000 (15:30 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:09 +0000 (17:53 +0200)
commit26e5215fdc6cf7b5a8b1269134095abbb7338b3c
treed5a326a910996549827a11beb3af1c60f1f1cf3c
parent0de10343b3ca7aa34dd606145748f73ed19f627e
KVM: Split vcpu creation to avoid vcpu_load() before preemption setup

Split kvm_arch_vcpu_create() into kvm_arch_vcpu_create() and
kvm_arch_vcpu_setup(), enabling preemption notification between the two.
This mean that we can now do vcpu_load() within kvm_arch_vcpu_setup().

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/x86.c