Replies: 5 comments 2 replies
-
On Tue, Jul 8, 2025 at 3:22 AM David Moberg ***@***.***> wrote:
In the privileged documentation, the word "world" is mentioned five times,
usually as "world switching". I don't see this described anywhere in the
documentation. What is it? Should the document be amended in this regard?
A "world" is basically a privileged mode/level such as User mode, machine
mode, and supervisor mode, so world switching means to change privilege
levels thereby allowing or disallowing access to specific functionality.
This sounds like a great candidate for a glossary entry
… —
Reply to this email directly, view it on GitHub
<#2121>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAN6ZACTIIUHIQ2MDGAKEL3HNWUDAVCNFSM6AAAAACBAJA4YKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGU2TGMJYHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
On Tue, Jul 8, 2025 at 9:27 AM David Moberg ***@***.***> wrote:
Hmm. Then why isn't it called "mode switching" or "switching privilege
mode"?
I believe it's a common term within the security domain of ISA design.
I've seen it used in the ARM specs before.
If I'm incorrect, I'm happy to be corrected.
—
… Reply to this email directly, view it on GitHub
<#2121 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAN6ZGEMS4ZTYUEO46G6R33HPBL7AVCNFSM6AAAAACBAJA4YKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGNRZGYYTKOA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
World switches are switches not between privilege modes, but between what I (from my ARM past) would call translation regimes - where a translation regime is a set of privilege modes that share a common set of MMU (aka virtual memory) address translation tables. So, for example, S/HS and U modes are one translation regime, and a guest VM (with its VS and VU modes) is a translation regime. So world switches occur when one switches from using one set of address translation tables to using a different set. |
Beta Was this translation helpful? Give feedback.
-
Yes. I meant to mention that distinction but forgot to. In general, switching between privilege modes and switching between processes within a "translation regime", stays within that world. The key point being that even though part of the translation tables change when switching between processes, it is still the same overall set of translation tables being managed by the OS (in the case of S/HS+U modes). Whereas each VM has its own completely separate hgatp and associated translation tables. |
Beta Was this translation helpful? Give feedback.
-
Closing since I believe the question has been sufficiantly answered/clarified. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the privileged documentation, the word "world" is mentioned five times, usually as "world switching". I don't see this described anywhere in the documentation. What is it? Should the document be amended in this regard?
Beta Was this translation helpful? Give feedback.
All reactions