diff options
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -5559,6 +5559,16 @@ int main(int argc, char **argv, char **envp) } } + if (kvm_enabled()) { + int ret; + + ret = kvm_init(smp_cpus); + if (ret < 0) { + fprintf(stderr, "failed to initialize KVM\n"); + exit(1); + } + } + /* If no data_dir is specified then try to find it relative to the executable path. */ if (!data_dir) { @@ -5793,16 +5803,6 @@ int main(int argc, char **argv, char **envp) } } - if (kvm_enabled()) { - int ret; - - ret = kvm_init(smp_cpus); - if (ret < 0) { - fprintf(stderr, "failed to initialize KVM\n"); - exit(1); - } - } - for (i = 0; i < MAX_MONITOR_DEVICES; i++) { const char *devname = monitor_devices[i]; if (devname && strcmp(devname, "none")) { |