A method includes stalling execution of a model specific register write
function to write to a model specific register of a processor having a
no-execute processor feature enabled, determining that the model specific
register is a no-execute model specific register of the processor, and
determining whether a no-execute field in the no-execute model specific
register is being altered. Upon a determination that the no-execute field
is being altered, the method further includes taking protective action to
prevent disabling of the no-execute processor feature.