Nicholas Piggin <npig...@gmail.com> writes: ... > I wonder if we should think about a more structured kernel API for > modifying these kind of system registers so we always have the > up-to-date values stored in memory. Many of them do need to be > restored after sleep, but they don't need to be saved per-thread > or saved every time we go to sleep.
Yes that's on my mental TODO. Paul and I have talked about it in the past for KVM. I'll write it down sometime so we at least remember :D chers