Skip to content

Commit

Permalink
add tsc_early_khz
Browse files Browse the repository at this point in the history
Because boot stops due to tsc calibration failure when running on travis-ci.

[    0.012000][    T0] tsc: Unable to calibrate against PIT
[    0.012000][    T0] tsc: No reference (HPET/PMTIMER) available
[    0.012000][    T0] tsc: Marking TSC unstable due to could not calculate TSC khz

Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net>
  • Loading branch information
bobuhiro11 committed Mar 15, 2022
1 parent e9d54ab commit 82c0cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flag/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func ParseArgs(args []string) (string, string, string, string, int, error) {

// refs: commit 1621292e73770aabbc146e72036de5e26f901e86 in kvmtool
params := flag.String("p", `console=ttyS0 earlyprintk=serial noapic noacpi notsc `+
`debug apic=debug show_lapic=all mitigations=off lapic `+
`debug apic=debug show_lapic=all mitigations=off lapic tsc_early_khz=2000 `+
`dyndbg="file arch/x86/kernel/smpboot.c +plf ; file drivers/net/virtio_net.c +plf" pci=realloc=off `+
`virtio_pci.force_legacy=1`, "kernel command-line parameters")

Expand Down

0 comments on commit 82c0cf9

Please sign in to comment.