From: Keir Fraser Subject: Re: Windows Bug Check 0x101 issue Date: Mon, 24 Mar 2008 11:05:44 +0000 Message-ID: References: <7k4pawfnxs.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <7k4pawfnxs.fsf@pingu.sky.yk.fujitsu.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kouya Shimura , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 24/3/08 09:53, "Kouya Shimura" wrote: > An attached patch fixes it. However I think the root cause is > that a timer event can't interrupt an i/o emulation. > How should we fix it? The attached patch also makes the fsync asynchronous, which seems a bit dangerous if we acknowledge the flush to the guest meanwhile. If whatever happens on return from raw_flush() could be deferred to aio_fsync_cb() then this might be a good fix. In general timer events *cannot* interrupt i/o emulation, as we cannot really take an interrupt in the middle of executing an instruction. That would be a mess! However in this case I guess the IDE/SCSI device model could allow asynchronous reporting of flush completion to the guest, and this new aspect of the device model would obviously tie into your patch, being done on aio_fsync_cb(). -- Keir