mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-06 21:51:49 +00:00
kvm: Force 'notsc' and 'earlyprintk' kernel parameters
We don't support TSC calibration properly and we want early printk so force them as kernel parameters. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
This commit is contained in:
committed by
Will Deacon
parent
13a7760f97
commit
2525eb1f05
@@ -21,6 +21,7 @@ int main(int argc, char *argv[])
|
||||
const char *kernel_filename = NULL;
|
||||
const char *kernel_cmdline = NULL;
|
||||
bool single_step = false;
|
||||
char real_cmdline[128];
|
||||
struct kvm *kvm;
|
||||
int i;
|
||||
|
||||
@@ -51,7 +52,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
kvm__setup_cpuid(kvm);
|
||||
|
||||
if (!kvm__load_kernel(kvm, kernel_filename, kernel_cmdline))
|
||||
strcpy(real_cmdline, "notsc earlyprintk=serial,keep ");
|
||||
if (kernel_cmdline)
|
||||
strcat(real_cmdline, kernel_cmdline);
|
||||
|
||||
if (!kvm__load_kernel(kvm, kernel_filename, real_cmdline))
|
||||
die("unable to load kernel %s", kernel_filename);
|
||||
|
||||
kvm__reset_vcpu(kvm);
|
||||
|
||||
Reference in New Issue
Block a user