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. From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuqQQ-0008GH-Td for qemu-devel@nongnu.org; Tue, 07 Feb 2012 14:09:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuqQL-0007hs-Iq for qemu-devel@nongnu.org; Tue, 07 Feb 2012 14:09:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuqQL-0007hi-CF for qemu-devel@nongnu.org; Tue, 07 Feb 2012 14:09:53 -0500 Date: Tue, 7 Feb 2012 17:02:14 -0200 From: Marcelo Tosatti Message-ID: <20120207190214.GC19800@amt.cnet> References: <4F283050.4090102@siemens.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F283050.4090102@siemens.com> Subject: Re: [Qemu-devel] [PATCH uq/master] kvm: Implement kvm_irqchip_in_kernel like kvm_enabled List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Avi Kivity , kvm , qemu-devel 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.