From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbvTy-0008Pr-Nz for qemu-devel@nongnu.org; Thu, 31 Oct 2013 12:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbvTs-0001Bv-KD for qemu-devel@nongnu.org; Thu, 31 Oct 2013 12:52:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbvTs-0001Bp-BF for qemu-devel@nongnu.org; Thu, 31 Oct 2013 12:52:24 -0400 Message-ID: <52728ABB.2030808@redhat.com> Date: Thu, 31 Oct 2013 17:52:11 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20131031145234.GC9948@redhat.com> <52726FAA.6000502@redhat.com> <20131031150955.GE9948@redhat.com> <52727695.8080007@redhat.com> <20131031154556.GB10424@redhat.com> <52727D97.3070209@redhat.com> <20131031161404.GA10710@redhat.com> <52728294.9050305@redhat.com> <20131031162652.GA10789@redhat.com> <52728790.7010404@redhat.com> <20131031164828.GA10862@redhat.com> In-Reply-To: <20131031164828.GA10862@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] pvpanic plans? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: pkrempa@redhat.com, lersek@redhat.com, marcel.a@redhat.com, libvir-list@redhat.com, Hu Tao , qemu-devel@nongnu.org, armbru@redhat.com, rhod@redhat.com, kraxel@redhat.com, anthony@codemonkey.ws, lcapitulino@redhat.com, afaerber@suse.de Il 31/10/2013 17:48, Michael S. Tsirkin ha scritto: > But code duplication is bad. So should we make a table of IO_ERROR-like states to avoid code duplication? You have to draw a line somewhere... > I think IO error for example > is broken in that you can't pause but can run then pause. > Seems strange. "cont" moves you out of IO_ERROR. IO_ERROR is already a non-running state (all states except RUNNING are non-running), "stop" is a no-op in non-running states. I don't like it that much either, but it works. Paolo