From: Nadav Amit <nadav.amit@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>, Andy Lutomirski <luto@kernel.org>
Subject: x86: CR4 update when IRQs are enabled
Date: Wed, 8 Nov 2017 13:52:17 -0800 [thread overview]
Message-ID: <E7DBFC7E-3904-483A-89E1-56EC17F14EF1@gmail.com> (raw)
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
next reply other threads:[~2017-11-08 21:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 21:52 Nadav Amit [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E7DBFC7E-3904-483A-89E1-56EC17F14EF1@gmail.com \
--to=nadav.amit@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®