From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RImpf-0000B7-Sn for qemu-devel@nongnu.org; Tue, 25 Oct 2011 15:38:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RImpe-0005pg-Vo for qemu-devel@nongnu.org; Tue, 25 Oct 2011 15:38:43 -0400 Message-ID: <4EA7103A.8080809@freescale.com> Date: Tue, 25 Oct 2011 14:38:34 -0500 From: Scott Wood MIME-Version: 1.0 References: <1318569548-8537-1-git-send-email-david@gibson.dropbear.id.au> <20111014063631.GD4580@truffala.fritz.box> <600B92AB-F318-4F7B-BF88-C142BB2676F3@suse.de> In-Reply-To: <600B92AB-F318-4F7B-BF88-C142BB2676F3@suse.de> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppcr: Avoid decrementer related kvm exits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson On 10/14/2011 01:44 AM, Alexander Graf wrote: > Wouldn't a simple > > if (kvm_enabled()) { > return; > } > > in the beginning of the function make more sense? There's no code connecting the in-qemu and the in-kvm decrementors atm, so any logic applying to the in-qemu one is moot for kvm. On book3e at least, we can use sregs to set the decrementer, and we probably want this to happen on reset. -Scott