From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH uq/master] kvm: Implement kvm_irqchip_in_kernel like kvm_enabled Date: Tue, 7 Feb 2012 17:02:14 -0200 Message-ID: <20120207190214.GC19800@amt.cnet> References: <4F283050.4090102@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm , qemu-devel To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57761 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756048Ab2BGTJz (ORCPT ); Tue, 7 Feb 2012 14:09:55 -0500 Content-Disposition: inline In-Reply-To: <4F283050.4090102@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jan 31, 2012 at 07:17:52PM +0100, Jan Kiszka wrote: > To both avoid that kvm_irqchip_in_kernel always has to be paired with > kvm_enabled and that the former ends up in a function call, implement it > like the latter. This means keeping the state in a global variable and > defining kvm_irqchip_in_kernel as a preprocessor macro. > > Signed-off-by: Jan Kiszka Applied, thanks.