Commit 745d3b61 authored by Jan Kiszka's avatar Jan Kiszka

x86/ipipe: kvm: Initialize ipipe_notifier also for SVM

Pull the initialization out of vmx - it's generic and shared with svm.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent ea182fc5
......@@ -9020,9 +9020,6 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm *kvm, unsigned int id)
vmx->nested.posted_intr_nv = -1;
vmx->nested.current_vmptr = -1ull;
vmx->nested.current_vmcs12 = NULL;
#ifdef CONFIG_IPIPE
vmx->vcpu.ipipe_notifier.handler = __ipipe_handle_vm_preemption;
#endif
return &vmx->vcpu;
......
......@@ -7394,6 +7394,9 @@ struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm,
"guest TSC will not be reliable\n");
vcpu = kvm_x86_ops->vcpu_create(kvm, id);
#ifdef CONFIG_IPIPE
vcpu->ipipe_notifier.handler = __ipipe_handle_vm_preemption;
#endif
return vcpu;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment