summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2014-08-21 18:08:06 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2014-08-21 18:45:22 +0200
commitae97a3b818324b92b5b9cc885c63c3f4bd46ee9d (patch)
tree0e68991ad4458f41fe3fae3ee85aaa6e9be2cdc8 /arch/x86/kvm/x86.c
parentKVM: add kvm_arch_sched_in (diff)
downloadlinux-ae97a3b818324b92b5b9cc885c63c3f4bd46ee9d.tar.xz
linux-ae97a3b818324b92b5b9cc885c63c3f4bd46ee9d.zip
KVM: x86: introduce sched_in to kvm_x86_ops
sched_in preempt notifier is available for x86, allow its use in specific virtualization technlogies as well. Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 7d43dc7bb906..575d3fc67e7e 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -7173,6 +7173,7 @@ void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu)
void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu)
{
+ kvm_x86_ops->sched_in(vcpu, cpu);
}
int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)