Bug 504374

Summary: kvm: hw DR_* watchpoint registers are ignored
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: berrange, clalance, ehabkost, gcosta, itamar, kernel-maint, markmc, onestero, quintela, roland, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
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:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 498969    

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- (both as KVM host and guest)

How reproducible:

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:

Expected results:

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:

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: