disabling of X86_CR4_DE
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
Quoted 3 lines · Jan Beulich
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).
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.
-- Keir
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Keir Fraser <[email protected]> 09.01.06 18:13:43 >>>
Quoted 1 line · Jan Beulich
Is there a particular reason for doing this unconditionally on both
32-
Quoted 1 line
Quoted 1 line
and 64-bits in xenolinux? It would seem to me that this feature
should
Quoted 7 lines
Quoted 1 line
be disabled at most in unprivileged kernels... Thanks, Jan
How do you mean? Looking at xen-unstable, we clear
CR4_DEat the samepoint 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().
Quoted 3 lines
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
Quoted 3 lines · Jan Beulich
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().
Ah, I think Christian disabled it at some point to work around a crash later in boot. I expect there is a deeper underlying problem that ought to be addressed, rather than simply disabling the feature.
-- Keir