Kernel Newbies archive on
 help / color / Atom feed
From: "Josué Feliu" <>
Subject: Are MSRs saved and restored on context switches?
Date: Fri, 12 Jul 2019 17:58:01 +0200
Message-ID: <> (raw)
In-Reply-To: <>

Hi all,

I was curious about whether a context switch in Linux saves and restores 
the MSR registers of the tasks involved in the context switch. I 
searched in the source code and could not find this functionality. I'm 
not sure if all MSRs need or can be associated to tasks but I understand 
that, for example, MSRs related to performance counters should be saved 
and restored on context switches to correctly monitor events on a per 
PID basis.

Thanks a lot,

Kernelnewbies mailing list

           reply index

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <>]

Reply instructions:

You may reply publically 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Kernel Newbies archive on

Archives are clonable:
	git clone --mirror kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ \
	public-inbox-index kernelnewbies

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox