Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbYTx-00030d-9k for qemu-devel@nongnu.org; Fri, 05 Sep 2008 06:24:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbYTu-0002zF-3n for qemu-devel@nongnu.org; Fri, 05 Sep 2008 06:23:59 -0400 Received: from [199.232.76.173] (port=53590 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbYTt-0002yy-DY for qemu-devel@nongnu.org; Fri, 05 Sep 2008 06:23:57 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:57263) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KbYTt-0005jG-Lr for qemu-devel@nongnu.org; Fri, 05 Sep 2008 06:23:57 -0400 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m85ANYL7026096 for ; Fri, 5 Sep 2008 03:23:35 -0700 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1KbYTV-0003ay-ON for qemu-devel@nongnu.org; Fri, 05 Sep 2008 11:23:33 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18625.2213.747769.350207@mariner.uk.xensource.com> Date: Fri, 5 Sep 2008 11:23:33 +0100 Subject: Re: [Qemu-devel] Xen patches - status summary In-Reply-To: <48BF4DBE.6040206@codemonkey.ws> References: <18621.28008.90183.80897@mariner.uk.xensource.com> <48BF4DBE.6040206@codemonkey.ws> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori writes ("Re: [Qemu-devel] Xen patches - status summary"): > Ian Jackson wrote > > I summarised the discussion in my message `[REPOST] [PATCH 0/2]'. > > There has been no recent response. For the reasons I explain, I think > > this patch should be applied now without waiting for any > > ENOSPC-auto-pause feature. > > For the vast majority of users, ENOSPC is the only realistic error that > will occur. I don't think a patch that doesn't handle ENOSPC in a sane > way is really that useful. I find it surprising that you're taking this line. Are you really saying that it is better for the guest's data to be silently corrupted, by pretending that the write happened when in fact it didn't, than it is to give the guest an error indication ? The current code in qemu silently discards many error indications and allows the guest to continue in blissful ignorance. If that's not what you're saying then surely my patch is an improvement ? The fact that it doesn't make the situation as good as you think it could be doesn't mean that it isn't correct or useful. Even if you think my patch is pointless it makes no harmful change to the functionality and lays the groundwork for a more sophisticated treatment: it adds the missing return values to bdrv_ functions, and the capability to return non-ENOSPC errors to guests. It may be the case that for many of qemu's users errors are largely a result of COW ENOSPC, and that this differs from the situation with Xen where more of the users are doing RAID or NAS with more sophisticated guests which can be expected to handle errors properly. That might explain a difference in emphasis and lead to different conclusions about whether (for example) the default should be to pause a VM when ENOSPC is detected. But _even if_ you think the right default behaviour is actually to pause a VM when ENOSPC is detected, there are certainly users and contexts who will want a different configuration (in the Xen case it's very tricky for qemu to unilaterally pause the VM). Ian.