Commit 22b8cb0d 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 <>
parent 44abf0ab
......@@ -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;
vmx->vcpu.ipipe_notifier.handler = __ipipe_handle_vm_preemption;
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);
vcpu->ipipe_notifier.handler = __ipipe_handle_vm_preemption;
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