From: Olaf Hering Date: Thu, 25 Aug 2011 16:30:48 +0000 (+0200) Subject: xen/pv-on-hvm kexec: rebind virqs to existing eventchannel ports X-Git-Tag: v3.2-rc1~192^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62cc5fc7b2e0218144e162afb8191db9b924b5e6;p=pandora-kernel.git xen/pv-on-hvm kexec: rebind virqs to existing eventchannel ports During a kexec boot some virqs such as timer and debugirq were already registered by the old kernel. The hypervisor will return -EEXISTS from the new EVTCHNOP_bind_virq request and the BUG in bind_virq_to_irq() triggers. Catch the -EEXISTS error and loop through all possible ports to find what port belongs to the virq/cpu combo. Signed-off-by: Olaf Hering [v2: - use NR_EVENT_CHANNELS instead of private MAX_EVTCHNS] Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed