qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] bdrv_flush error handling


From: Ian Jackson
Subject: Re: [Qemu-devel] [PATCH] bdrv_flush error handling
Date: Wed, 20 Feb 2008 16:13:26 +0000

Daniel P. Berrange writes ("Re: [Qemu-devel] [PATCH] bdrv_flush error 
handling"):
> On Wed, Feb 20, 2008 at 03:53:46PM +0000, Ian Jackson wrote:
> > Finally, it would perhaps be best if the block device emulators wrote
> > to the qemu console to complain if they give write errors.  Otherwise
> > the errno value and other important information will be lost, which
> > makes debugging hard.
> 
> If by 'qemu console' you mean stderr, then fine, but please don't
> spew log messages to the  monitor console, because that'll make it
> very hard to interact with reliably from management tools. 

Is it permitted, then, to generally print to qemu's stderr from inside
a device model ?  This seems to be done quite a bit during
initialisation, and quite a bit in various rather less common kinds of
device, but not routinely in the main emulations.

Perhaps it would be better to invent a `logprintf' function to make it
easier to redirect these kind of messages later if that turns out to
be desirable ?

Ian.




reply via email to

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