All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Xen-devel List <xen-devel@lists.xen.org>
Subject: Boot regression following c/s "x86/IO-APIC: fix setup of Xen internally used IRQs"
Date: Fri, 13 Nov 2015 13:16:38 +0000	[thread overview]
Message-ID: <5645E2B6.9060002@citrix.com> (raw)

(XEN) [    0.000000] IRQ limits: 72 GSI, 15304 MSI/MSI-X
(XEN) [    0.000000] Switched to APIC driver x2apic_cluster.
<snip>
(XEN) [    6.333211] I/O virtualisation enabled
(XEN) [    6.339317]  - Dom0 mode: Relaxed
(XEN) [    6.344720] Interrupt remapping enabled
(XEN) [    6.350864] Enabled directed EOI with ioapic_ack_old on!
(XEN) [    6.359325] ENABLING IO-APIC IRQs
(XEN) [    6.364724]  -> Using old ACK method
(XEN) [    6.370601] ----[ Xen-4.7.0-xs108373-d  x86_64  debug=y  Not
tainted ]----
(XEN) [    6.381270] CPU:    0
(XEN) [    6.385469] RIP:    e008:[<ffff82d0801c7777>]
x2apic.c#cpu_mask_to_apicid_x2apic_cluster+0xa4/0x1b9
(XEN) [    6.398376] RFLAGS: 0000000000010246   CONTEXT: hypervisor
(XEN) [    6.406171] rax: ffff82d08039d598   rbx: ffff83023ffee800  
rcx: 0000000000000005
(XEN) [    6.417316] rdx: 80007d2f7fc63a00   rsi: 0000000000000050  
rdi: ffff83023ffee800
(XEN) [    6.428464] rbp: ffff82d080317d68   rsp: ffff82d080317d38  
r8:  07ffffffffffffff
(XEN) [    6.439682] r9:  0000000000000020   r10: 0000001000000010  
r11: 0000ffff0000ffff
(XEN) [    6.450841] r12: 0000000000000005   r13: 0000000000000000  
r14: 0000000000000005
(XEN) [    6.462068] r15: 0000000000000004   cr0: 000000008005003b  
cr4: 00000000000006e0
(XEN) [    6.473220] cr3: 00000000788b0000   cr2: 0000000000000000
(XEN) [    6.481007] ds: 0000   es: 0000   fs: 0000   gs: 0000   ss:
0000   cs: e008
(XEN) [    6.491572] Xen stack trace from rsp=ffff82d080317d38:
<snip>
(XEN) [    6.724830] Xen call trace:
(XEN) [    6.729658]    [<ffff82d0801c7777>]
x2apic.c#cpu_mask_to_apicid_x2apic_cluster+0xa4/0x1b9
(XEN) [    6.741671]    [<ffff82d0802d5db7>] setup_IO_APIC+0x998/0x124e
(XEN) [    6.749868]    [<ffff82d0802de8a1>] smp_prepare_cpus+0x241/0x26a
(XEN) [    6.758251]    [<ffff82d0802de040>] __start_xen+0x209b/0x25d1
(XEN) [    6.766335]    [<ffff82d0801000f3>] __high_start+0x53/0x60

The #GP fault is from a poisoned per_cpu area, and exact fault is from
the calculation of dest in:

static unsigned int cpu_mask_to_apicid_x2apic_cluster(const cpumask_t
*cpumask)
{
    unsigned int cpu = cpumask_any(cpumask);
    unsigned int dest = per_cpu(cpu_2_logical_apicid, cpu);
    const cpumask_t *cluster_cpus = per_cpu(cluster_cpus, cpu);


This is affecting multiple machines in the XenServer test pool, all of
which use the x2apic_cluster APIC driver.

~Andrew

                 reply	other threads:[~2015-11-13 13:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5645E2B6.9060002@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.