KVM: Explicity initialize cpus_hardware_enabled
[linux-2.6.git] / virt / kvm / kvm_main.c
index 1ecbe23..4293528 100644 (file)
@@ -2305,6 +2305,7 @@ int kvm_init(void *opaque, unsigned int vcpu_size,
                r = -ENOMEM;
                goto out_free_0;
        }
+       cpumask_clear(cpus_hardware_enabled);
 
        r = kvm_arch_hardware_setup();
        if (r < 0)