kvm: qemu: make the kvm_allowed flag always defined so we dont need #ifdefs
commit8b9540d75fbab2192982fdbf918f36296d0d050d
authorGregory Haskins <ghaskins@novell.com>
Tue, 3 Jul 2007 11:40:32 +0000 (3 07:40 -0400)
committerAvi Kivity <avi@qumranet.com>
Tue, 3 Jul 2007 14:57:55 +0000 (3 07:57 -0700)
tree0d8c9259c91b9b2a9a54c903d7501412f7c7ac7c
parent45751c76491278837d17b6705b9878b631f31118
kvm: qemu: make the kvm_allowed flag always defined so we dont need #ifdefs

Non-performance critical code is made more awkward by having to always define
both "#ifdef KVM" and "if (kvm_allowed)".  Define "kvm_allowed = 0" by
default.  Anthony Ligouri is credited with the idea.

Signed-off-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
qemu/qemu-kvm.c