Received: from eggs.gnu.org ([140.186.70.92]:45630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJgr4-00043b-C8 for qemu-devel@nongnu.org; Fri, 28 Oct 2011 03:27:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJgr2-00052O-Qi for qemu-devel@nongnu.org; Fri, 28 Oct 2011 03:27:54 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: <4EA7103A.8080809@freescale.com> Date: Fri, 28 Oct 2011 09:27:47 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1318569548-8537-1-git-send-email-david@gibson.dropbear.id.au> <20111014063631.GD4580@truffala.fritz.box> <600B92AB-F318-4F7B-BF88-C142BB2676F3@suse.de> <4EA7103A.8080809@freescale.com> 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: Scott Wood Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson On 25.10.2011, at 21:38, Scott Wood wrote: > On 10/14/2011 01:44 AM, Alexander Graf wrote: >> Wouldn't a simple >>=20 >> if (kvm_enabled()) { >> return; >> } >>=20 >> 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. >=20 > On book3e at least, we can use sregs to set the decrementer, and we > probably want this to happen on reset. Sure. if (kvm_enabled()) { kvmppc_set_dec(x); return; } Alex