RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 814231 - TSC calibration fails with QEMU TCG
Summary: TSC calibration fails with QEMU TCG
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 7.0
Assignee: Marcelo Tosatti
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 813271 813413 1005011
TreeView+ depends on / blocked
 
Reported: 2012-04-19 12:25 UTC by Richard W.M. Jones
Modified: 2013-09-06 02:49 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 813413
Environment:
Last Closed: 2012-04-25 22:21:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 3 Richard W.M. Jones 2012-04-19 15:51:48 UTC
At the moment I'm suspecting that this is a kernel bug, NOT
a qemu bug.

qemu 6.3 + kernel 6.3 => fails
qemu 6.2 + kernel 6.3 => fails
qemu 6.2 + kernel 6.2 => ok
qemu 6.3 + kernel 6.2 => ok

Notice the common factor is that the -221 kernel from 6.2
is OK, whereas the -262 kernel from 6.3 fails.

Choice of qemu seems to make no difference.

[qemu 6.2 == -209, qemu 6.3 == -280
kernel 6.2 == -221, kernel 6.3 == -262]

So now I'm going to bisect the 6.2 -> 6.3 kernels.

Comment 4 juzhang 2012-04-20 08:21:32 UTC
Can reproduce this issue with qemu-kvm-0.12.1.2-2.272.el6.x86_64 on kernel 2.6.32-265.el6.x86_64, mark qa_ack first since this issue is against qemu-kvm now. if this issue is changed to other component,please free to remove qa_ack
Please note: run libguest in guest not host. I am not sure run libguest in guest is common scenerio.

Results:
guest crash and can find 
 [    0.000000] Fast TSC calibration failed
 [    0.000000] TSC: Unable to calibrate against PIT
[    0.000000] TSC: No reference (HPET/PMTIMER) available
[    0.000000] Marking TSC unstable due to could not calculate TSC khz
[    0.006999] Calibrating delay loop... 261.63 BogoMIPS (lpj=130816)
[    0.019999] pid_max: default: 32768 minimum: 301

Comment 5 RHEL Program Management 2012-04-22 07:30:02 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 8 Richard W.M. Jones 2012-04-24 14:10:07 UTC
(In reply to comment #3)
> So now I'm going to bisect the [...] kernels.

Actually I went back a very long way to try to find a kernel
which didn't print

[    0.000000] Fast TSC calibration failed
[    0.000000] TSC: Unable to calibrate against PIT
[    0.000000] TSC: No reference (HPET/PMTIMER) available
[    0.000000] Marking TSC unstable due to could not calculate TSC khz

during boot, and I didn't find one (looked all the way back
in rhel6 git to January 2010).  Note that these old kernels
did not fail to boot (ie. did not suffer from bug 813413).

So essentially TSC has always been unstable in RHEL 6, but
we didn't notice because we don't really care about clocks.
We only noticed it when this caused a divide by zero (bug 813413)
and the kernel itself completely stopped working.

However I'm still keen to fix this.

I suspect the problem is that we're passing `qemu-kvm -nodefaults'
option which is disabling all other timer sources that the
kernel could use.  Therefore it'd be good if someone could look
at the previous comment and tell us what qemu options / kernel
command line options we should be using.

Comment 13 Richard W.M. Jones 2012-04-24 21:57:26 UTC
> [C]an this BZ be closed?

Yes .. although:

(a) non-KVM virtio-clock would be nice, because:

(b) TCG / nested virt *is* important to us:

Nested virtualization is used by customers and supported by
Red Hat right now.  The ability to use virtualization for mere
convenience or confinement is important now and only going to
get more important in future.


Note You need to log in before you can comment on or make changes to this bug.