die("unable to load disk image %s", image_filename);
}
- kvm_cpu__setup_cpuid(cpu);
-
strcpy(real_cmdline, "notsc nolapic noacpi pci=conf1 console=ttyS0 ");
if (!kernel_cmdline || !strstr(kernel_cmdline, "root=")) {
strlcat(real_cmdline, "root=/dev/vda rw ",
real_cmdline))
die("unable to load kernel %s", kernel_filename);
- kvm_cpu__reset_vcpu(cpu);
-
kvm__setup_bios(kvm);
- if (single_step)
- kvm_cpu__enable_singlestep(cpu);
-
serial8250__init(kvm);
pci__init();
kvm__start_timer(kvm);
+ if (single_step)
+ kvm_cpu__enable_singlestep(cpu);
+
if (kvm_cpu__start(cpu))
goto panic_kvm;