On 26/09/19 08:23, Sergio Lopez wrote: > > There's still one problem. If the Guest doesn't have TSC_DEADLINE_TIME, > Linux hangs on APIC timer calibration. I'm looking for a way to work > around this. Worst case scenario, we can check for that feature and add > both PIC and PIT if is missing. >
Huh, that's a silly thing that Linux is doing! If KVM is in use, the
LAPIC timer frequency is known to be 1 GHz.
arch/x86/kernel/kvm.c can just set
lapic_timer_period = 1000000000 / HZ;
and that should disabled LAPIC calibration if TSC deadline is absent.
Paolo
signature.asc
Description: OpenPGP digital signature
