From: "Jan Beulich" Subject: APIC errors resulting from too early set_timer() Date: Tue, 29 Jun 2010 10:53:39 +0100 Message-ID: <4C29DEC302000078000088B2@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Keir, in c/s 17422 you moved the alloc_pdata scheduler callout into the CPU_UP_PREPARE notifier handler, but the credit scheduler uses set_timer() for a timer bound to the to be brought up CPU from sched_alloc_pdata(), with the resulting send_IPI_mask() targeting the not yet started CPU, thus (on my AMD systems at least) resulting in APIC send accept errors. I see three possible fixes, neither really nice imo: Either a second callout (from CPU_ONLINE), or a credit scheduler specific notifier (handling CPU_ONLINE), or binding the timer initially to the current CPU, and migrate it to the target CPU as soon as that one's online. Do you favor any one of these, or do you see any alternative? Jan