VMX: x86: handle host TSC calibration failure
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 12 Mar 2013 02:10:24 +0000 (23:10 -0300)
committerGleb Natapov <gleb@redhat.com>
Tue, 12 Mar 2013 11:18:00 +0000 (13:18 +0200)
If the host TSC calibration fails, tsc_khz is zero (see tsc_init.c).
Handle such case properly in KVM (instead of dividing by zero).

https://bugzilla.redhat.com/show_bug.cgi?id=859282

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>

No differences found