Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758739Ab3DYBVZ (ORCPT ); Wed, 24 Apr 2013 21:21:25 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49528 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758669Ab3DYBVX (ORCPT ); Wed, 24 Apr 2013 21:21:23 -0400 Message-ID: <517884E1.5060404@zytor.com> Date: Wed, 24 Apr 2013 18:20:33 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Frederic Weisbecker CC: Oleg Nesterov , Ingo Molnar , Linus Torvalds , Cyrill Gorcunov , Peter Zijlstra , Thomas Gleixner , David Miller , "Theodore Ts'o" , Linux Kernel Mailing List , the arch/x86 maintainers , Network Development , "linux-ext4@vger.kernel.org" Subject: Re: [PATCH] x86: make DR*_RESERVED unsigned long References: <20130424072630.GB1780@gmail.com> <20130424170702.GA1867@redhat.com> <5178657E.9020905@zytor.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 26 On 04/24/2013 04:31 PM, Frederic Weisbecker wrote: >> >> Now, DR6 is a bit special in that a bunch of the reserved bits are >> hardwired to 1, not 0; I don't know offhand if that is true for bits >> [63:32]. > > Hmm, good point, could it be a problem given that we clear the > reserved dr6 bits on do_trap() and write that 'cleaned up" value back > to "tsk->thread.debugreg6"? Probably not if those hardwired reserved > bits are set to "1" on dr6 physical write whether those bits are > cleared or not in their storage in thread struct before resuming the > task? > OK, the SDM states that DR6[63:32] are reserved and must be written as zero (not one). So the quiescent 64-bit value of DR6 is 0x0000_0000_FFFF_0FF0. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/