From: "Jan Beulich" Subject: Re: disabling of X86_CR4_DE Date: Tue, 10 Jan 2006 08:46:39 +0100 Message-ID: <43C3746F.76F0.0078.0@novell.com> References: <43C29804.76F0.0078.0@novell.com> <8cc4ceea448bf1f534d6863b2d3022e6@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8cc4ceea448bf1f534d6863b2d3022e6@cl.cam.ac.uk> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 09.01.06 18:13:43 >>> > >On 9 Jan 2006, at 16:06, Jan Beulich wrote: > >> Is there a particular reason for doing this unconditionally on both 32- >> and 64-bits in xenolinux? It would seem to me that this feature should >> be disabled at most in unprivileged kernels... Thanks, Jan > >How do you mean? Looking at xen-unstable, we clear CR4_DE at the same >point as native linux (i.e., we haven't changed code relating to that >control flag at all). I don't mean the cr4 modification; I rather referred to the feature flag, which gets cleared in setup_arch_post.h's machine_specific_modify_cpu_capabilities(). >It's not a debug-feature-enable flag anyway -- more a >backwards-compatibility flag for accesses to defunct debug registers >dr4 and dr5. It's pretty unimportant. Not really. Its important function is to allow I/O port breakpoints. (And I think disallowing access to dr4/dr5 isn't a bad thing, too.) Jan