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 /arch/s390 | |
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 'arch/s390')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index ce81eb2ab76a..a3c324ec4370 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c | |||
@@ -555,6 +555,10 @@ void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) | |||
555 | /* Nothing todo */ | 555 | /* Nothing todo */ |
556 | } | 556 | } |
557 | 557 | ||
558 | void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) | ||
559 | { | ||
560 | } | ||
561 | |||
558 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | 562 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) |
559 | { | 563 | { |
560 | save_fp_ctl(&vcpu->arch.host_fpregs.fpc); | 564 | save_fp_ctl(&vcpu->arch.host_fpregs.fpc); |