Message ID | 5093EC51.4000307@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/target-i386/cpu.c b/target-i386/cpu.c index c46286a..8663623 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -780,7 +780,11 @@ static int cpu_x86_fill_model_id(char *str) */ static void kvm_cpu_fill_host(x86_def_t *x86_cpu_def) { +#ifdef CONFIG_KVM KVMState *s = kvm_state; +#else + KVMState *s = NULL; +#endif uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0; assert(kvm_enabled());