From: Keir Fraser Subject: Re: Announcing OpenBSD/amd64 Xen port Date: Fri, 9 Jun 2006 10:27:12 +0100 Message-ID: References: <4487F26A.10506@adviseo.fr> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4487F26A.10506@adviseo.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mathieu Ropert Cc: misc@openbsd.org, xen-devel@lists.xensource.com, xen-users@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 8 Jun 2006, at 10:48, Mathieu Ropert wrote: > - events/clock issue: there seems to be a race condition leading to > clock not ticking, hence putting system to sleep till a > keyboard/network/disk interrupt is received. The ticker doesn't tick when you block. Your idle loop needs to disable interrupts, set a one-shot timer, then block. See safe_halt() in our Linux source tree (arch/i386/kernel/time-xen.c) -- the function expects to be called with interrupts disabled and caller should also have already checked for any other threads being runnable. -- Keir