All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Cc: Gleb Natapov <gleb@redhat.com>
Subject: Re: [Qemu-devel] [6388] Stop VM on ENOSPC error.
Date: Wed, 25 Feb 2009 12:27:53 -0600	[thread overview]
Message-ID: <49A58DA9.6090502@codemonkey.ws> (raw)
In-Reply-To: <20090225172051.GT24969@redhat.com>

Daniel P. Berrange wrote:
> On Wed, Feb 25, 2009 at 10:55:25AM -0600, Anthony Liguori wrote:
>   
>> Anthony Liguori wrote:
>>     
>>> Revision: 6388
>>>          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6388
>>> Author:   aliguori
>>> Date:     2009-01-21 18:59:04 +0000 (Wed, 21 Jan 2009)
>>>
>>> Log Message:
>>> -----------
>>> Stop VM on ENOSPC error. (Gleb Natapov)
>>>
>>> This version of the patch adds new option "werror" to -drive flag.
>>> Possible values are:
>>>
>>> report    - report errors to a guest as IO errors
>>> ignore    - continue as if nothing happened
>>> stop      - stop VM on any error and retry last command on resume
>>> enospc    - stop vm on ENOSPC error and retry last command on resume
>>>            all other errors are reported to a guest.
>>>
>>> Default is "report" to maintain current behaviour.
>>>  
>>>       
>> I recently got burnt by the default being "report".  I was doing an 
>> installation and ran out of disk space.  The guest did not do anything 
>> intelligible with the error reports and froze very hard (as you'd expect).
>>
>> Any objection to changing to default to enospc?
>>     
>
> From a managment POV having QEMU change its state from running to
> paused behind our back is hard. You don't want to have to poll on
> 'info state' to see if the VM has paused, and QEMU provides us no
> async notification for this yet. So at this time, if QEMU auto-pauses
> we can't notice this change, and so again it'll just appear to the
> user as if it froze.
>   

I appreciate the difficulty but I don't think report is very much better 
from your perspective if it results in the guest completely freezing.

Regards,

Anthony Liguori

> If we get async notifications available via the monitor, then making 
> the default enospc is very sensible.
>
> Daniel
>   

  parent reply	other threads:[~2009-02-25 18:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-21 18:59 [Qemu-devel] [6388] Stop VM on ENOSPC error Anthony Liguori
2009-02-25 16:55 ` Anthony Liguori
2009-02-25 17:04   ` Gleb Natapov
2009-02-25 17:25     ` Avi Kivity
2009-02-25 17:38       ` Jamie Lokier
2009-02-26  9:20         ` Avi Kivity
2009-02-26  9:24           ` Gleb Natapov
2009-02-25 17:34     ` Daniel P. Berrange
2009-02-25 18:31       ` Anthony Liguori
2009-02-25 18:48         ` Jamie Lokier
2009-02-25 19:29           ` Anthony Liguori
2009-02-25 18:36       ` Jamie Lokier
2009-02-25 17:11   ` Avi Kivity
2009-02-25 18:26     ` Anthony Liguori
2009-02-26  9:17       ` Avi Kivity
2009-02-25 17:20   ` Daniel P. Berrange
2009-02-25 18:08     ` [Qemu-devel] " Jan Kiszka
2009-02-25 18:27     ` Anthony Liguori [this message]
2009-02-25 18:51     ` [Qemu-devel] " Jamie Lokier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49A58DA9.6090502@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=berrange@redhat.com \
    --cc=gleb@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.