| Summary: | Case "pmu" in kvm unit test fails on RHEL6.5 host | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Shaolong Hu <shu> |
| Component: | qemu-kvm | Assignee: | Virtualization Maintenance <virt-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.5 | CC: | acathrow, bsarathy, gleb, juzhang, michen, mkenneth, mtosatti, pbonzini, qzhang, virt-maint, xwei |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-14 13:48:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Shaolong Hu
2013-10-14 08:01:08 UTC
(In reply to Shaolong Hu from comment #0) > This bug is to track the "pmu" case, which fails, log: > > qemu-system-x86_64 -enable-kvm -device testdev,chardev=testlog -chardev > file,id=testlog,path=msr.out -serial stdio -kernel x86/pmu.flat -smp 1 You need to run it with -cpu host otherwise guest has no PMU. # qemu-system-x86_64 -enable-kvm -device testdev,chardev=testlog -chardev file,id=testlog,path=msr.out -serial stdio -kernel x86/pmu.flat -smp 1 -cpu host VNC server running on `::1:5900' 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 PASS: pmu core cycles-0 PASS: pmu core cycles-1 PASS: pmu instructions-0 PASS: pmu instructions-1 PASS: pmu ref cycles-0 PASS: pmu ref cycles-1 PASS: pmu llc refference-0 PASS: pmu llc refference-1 PASS: pmu llc misses-0 PASS: pmu llc misses-1 PASS: pmu branches-0 PASS: pmu branches-1 PASS: pmu branch misses-0 PASS: pmu branch misses-1 PASS: pmu fixed-0 PASS: pmu fixed-1 PASS: pmu fixed-2 PASS: pmu rdpmc-0 PASS: pmu rdpmc fast-0 PASS: pmu rdpmc-1 PASS: pmu rdpmc fast-1 PASS: pmu rdpmc fixed-0 PASS: pmu rdpmc fixed fast-0 PASS: pmu rdpmc fixed-1 PASS: pmu rdpmc fixed fast-1 PASS: pmu rdpmc fixed-2 PASS: pmu rdpmc fixed fast-2 FAIL: pmu all counters-0 PASS: pmu overflow-0 PASS: pmu overflow status-0 PASS: pmu overflow status clear-0 PASS: pmu overflow irq-0 PASS: pmu overflow-1 PASS: pmu overflow status-1 PASS: pmu overflow status clear-1 PASS: pmu overflow irq-1 PASS: pmu overflow-2 PASS: pmu overflow status-2 PASS: pmu overflow status clear-2 PASS: pmu overflow irq-2 PASS: pmu cmask-0 41 tests, 1 failures kvm unit test may need patch: x86/unittests.cfg [pmu] file = pmu.flat + extra_params = -cpu host Hi Gleb, Could you have a look at the failure in comment 2 ? Did you have NMI watchdog enabled in the host? (In reply to Paolo Bonzini from comment #5) > Did you have NMI watchdog enabled in the host? Yes, there is nmi count in /proc/interrupts, i think it is enabled by default. The NMI watchdog uses up a performance counter, and thus causes the all-counters test to fail. (In reply to Paolo Bonzini from comment #7) > The NMI watchdog uses up a performance counter, and thus causes the > all-counters test to fail. Thanks, all test pass. |