Kernel Newbies archive on
 help / color / Atom feed
* Are MSRs saved and restored on context switches?
       [not found] <>
@ 2019-07-12 15:58 ` Josué Feliu
  0 siblings, 0 replies; only message in thread
From: Josué Feliu @ 2019-07-12 15:58 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2019-07-12 15:58 ` Are MSRs saved and restored on context switches? Josué Feliu

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

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone public-inbox