diff options
author | Radim Krčmář | 2014-08-21 18:08:06 +0200 |
---|---|---|
committer | Paolo Bonzini | 2014-08-21 18:45:22 +0200 |
commit | ae97a3b818324b92b5b9cc885c63c3f4bd46ee9d (patch) | |
tree | 0e68991ad4458f41fe3fae3ee85aaa6e9be2cdc8 /arch/x86/kvm/vmx.c | |
parent | KVM: add kvm_arch_sched_in (diff) | |
download | kernel-qcow2-linux-ae97a3b818324b92b5b9cc885c63c3f4bd46ee9d.tar.gz kernel-qcow2-linux-ae97a3b818324b92b5b9cc885c63c3f4bd46ee9d.tar.xz kernel-qcow2-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/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 286c2835e25c..7c26533e149c 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -8848,6 +8848,10 @@ static int vmx_check_intercept(struct kvm_vcpu *vcpu, return X86EMUL_CONTINUE; } +void vmx_sched_in(struct kvm_vcpu *vcpu, int cpu) +{ +} + static struct kvm_x86_ops vmx_x86_ops = { .cpu_has_kvm_support = cpu_has_kvm_support, .disabled_by_bios = vmx_disabled_by_bios, @@ -8952,6 +8956,8 @@ static struct kvm_x86_ops vmx_x86_ops = { .mpx_supported = vmx_mpx_supported, .check_nested_events = vmx_check_nested_events, + + .sched_in = vmx_sched_in, }; static int __init vmx_init(void) |