]> git.proxmox.com Git - qemu.git/commit
kvm: Implement kvm_irqchip_in_kernel like kvm_enabled
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 31 Jan 2012 18:17:52 +0000 (19:17 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 8 Feb 2012 17:57:50 +0000 (15:57 -0200)
commit3d4b26494fdce89354dac49ef909356ccda77914
tree50dae556e5fd2b3a18cd29731ee85c599d2b9260
parent39d6960aabfd90bf0bf7ba38d69e918962b70b16
kvm: Implement kvm_irqchip_in_kernel like kvm_enabled

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 <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/pc.c
hw/pc_piix.c
kvm-all.c
kvm-stub.c
kvm.h
target-i386/kvm.c