diff options
author | Avi Kivity <avi@qumranet.com> | 2007-11-20 08:30:24 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:09 -0500 |
commit | 26e5215fdc6cf7b5a8b1269134095abbb7338b3c (patch) | |
tree | d5a326a910996549827a11beb3af1c60f1f1cf3c /drivers/kvm/kvm.h | |
parent | 0de10343b3ca7aa34dd606145748f73ed19f627e (diff) |
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>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 49094a221f6a..b65f5dee4b1b 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -466,6 +466,7 @@ void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu); | |||
466 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); | 466 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); |
467 | void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); | 467 | void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); |
468 | struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id); | 468 | struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id); |
469 | int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu); | ||
469 | void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu); | 470 | void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu); |
470 | 471 | ||
471 | int kvm_arch_vcpu_reset(struct kvm_vcpu *vcpu); | 472 | int kvm_arch_vcpu_reset(struct kvm_vcpu *vcpu); |