Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1079841 - kvm unit test "debug" fails
kvm unit test "debug" fails
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel (Show other bugs)
7.0
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Paolo Bonzini
Virtualization Bugs
: Reopened
Depends On: 1116936
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-24 02:30 EDT by Shaolong Hu
Modified: 2015-03-05 06:43 EST (History)
7 users (show)

See Also:
Fixed In Version: kernel-3.10.0-143.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-05 06:43:42 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0290 normal SHIPPED_LIVE Important: kernel security, bug fix, and enhancement update 2015-03-05 11:13:58 EST

  None (edit)
Description Shaolong Hu 2014-03-24 02:30:35 EDT
Description of problem:
-----------------------------
kvm unit test "debug" has a little issue 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.



Steps to Reproduce:
------------------------
1. A typo makes debug test fails to be ran:

--- a/x86/unittests.cfg
+++ b/x86/unittests.cfg
@@ -156,5 +156,5 @@ extra_params = -cpu host,+vmx
 arch = x86_64
 
 [debug]
-file = debug.flag
+file = debug.flat
 arch = x86_64

2. one case fails, and whole test deems as passed, not sure whether a problem:

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/debug.flat -smp 1 -display none

enabling apic
PASS: #BP
PASS: hw breakpoint
PASS: single step
FAIL: hw watchpoint
Return value from qemu: 1
Comment 2 Paolo Bonzini 2014-03-24 07:01:51 EDT
Fixed by commits 8246bf52c75aa9b9b336a84f31ed2248754d0f71 and 73aaf249ee2287b4686ff079dcbdbbb658156e64.
Comment 3 Andrew Jones 2014-03-24 08:47:34 EDT

*** This bug has been marked as a duplicate of bug 1079979 ***
Comment 8 Paolo Bonzini 2014-07-07 12:18:51 EDT
Ok, reopening then.
Comment 9 Andrew Jones 2014-07-08 05:20:57 EDT
Closing again, upstream already has typo fixed, and the rhel7 tree is still getting sorted-out (so it has been rebased to upstream, and thus has the fix).
Comment 11 Jarod Wilson 2014-08-07 16:54:16 EDT
Patch(es) available on kernel-3.10.0-143.el7
Comment 14 Shaolong Hu 2014-11-07 04:10:42 EST
Veirfied on 3.10.0-187.el7.x86_64:

with qemu-kvm-1.5.3-77.el7.x86_64 and qemu-kvm-rhev-2.1.2-7.el7


cat x86/unittests.cfg

...
[debug]
file = debug.flat
arch = x86_64
...


# /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/debug.flat -smp 1 -display none
enabling apic
PASS: #BP
PASS: hw breakpoint
PASS: single step
PASS: hw watchpoint

SUMMARY: 4 tests, 0 unexpected failures
Comment 16 errata-xmlrpc 2015-03-05 06:43:42 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0290.html

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