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 /virt/kvm/kvm_main.c | |
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 'virt/kvm/kvm_main.c')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 39b16035386f..5a0817ee996e 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -3124,6 +3124,8 @@ static void kvm_sched_in(struct preempt_notifier *pn, int cpu) | |||
3124 | if (vcpu->preempted) | 3124 | if (vcpu->preempted) |
3125 | vcpu->preempted = false; | 3125 | vcpu->preempted = false; |
3126 | 3126 | ||
3127 | kvm_arch_sched_in(vcpu, cpu); | ||
3128 | |||
3127 | kvm_arch_vcpu_load(vcpu, cpu); | 3129 | kvm_arch_vcpu_load(vcpu, cpu); |
3128 | } | 3130 | } |
3129 | 3131 | ||