diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2014-08-21 12:08:05 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-21 12:45:21 -0400 |
commit | e790d9ef6405633b007339d746b709aed43a928d (patch) | |
tree | 27b3a05596ce329f299e481f301de21e75328704 /include/linux/kvm_host.h | |
parent | 6689fbe3cf65b8c0dbbc87c40c085452997ffd8b (diff) |
KVM: add kvm_arch_sched_in
Introduce preempt notifiers for architecture specific code.
Advantage over creating a new notifier in every arch is slightly simpler
code and guaranteed call order with respect to kvm_sched_in.
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index a4c33b34fe3f..ebd723676633 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -624,6 +624,8 @@ void kvm_arch_exit(void); | |||
624 | int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu); | 624 | int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu); |
625 | void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu); | 625 | void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu); |
626 | 626 | ||
627 | void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu); | ||
628 | |||
627 | void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu); | 629 | void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu); |
628 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); | 630 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu); |
629 | void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); | 631 | void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu); |