[PATCH uq/master] kvm: Implement kvm_irqchip_in_kernel like kvm_enabled

2012-01-31 Thread Jan Kiszka
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 -

Re: [PATCH uq/master] kvm: Implement kvm_irqchip_in_kernel like kvm_enabled

2012-02-07 Thread Marcelo Tosatti
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_irqc