]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - virt/kvm/kvm_main.c
KVM: Explicity initialize cpus_hardware_enabled
[linux-2.6.git] / virt / kvm / kvm_main.c
index 1ecbe2391c8b11157c86ab2083f4ed856d38d813..4293528200b3759ca2fe6dc198a26c370392f1f0 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)