kvm: Add more default kernel command line parameters

We dont support ACPI, APIC, SMP yet, mark it so.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2015-06-01 16:39:39 +01:00
committed by Will Deacon
parent 3f55f3ac72
commit f28c0a02f8
+5 -3
View File
@@ -52,9 +52,11 @@ int main(int argc, char *argv[])
kvm__setup_cpuid(kvm);
strcpy(real_cmdline, "notsc earlyprintk=serial,keep ");
if (kernel_cmdline)
strcat(real_cmdline, kernel_cmdline);
strcpy(real_cmdline, "notsc nolapic nosmp noacpi earlyprintk=serial,keep");
if (kernel_cmdline) {
strncat(real_cmdline, kernel_cmdline, sizeof(real_cmdline));
real_cmdline[sizeof(real_cmdline)-1] = '\0';
}
if (!kvm__load_kernel(kvm, kernel_filename, real_cmdline))
die("unable to load kernel %s", kernel_filename);