mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-04 04:31:27 +00:00
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:
committed by
Will Deacon
parent
3f55f3ac72
commit
f28c0a02f8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user