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 1079796 - kvm unit test "pmu" fails on Penryn
Summary: kvm unit test "pmu" fails on Penryn
Keywords:
Status: CLOSED DUPLICATE of bug 1079979
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Andrew Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1079979 1080317
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-24 03:12 UTC by Shaolong Hu
Modified: 2014-04-17 13:57 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-17 13:57:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Shaolong Hu 2014-03-24 03:12:06 UTC
Description of problem:
-----------------------------
kvm unit test "pmu" fails in RHEL7, we plan to add kvm unit test to qemu-kvm test plan, this bug is to track the problem, we are aware the problem may be caused by qemu/kvm/kvm unit test or host running the test, put in qemu-kvm component first, any information/suggestion is appreciated.


Version-Release number of selected component (if applicable):
---------------------------------------------------------------
qemu-kvm-rhev-1.5.3-55.el7.x86_64
3.10.0-101.el7.x86_64
host cpu: Intel Penryn

I think for RHEL7, qemu has no longer much difference from upstream, which in any chance affects kvm unit test, so i use our qemu-kvm "QEMU=/usr/libexec/qemu-kvm ./run_tests.sh" to run the test, but if i am wrong, please correct me.


How reproducible:
-----------------
100%

Steps to Reproduce:
--------------------
/usr/libexec/qemu-kvm -enable-kvm -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -display none -serial stdio -device pci-testdev -kernel x86/pmu.flat -smp 1 -display none

enabling apic
paging enabled
cr0 = 80010011
cr3 = 7fff000
cr4 = 20
PMU version:         33
GP counters:         1
GP counter width:    0
Mask length:         0
Fixed counters:      1
Fixed counter width: 0
GP event 'core cycles' is disabled
GP event 'instructions' is disabled
GP event 'ref cycles' is disabled
GP event 'llc refference' is disabled
GP event 'llc misses' is disabled
GP event 'branches' is disabled
unhandled excecption 13
Return value from qemu: 15

Comment 2 Shaolong Hu 2014-03-24 08:48:04 UTC
add "-cpu host":

[root@localhost kvm-unit-tests]# /usr/libexec/qemu-kvm -enable-kvm -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -display none -serial stdio -device pci-testdev -kernel x86/pmu.flat -smp 1 -display none -cpu host
enabling apic
paging enabled
cr0 = 80010011
cr3 = 7fff000
cr4 = 20
PMU version:         2
GP counters:         2
GP counter width:    40
Mask length:         7
Fixed counters:      3
Fixed counter width: 40
FAIL: core cycles-0
PASS: core cycles-1
PASS: instructions-0
PASS: instructions-1
PASS: ref cycles-0
PASS: ref cycles-1
PASS: llc refference-0
PASS: llc refference-1
PASS: llc misses-0
PASS: llc misses-1
PASS: branches-0
PASS: branches-1
PASS: branch misses-0
PASS: branch misses-1
PASS: fixed-0
PASS: fixed-1
PASS: fixed-2
PASS: rdpmc-0
PASS: rdpmc fast-0
PASS: rdpmc-1
PASS: rdpmc fast-1
PASS: rdpmc fixed-0
PASS: rdpmc fixed fast-0
PASS: rdpmc fixed-1
PASS: rdpmc fixed fast-1
PASS: rdpmc fixed-2
PASS: rdpmc fixed fast-2
FAIL: all counters
PASS: overflow-0
PASS: overflow status-0
PASS: overflow status clear-0
PASS: overflow irq-0
PASS: overflow-1
PASS: overflow status-1
PASS: overflow status clear-1
PASS: overflow irq-1
PASS: overflow-2
PASS: overflow status-2
PASS: overflow status clear-2
PASS: overflow irq-2
PASS: cmask

SUMMARY: 41 tests, 2 failures

Comment 3 Shaolong Hu 2014-03-24 08:51:04 UTC
disable nmi watchdog, still have one failure:

echo 0 > /proc/sys/kernel/nmi_watchdog

still have one failure:

FAIL: core cycles-0

Comment 4 Shaolong Hu 2014-03-24 08:58:05 UTC
[root@m2 kvm-unit-tests]# /usr/libexec/qemu-kvm -enable-kvm -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -display none -serial stdio -device pci-testdev -kernel x86/pmu.flat -smp 1 -display none -cpu host
enabling apic
paging enabled
cr0 = 80010011
cr3 = 7fff000
cr4 = 20
PMU version:         2
GP counters:         4
GP counter width:    48
Mask length:         7
Fixed counters:      3
Fixed counter width: 48
PASS: core cycles-0
PASS: core cycles-1
PASS: core cycles-2
PASS: core cycles-3
PASS: instructions-0
PASS: instructions-1
PASS: instructions-2
PASS: instructions-3
PASS: ref cycles-0
PASS: ref cycles-1
PASS: ref cycles-2
PASS: ref cycles-3
PASS: llc refference-0
PASS: llc refference-1
PASS: llc refference-2
PASS: llc refference-3
PASS: llc misses-0
PASS: llc misses-1
PASS: llc misses-2
PASS: llc misses-3
PASS: branches-0
PASS: branches-1
PASS: branches-2
PASS: branches-3
PASS: branch misses-0
PASS: branch misses-1
PASS: branch misses-2
PASS: branch misses-3
PASS: fixed-0
PASS: fixed-1
PASS: fixed-2
PASS: rdpmc-0
PASS: rdpmc fast-0
PASS: rdpmc-1
PASS: rdpmc fast-1
PASS: rdpmc-2
PASS: rdpmc fast-2
PASS: rdpmc-3
PASS: rdpmc fast-3
PASS: rdpmc fixed-0
PASS: rdpmc fixed fast-0
PASS: rdpmc fixed-1
PASS: rdpmc fixed fast-1
PASS: rdpmc fixed-2
PASS: rdpmc fixed fast-2
PASS: all counters
PASS: overflow-0
PASS: overflow status-0
PASS: overflow status clear-0
PASS: overflow irq-0
PASS: overflow-1
PASS: overflow status-1
PASS: overflow status clear-1
PASS: overflow irq-1
PASS: overflow-2
PASS: overflow status-2
PASS: overflow status clear-2
PASS: overflow irq-2
PASS: overflow-3
PASS: overflow status-3
PASS: overflow status clear-3
PASS: overflow irq-3
PASS: overflow-4
PASS: overflow status-4
PASS: overflow status clear-4
PASS: overflow irq-4
PASS: cmask

SUMMARY: 67 tests, 0 failures

Comment 5 Shaolong Hu 2014-03-24 09:01:20 UTC
Above test is on Sandybridge host, kvm unit test will tell host ability to enable/disable certain test, we can see there are 67 tests on Sandybridge host and only 41 tests on Penryn host, but the failed one on Penryn, is it not supported on Penryn or a real bug? If not supported, could we update kvm unit test to avoid the failure?

Comment 6 Andrew Jones 2014-04-17 13:57:28 UTC
While each of the rhel7 kvm-unit-tests bugs are separate issues, I'm still duping this to the main bug that I've created in order to keep them all together. We can go to separate bugs for separate issues after releasing the rhel7 kvm-unit-tests tree, which should have all fixes for the current issues. Certainly, I'll refer to the excellent information in this BZ that Shaolong has provided though, and I'll even reopen this BZ if a fix for this particular issue isn't added to the tree before releasing it.

*** This bug has been marked as a duplicate of bug 1079979 ***


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