xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [xen-devel] create irq failed due to move_cleanup_count always being set
@ 2012-01-04  4:37 Liuyongan
  2012-01-04 11:38 ` Andrew Cooper
  0 siblings, 1 reply; 10+ messages in thread
From: Liuyongan @ 2012-01-04  4:37 UTC (permalink / raw)
  To: xen-devel@lists.xensource.com; +Cc: Qianhuibin

Hi, all
   
    I'm using xen-4.0 to do a test. And when I create a domain, it failed due to create_irq() failure. As only 33 domains were successfully created and destroyed before I got the continuous failures, and the domain just before the failure was properly destroyed(at least destroy_irq() was properly called, which will clear move_in_progress, according to the prink-message). So I can conclude for certain that __assign_irq_vector failed due to move_cleanup_count always being set. 

//this is the normal case when create and destroy domain whose id is 31;
(XEN) irq.c:1232:d0 bind pirq 79, irq 77, share flag:0
(XEN) irq.c:1377: dom31: pirq 79, irq 77 force unbind
(XEN) irq.c:1593: dom31: forcing unbind of pirq 79
(XEN) irq.c:223, destroy irq 77

//domain id 32 is created and destroyed correctly also.
(XEN) irq.c:1232:d0 bind pirq 79, irq 77, share flag:0
(XEN) irq.c:1377: dom32: pirq 79, irq 77 force unbind
(XEN) irq.c:1593: dom32: forcing unbind of pirq 79
(XEN) irq.c:223, destroy irq 77

//all the subsequent domain creation failed, below lists only 3 times:
(XEN) physdev.c:88: dom33: can't create irq for msi!
(XEN) physdev.c:88: dom34: can't create irq for msi!
(XEN) physdev.c:88: dom35: can't create irq for msi!

     I think this might be a bug and might have fixed, so I compare my code with 4.1.2 and search the mail list for potential patches. (http://xen.markmail.org/search/?q=move_cleanup_count#query:move_cleanup_count+page:6+mid:fpkrafqbeyiauvhs+state:results) submit a patch which add locks in __assign_irq_vector. Can anybody explain why this lock is needed? Or is there a patch that might fix my bug? Thx.

    Addition message: my board is arch-x86, no domains left when failed to create new ones, create_irq failure lasted one day until I reboot the board, and the irq number allocated is used certainly for a msi dev.

Yong an Liu
2012.1.4

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <mailman.5905.1325711316.12970.xen-devel@lists.xensource.com>]

end of thread, other threads:[~2012-01-09  4:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-04  4:37 [xen-devel] create irq failed due to move_cleanup_count always being set Liuyongan
2012-01-04 11:38 ` Andrew Cooper
2012-01-04 11:42   ` Andrew Cooper
     [not found] <mailman.5905.1325711316.12970.xen-devel@lists.xensource.com>
2012-01-05  6:13 ` Liuyongan
2012-01-06  6:04   ` Liuyongan
2012-01-06 11:00     ` Andrew Cooper
2012-01-06 11:50       ` Liuyongan
2012-01-06 12:18         ` Andrew Cooper
2012-01-07 10:33           ` Liuyongan
2012-01-09  4:50             ` Liuyongan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).