summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorRadim Krčmář2014-08-21 18:08:06 +0200
committerPaolo Bonzini2014-08-21 18:45:22 +0200
commitae97a3b818324b92b5b9cc885c63c3f4bd46ee9d (patch)
tree0e68991ad4458f41fe3fae3ee85aaa6e9be2cdc8 /arch/x86/kvm/svm.c
parentKVM: add kvm_arch_sched_in (diff)
downloadkernel-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/svm.c')
-rw-r--r--arch/x86/kvm/svm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 1f49c867e72e..1703aab84a6d 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -4305,6 +4305,10 @@ static void svm_handle_external_intr(struct kvm_vcpu *vcpu)
local_irq_enable();
}
+static void svm_sched_in(struct kvm_vcpu *vcpu, int cpu)
+{
+}
+
static struct kvm_x86_ops svm_x86_ops = {
.cpu_has_kvm_support = has_svm,
.disabled_by_bios = is_disabled,
@@ -4405,6 +4409,8 @@ static struct kvm_x86_ops svm_x86_ops = {
.check_intercept = svm_check_intercept,
.handle_external_intr = svm_handle_external_intr,
+
+ .sched_in = svm_sched_in,
};
static int __init svm_init(void)