qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4] Stop VM on ENOSPC error.


From: Jamie Lokier
Subject: Re: [Qemu-devel] [PATCH v4] Stop VM on ENOSPC error.
Date: Tue, 20 Jan 2009 18:19:43 +0000
User-agent: Mutt/1.5.13 (2006-08-11)

Ian Jackson wrote:
> Gleb Natapov writes ("Re: [Qemu-devel] [PATCH v4] Stop VM on ENOSPC error."):
> > I would like to abolish the blocking calls from all file formats, but in
> > reality it is almost impossible. Qcow2 metadata updates is a big mess to
> > do asynchronously. The best thing we can do is to move it to another thread.
> 
> Err, I wasn't suggesting it should be done in each format in that way.
> It could be done once in block.c, before the specific format write
> method is called.
> 
> So the formats would still write synchronously, and would pass errors
> up to their parent formats, until it reenters the generic block code
> where the retry would take place.  At that point the call from the
> device emulation would necessariy be asynchronous.

Most of the block I/O is moving to threads anyway - if only to
"emulate" AIO.

If raw block I/O is going to use helper threads which do blocking I/O,
it may be just as fast, and much simpler, to put the QCOW2 format
block writes (including metadata) into those helper threads, instead
of (avoiding) rewriting QCOW2 to do everything with AIO calls.

-- Jamie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]