From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDg1C-0006NP-Bd for qemu-devel@nongnu.org; Mon, 17 Sep 2012 14:26:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDg1B-0003Tm-Co for qemu-devel@nongnu.org; Mon, 17 Sep 2012 14:26:02 -0400 Received: from mail-wg0-f53.google.com ([74.125.82.53]:61047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDg1B-0003TO-7B for qemu-devel@nongnu.org; Mon, 17 Sep 2012 14:26:01 -0400 Received: by wgbdr1 with SMTP id dr1so2348764wgb.10 for ; Mon, 17 Sep 2012 11:26:00 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <50576B33.8090507@redhat.com> Date: Mon, 17 Sep 2012 20:25:55 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1347897649-23236-1-git-send-email-pbonzini@redhat.com> <1347897649-23236-5-git-send-email-pbonzini@redhat.com> <50575958.80306@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 04/10] tcg: change cpu_restore_state to return void List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org Il 17/09/2012 19:20, Peter Maydell ha scritto: >> > Couldn't that mean simply that the tb for instance wasn't mapped >> > anywhere? That's the KVM case, at least. > Hmm. For TCG there are certainly some cases where failure to > cpu_restore_state() means that the current CPU state is now broken; > that should be fatal (and I'm not sure there are any cases where > failure is OK. I think calls are generally protected by > checking that tb_find_pc() returned non-NULL, so we shouldn't > be trying to restore state unless we really were in the middle > of a TB that we know about and can translate.) > > I'm not sure what the TB concept means for KVM -- after all KVM > doesn't do any translation... Nothing, but in some cases cpu_restore_state() is called from exception handling helpers or something like that. My knowledge is spotty. Paolo