mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* x86: CR4 update when IRQs are enabled
@ 2017-11-08 21:52 Nadav Amit
  2017-11-09  6:29 ` Nadav Amit
  0 siblings, 1 reply; 6+ messages in thread
From: Nadav Amit @ 2017-11-08 21:52 UTC (permalink / raw)
  To: LKML, Andy Lutomirski

I am puzzled by the comment in tlb_state.cr4 , which says:

        /*
         * Access to this CR4 shadow and to H/W CR4 is protected by
         * disabling interrupts when modifying either one.
         */

This does not seem to be true and adding a warning to CR4 writes when
!irqs_disabled() immediately fires in identify_cpu() and
__mcheck_cpu_init_generic(). While these two are called during boot, I think
there other CR4 changes with enabled IRQs, for example, PR_SET_TSC.

So my question(s): Is the comment correct? Is the current behavior correct?

Thanks,
Nadav

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-11-16  3:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-08 21:52 x86: CR4 update when IRQs are enabled Nadav Amit
2017-11-09  6:29 ` Nadav Amit
2017-11-15 23:31   ` Nadav Amit
2017-11-15 23:48     ` hpa
2017-11-16  0:34       ` Nadav Amit
2017-11-16  3:44         ` Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®