Skip to content

Commit 4621dc6

Browse files
dwmw2jgross1
authored andcommitted
x86/xen: Don't register Xen IPIs when they aren't going to be used
In the case where xen_have_vector_callback is false, we still register the IPI vectors in xen_smp_intr_init() for the secondary CPUs even though they aren't going to be used. Stop doing that. Signed-off-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Link: https://lore.kernel.org/r/20210106153958.584169-5-dwmw2@infradead.org Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent b36b0fe commit 4621dc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/xen/enlighten_hvm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ static int xen_cpu_up_prepare_hvm(unsigned int cpu)
164164
else
165165
per_cpu(xen_vcpu_id, cpu) = cpu;
166166
rc = xen_vcpu_setup(cpu);
167-
if (rc)
167+
if (rc || !xen_have_vector_callback)
168168
return rc;
169169

170-
if (xen_have_vector_callback && xen_feature(XENFEAT_hvm_safe_pvclock))
170+
if (xen_feature(XENFEAT_hvm_safe_pvclock))
171171
xen_setup_timer(cpu);
172172

173173
rc = xen_smp_intr_init(cpu);

0 commit comments

Comments
 (0)