Bug 504374 - kvm: hw DR_* watchpoint registers are ignored
kvm: hw DR_* watchpoint registers are ignored
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Kernel Maintainer List
Fedora Extras Quality Assurance
:
Depends On:
Blocks: F12VirtTarget
  Show dependency treegraph
 
Reported: 2009-06-05 16:33 EDT by Jan Kratochvil
Modified: 2009-06-08 10:28 EDT (History)
11 users (show)

See Also:
Fixed In Version: kernel-2.6.30-0.97.rc8.fc12.x86_64
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-06-08 10:28:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Jan Kratochvil 2009-06-05 16:33:53 EDT
Description of problem:
GDB watchpoints do not work.  There is a standalone testcase for it.

Version-Release number of selected component (if applicable):
longterm, it never worked, verified on:
kernel-2.6.29.3-155.fc11.x86_64 (both as KVM host and guest)

How reproducible:
Always.

Steps to Reproduce:
wget -q -O watchpoint.c 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/watchpoint.c?cvsroot=systemtap'; gcc -Wall -g -o watchpoint watchpoint.c; ./watchpoint; echo $?

Actual results:
2

Expected results:
0

Additional info:
Return code 2 means the testcase missed the watchpoint to be hit.
Comment 1 Mark McLoughlin 2009-06-08 07:54:27 EDT
Could you re-test with 2.6.30 from rawhide?

This was merged in 2.6.30-rc1:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=42dbaa5a05
Comment 2 Jan Kratochvil 2009-06-08 10:28:31 EDT
Tested this version-in-KVM-on-version and it is now already working, thanks for the pointer:
kernel-2.6.30-0.97.rc8.fc12.x86_64

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