← Back to team overview

kernel-packages team mailing list archive

[Bug 1007002] Re: Xen VCPUs hotplug does not work

 

I am closing this as "won't fix" for the lack of a better closing code.
The described problem should be fixed in Precise or later (which also do
not use a non-standard kernel to run under Xen). I cannot remember
whether it was in the end also working on Lucid but given the limited
time of support left there and that there are now two more recent LTS
versions which should work better I do not think there will be any
change on Lucid, even if the old issue persisted. Feel  free to re-open
if you think I did the wrong thing.

** Changed in: linux (Ubuntu)
       Status: Confirmed => Won't Fix

** Changed in: linux (Ubuntu)
     Assignee: Stefan Bader (smb) => (unassigned)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1007002

Title:
  Xen VCPUs hotplug does not work

Status in linux package in Ubuntu:
  Won't Fix

Bug description:
  Hi,
    I discovered a problem with Xen and Ubuntu installed with default kernel installed (linux-image-generic). This occur with either version 10.04 and 10.10. I used XenServer versions 6.0 and an updated version (currently not released, I'm a Xen developer). Problem does not occur with linux-image-ec2 (but also with -server and -virtual ones). Trying to start machine with less CPU than the maximum (or trying to remove CPU after system is up) cause an OOPS in arch/x86/xen/spinlock.c.

  The OOPS is

  [    0.171019] Cannot set affinity for irq 0
  [    0.171027] Broke affinity for irq 6
  [    0.171030] Broke affinity for irq 7
  [    0.171033] Broke affinity for irq 8
  [    0.171035] Broke affinity for irq 9
  [    0.171038] Broke affinity for irq 10
  [    0.171040] Broke affinity for irq 11
  [    0.180000] ------------[ cut here ]------------
  [    0.180000] kernel BUG at /build/buildd/linux-2.6.32/arch/x86/xen/spinlock.c:343!
  [    0.180000] invalid opcode: 0000 [#1] SMP 
  [    0.180000] last sysfs file: 
  [    0.180000] CPU 4 
  [    0.180000] Modules linked in:
  [    0.180000] Pid: 46, comm: kstop/4 Not tainted 2.6.32-33-generic #72-Ubuntu 
  [    0.180000] RIP: e030:[<ffffffff8100fcc4>]  [<ffffffff8100fcc4>] dummy_handler+0x4/0x10
  [    0.180000] RSP: e02b:ffff880003414e88  EFLAGS: 00010046
  [    0.180000] RAX: ffffffffff57b000 RBX: ffff88003fc1b960 RCX: 0000000000000000
  [    0.180000] RDX: 0000000000400200 RSI: 0000000000000000 RDI: 0000000000000019
  [    0.180000] RBP: ffff880003414e88 R08: 0000000000000000 R09: 0000000000000000
  [    0.180000] R10: ffff88000341c028 R11: 0000000000012ed0 R12: 0000000000000000
  [    0.180000] R13: 0000000000000000 R14: 0000000000000019 R15: 0000000000000100
  [    0.180000] FS:  0000000000000000(0000) GS:ffff880003411000(0000) knlGS:0000000000000000
  [    0.180000] CS:  e033 DS: 0000 ES: 0000 CR0: 000000008005003b
  [    0.180000] CR2: 0000000000000000 CR3: 0000000001001000 CR4: 0000000000000660
  [    0.180000] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
  [    0.180000] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
  [    0.180000] Process kstop/4 (pid: 46, threadinfo ffff88003e484000, task ffff88003e47ade0)
  [    0.180000] Stack:
  [    0.180000]  ffff880003414ed8 ffffffff810c4d80 ffffffff8100f322 0000000000012ed0
  [    0.180000] <0> ffff88000341c028 ffff88003ee1b900 0000000000000019 0000000000000800
  [    0.180000] <0> 0000000000000001 0000000000000100 ffff880003414ef8 ffffffff810c70b2
  [    0.180000] Call Trace:
  [    0.180000]  <IRQ> 
  [    0.180000]  [<ffffffff810c4d80>] handle_IRQ_event+0x60/0x170
  [    0.180000]  [<ffffffff8100f322>] ? check_events+0x12/0x20
  [    0.180000]  [<ffffffff810c70b2>] handle_percpu_irq+0x42/0x80
  [    0.180000]  [<ffffffff81014d12>] handle_irq+0x22/0x30
  [    0.180000]  [<ffffffff8131ee29>] xen_evtchn_do_upcall+0x199/0x1c0
  [    0.180000]  [<ffffffff810b63a0>] ? stop_cpu+0x0/0xf0
  [    0.180000]  [<ffffffff8101333e>] xen_do_hypervisor_callback+0x1e/0x30
  [    0.180000]  <EOI> 
  [    0.180000]  [<ffffffff810b63a0>] ? stop_cpu+0x0/0xf0
  [    0.180000]  [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1010
  [    0.180000]  [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1010
  [    0.180000]  [<ffffffff8100eb7d>] ? xen_force_evtchn_callback+0xd/0x10
  [    0.180000]  [<ffffffff8100f322>] ? check_events+0x12/0x20
  [    0.180000]  [<ffffffff8100f2c9>] ? xen_irq_enable_direct_end+0x0/0x7
  [    0.180000]  [<ffffffff810b645f>] ? stop_cpu+0xbf/0xf0
  [    0.180000]  [<ffffffff810800e7>] ? run_workqueue+0xc7/0x1a0
  [    0.180000]  [<ffffffff81080263>] ? worker_thread+0xa3/0x110
  [    0.180000]  [<ffffffff81084cc0>] ? autoremove_wake_function+0x0/0x40
  [    0.180000]  [<ffffffff810801c0>] ? worker_thread+0x0/0x110
  [    0.180000]  [<ffffffff81084946>] ? kthread+0x96/0xa0
  [    0.180000]  [<ffffffff810131ea>] ? child_rip+0xa/0x20
  [    0.180000]  [<ffffffff810123d1>] ? int_ret_from_sys_call+0x7/0x1b
  [    0.180000]  [<ffffffff81012b5d>] ? retint_restore_args+0x5/0x6
  [    0.180000]  [<ffffffff810131e0>] ? child_rip+0x0/0x20
  [    0.180000] Code: 89 e5 c9 0f 95 c0 c3 55 b8 01 00 00 00 86 07 84 c0 48 89 e5 0f 94 c0 c9 0f b6 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 <0f> 0b eb fe 0f 1f 84 00 00 00 00 00 55 ba ff ff ff ff 48 89 e5 
  [    0.180000] RIP  [<ffffffff8100fcc4>] dummy_handler+0x4/0x10
  [    0.180000]  RSP <ffff880003414e88>
  [    0.180000] ---[ end trace f17e946d22a56015 ]---
  [    0.180579] ------------[ cut here ]------------
  [    0.180589] kernel BUG at /build/buildd/linux-2.6.32/arch/x86/xen/spinlock.c:343!
  [    0.180595] invalid opcode: 0000 [#2] SMP 
  [    0.180600] last sysfs file: 
  [    0.180602] CPU 0 
  [    0.180606] Modules linked in:
  [    0.180612] Pid: 42, comm: kstop/0 Tainted: G      D    2.6.32-33-generic #72-Ubuntu 
  [    0.180618] RIP: e030:[<ffffffff8100fcc4>]  [<ffffffff8100fcc4>] dummy_handler+0x4/0x10
  [    0.180630] RSP: e02b:ffff88000339ce88  EFLAGS: 00010046
  [    0.180633] RAX: ffffffffff57b000 RBX: ffff88003fc1b060 RCX: 0000000000000000
  [    0.180638] RDX: 0000000000400200 RSI: 0000000000000000 RDI: 0000000000000001
  [    0.180641] RBP: ffff88000339ce88 R08: 0000000000000000 R09: 0000000000000000
  [    0.180644] R10: ffff8800033a4028 R11: 0000000000012ed0 R12: 0000000000000000
  [    0.180647] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000100
  [    0.180653] FS:  0000000000000000(0000) GS:ffff880003399000(0000) knlGS:0000000000000000
  [    0.180656] CS:  e033 DS: 0000 ES: 0000 CR0: 000000008005003b
  [    0.180660] CR2: 0000000000000000 CR3: 0000000001001000 CR4: 0000000000000660
  [    0.180663] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
  [    0.180666] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
  [    0.180670] Process kstop/0 (pid: 42, threadinfo ffff88003e454000, task ffff88003ef3c4d0)
  [    0.180672] Stack:
  [    0.180675]  ffff88000339ced8 ffffffff810c4d80 ffffffff8100f322 0000000000012ed0
  [    0.180680] <0> ffff8800033a4028 ffffffff817af300 0000000000000001 0000000000000000
  [    0.180686] <0> 0000000000000001 0000000000000100 ffff88000339cef8 ffffffff810c70b2
  [    0.180692] Call Trace:
  [    0.180695]  <IRQ> 
  [    0.180701]  [<ffffffff810c4d80>] handle_IRQ_event+0x60/0x170
  [    0.180707]  [<ffffffff8100f322>] ? check_events+0x12/0x20
  [    0.180711]  [<ffffffff810c70b2>] handle_percpu_irq+0x42/0x80
  [    0.180719]  [<ffffffff81014d12>] handle_irq+0x22/0x30
  [    0.180729]  [<ffffffff8131ee29>] xen_evtchn_do_upcall+0x199/0x1c0
  [    0.180737]  [<ffffffff810b63a0>] ? stop_cpu+0x0/0xf0
  [    0.180743]  [<ffffffff8101333e>] xen_do_hypervisor_callback+0x1e/0x30
  [    0.180747]  <EOI> 
  [    0.180750]  [<ffffffff810b63a0>] ? stop_cpu+0x0/0xf0
  [    0.180756]  [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1010
  [    0.180760]  [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1010
  [    0.180764]  [<ffffffff8100eb7d>] ? xen_force_evtchn_callback+0xd/0x10
  [    0.180768]  [<ffffffff8100f322>] ? check_events+0x12/0x20
  [    0.180772]  [<ffffffff8100f2c9>] ? xen_irq_enable_direct_end+0x0/0x7
  [    0.180776]  [<ffffffff810b645f>] ? stop_cpu+0xbf/0xf0
  [    0.180782]  [<ffffffff810800e7>] ? run_workqueue+0xc7/0x1a0
  [    0.180786]  [<ffffffff81080263>] ? worker_thread+0xa3/0x110
  [    0.180791]  [<ffffffff81084cc0>] ? autoremove_wake_function+0x0/0x40
  [    0.180796]  [<ffffffff810801c0>] ? worker_thread+0x0/0x110
  [    0.180799]  [<ffffffff81084946>] ? kthread+0x96/0xa0
  [    0.180803]  [<ffffffff810131ea>] ? child_rip+0xa/0x20
  [    0.180808]  [<ffffffff810123d1>] ? int_ret_from_sys_call+0x7/0x1b
  [    0.180812]  [<ffffffff81012b5d>] ? retint_restore_args+0x5/0x6
  [    0.180815]  [<ffffffff810131e0>] ? child_rip+0x0/0x20
  [    0.180817] Code: 89 e5 c9 0f 95 c0 c3 55 b8 01 00 00 00 86 07 84 c0 48 89 e5 0f 94 c0 c9 0f b6 c0 c3 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 <0f> 0b eb fe 0f 1f 84 00 00 00 00 00 55 ba ff ff ff ff 48 89 e5 
  [    0.180859] RIP  [<ffffffff8100fcc4>] dummy_handler+0x4/0x10
  [    0.180863]  RSP <ffff88000339ce88>
  [    0.180868] ---[ end trace f17e946d22a56016 ]---
  [    0.180871] Kernel panic - not syncing: Fatal exception in interrupt
  [    0.180874] Pid: 42, comm: kstop/0 Tainted: G      D    2.6.32-33-generic #72-Ubuntu
  [    0.180877] Call Trace:
  [    0.180879]  <IRQ>  [<ffffffff8153ea9e>] panic+0x78/0x139
  [    0.180888]  [<ffffffff81542a9a>] oops_end+0xea/0xf0
  [    0.180892]  [<ffffffff8101613b>] die+0x5b/0x90
  [    0.180896]  [<ffffffff81542334>] do_trap+0xc4/0x170
  [    0.180900]  [<ffffffff81013ee5>] do_invalid_op+0x95/0xb0
  [    0.180904]  [<ffffffff8100fcc4>] ? dummy_handler+0x4/0x10
  [    0.180908]  [<ffffffff8106084a>] ? update_curr_rt+0x12a/0x230
  [    0.180913]  [<ffffffff81086b2c>] ? run_posix_cpu_timers+0x2c/0x260
  [    0.180918]  [<ffffffff8103886f>] ? pvclock_clocksource_read+0x4f/0xb0
  [    0.180922]  [<ffffffff81012f7b>] invalid_op+0x1b/0x20
  [    0.180926]  [<ffffffff8100fcc4>] ? dummy_handler+0x4/0x10
  [    0.180930]  [<ffffffff810c4d80>] handle_IRQ_event+0x60/0x170
  [    0.180933]  [<ffffffff8100f322>] ? check_events+0x12/0x20
  [    0.180937]  [<ffffffff810c70b2>] handle_percpu_irq+0x42/0x80
  [    0.180941]  [<ffffffff81014d12>] handle_irq+0x22/0x30
  [    0.180945]  [<ffffffff8131ee29>] xen_evtchn_do_upcall+0x199/0x1c0
  [    0.180949]  [<ffffffff810b63a0>] ? stop_cpu+0x0/0xf0
  [    0.180952]  [<ffffffff8101333e>] xen_do_hypervisor_callback+0x1e/0x30
  [    0.180954]  <EOI>  [<ffffffff810b63a0>] ? stop_cpu+0x0/0xf0
  [    0.180961]  [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1010
  [    0.180965]  [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1010
  [    0.180969]  [<ffffffff8100eb7d>] ? xen_force_evtchn_callback+0xd/0x10
  [    0.180972]  [<ffffffff8100f322>] ? check_events+0x12/0x20
  [    0.180976]  [<ffffffff8100f2c9>] ? xen_irq_enable_direct_end+0x0/0x7
  [    0.180980]  [<ffffffff810b645f>] ? stop_cpu+0xbf/0xf0
  [    0.180984]  [<ffffffff810800e7>] ? run_workqueue+0xc7/0x1a0
  [    0.180988]  [<ffffffff81080263>] ? worker_thread+0xa3/0x110
  [    0.180992]  [<ffffffff81084cc0>] ? autoremove_wake_function+0x0/0x40
  [    0.180996]  [<ffffffff810801c0>] ? worker_thread+0x0/0x110
  [    0.181000]  [<ffffffff81084946>] ? kthread+0x96/0xa0
  [    0.181003]  [<ffffffff810131ea>] ? child_rip+0xa/0x20
  [    0.181007]  [<ffffffff810123d1>] ? int_ret_from_sys_call+0x7/0x1b
  [    0.181011]  [<ffffffff81012b5d>] ? retint_restore_args+0x5/0x6
  [    0.181014]  [<ffffffff810131e0>] ? child_rip+0x0/0x20
  [    0.180000] Kernel panic - not syncing: Fatal exception in interrupt
  [    0.180000] Pid: 46, comm: kstop/4 Tainted: G      D    2.6.32-33-generic #72-Ubuntu
  [    0.180000] Call Trace:
  [    0.180000]  <IRQ>  [<ffffffff8153ea9e>] panic+0x78/0x139
  [    0.180000]  [<ffffffff81542a9a>] oops_end+0xea/0xf0
  [    0.180000]  [<ffffffff8101613b>] die+0x5b/0x90
  [    0.180000]  [<ffffffff81542334>] do_trap+0xc4/0x170
  [    0.180000]  [<ffffffff81013ee5>] do_invalid_op+0x95/0xb0
  [    0.180000]  [<ffffffff8100fcc4>] ? dummy_handler+0x4/0x10
  [    0.180000]  [<ffffffff8106084a>] ? update_curr_rt+0x12a/0x230
  [    0.180000]  [<ffffffff81086b2c>] ? run_posix_cpu_timers+0x2c/0x260
  [    0.180000]  [<ffffffff8103886f>] ? pvclock_clocksource_read+0x4f/0xb0
  [    0.180000]  [<ffffffff81012f7b>] invalid_op+0x1b/0x20
  [    0.180000]  [<ffffffff8100fcc4>] ? dummy_handler+0x4/0x10
  [    0.180000]  [<ffffffff810c4d80>] handle_IRQ_event+0x60/0x170
  [    0.180000]  [<ffffffff8100f322>] ? check_events+0x12/0x20
  [    0.180000]  [<ffffffff810c70b2>] handle_percpu_irq+0x42/0x80
  [    0.180000]  [<ffffffff81014d12>] handle_irq+0x22/0x30
  [    0.180000]  [<ffffffff8131ee29>] xen_evtchn_do_upcall+0x199/0x1c0
  [    0.180000]  [<ffffffff810b63a0>] ? stop_cpu+0x0/0xf0
  [    0.180000]  [<ffffffff8101333e>] xen_do_hypervisor_callback+0x1e/0x30
  [    0.180000]  <EOI>  [<ffffffff810b63a0>] ? stop_cpu+0x0/0xf0
  [    0.180000]  [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1010
  [    0.180000]  [<ffffffff8100922a>] ? hypercall_page+0x22a/0x1010
  [    0.180000]  [<ffffffff8100eb7d>] ? xen_force_evtchn_callback+0xd/0x10
  [    0.180000]  [<ffffffff8100f322>] ? check_events+0x12/0x20
  [    0.180000]  [<ffffffff8100f2c9>] ? xen_irq_enable_direct_end+0x0/0x7
  [    0.180000]  [<ffffffff810b645f>] ? stop_cpu+0xbf/0xf0
  [    0.180000]  [<ffffffff810800e7>] ? run_workqueue+0xc7/0x1a0
  [    0.180000]  [<ffffffff81080263>] ? worker_thread+0xa3/0x110
  [    0.180000]  [<ffffffff81084cc0>] ? autoremove_wake_function+0x0/0x40
  [    0.180000]  [<ffffffff810801c0>] ? worker_thread+0x0/0x110
  [    0.180000]  [<ffffffff81084946>] ? kthread+0x96/0xa0
  [    0.180000]  [<ffffffff810131ea>] ? child_rip+0xa/0x20
  [    0.180000]  [<ffffffff810123d1>] ? int_ret_from_sys_call+0x7/0x1b
  [    0.180000]  [<ffffffff81012b5d>] ? retint_restore_args+0x5/0x6
  [    0.180000]  [<ffffffff810131e0>] ? child_rip+0x0/0x20

  Looking at http://www.gossamer-threads.com/lists/xen/devel/195525 and
  http://xen.1045712.n5.nabble.com/PATCH-xen-events-do-not-unmask-
  polled-ipis-on-restore-td3241695.html problem is known but for some
  reason patch didn't get integrated in normal kernels.

  Can you integrate the patch (from -ec2 or official Linux?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1007002/+subscriptions