fix vl.c compilation if CONFIG_KVM is not defined
PATCH 1/1 fix vl.c compilation if CONFIG_KVM is not defined
vl.c will not link if CONFIG_KVM is not defined.
This patch fixes the problem.
Signed-off-by Jean-Christophe Dubois <[email protected]>
--- vl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
vl.c +2 -1
@@ -3944,7 +3944,8 @@ static void tcg_init_vcpu(void *_env)static void kvm_start_vcpu (CPUState *env) { -kvm_init_vcpu (env); +if (kvm_enabled ()) +kvm_init_vcpu (env); env->thread =qemu_mallocz (sizeof (QemuThread)); env->halt_cond =qemu_mallocz (sizeof (QemuCond));qemu_cond_init (env->halt_cond);
Signature · 1 line
1.6.0.4