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 1079841 - kvm unit test "debug" fails
Summary: kvm unit test "debug" fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Paolo Bonzini
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1116936
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-24 06:30 UTC by Shaolong Hu
Modified: 2015-03-05 11:43 UTC (History)
7 users (show)

Fixed In Version: kernel-3.10.0-143.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 11:43:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0290 0 normal SHIPPED_LIVE Important: kernel security, bug fix, and enhancement update 2015-03-05 16:13:58 UTC

Description Shaolong Hu 2014-03-24 06:30:35 UTC
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 11:01:51 UTC
Fixed by commits 8246bf52c75aa9b9b336a84f31ed2248754d0f71 and 73aaf249ee2287b4686ff079dcbdbbb658156e64.

Comment 3 Andrew Jones 2014-03-24 12:47:34 UTC

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

Comment 8 Paolo Bonzini 2014-07-07 16:18:51 UTC
Ok, reopening then.

Comment 9 Andrew Jones 2014-07-08 09:20:57 UTC
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 20:54:16 UTC
Patch(es) available on kernel-3.10.0-143.el7

Comment 14 Shaolong Hu 2014-11-07 09:10:42 UTC
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 11:43:42 UTC
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.