Skip to content

how to deal with pointer masking when vsstatus.MXR or sstatus.MXR is set #97

@qin996

Description

@qin996

In pointer masking spec, it describes that "pointer masking does not apply when MXR is set."

However, there are vsstatus.MXR and sstatus.MXR when V=1, and Privileged spec describes that "The vsstatus field MXR, which makes execute-only pages readable by explicit loads, only overrides VS-stage page protection. Setting MXR at VS-level does not override guest-physical page protections. Setting MXR at HS-level, however, overrides both VS-stage and G-stage execute-only permissions."

So, for example,

  1. When one of vsstatus.MXR or sstatus.MXR is set, of course, V=1 and vsatp.mode is not bare, should pointer masking be applied?
  2. And when V=1, vsatp.mode is bare. Should we ignore vsstatus.MXR and only focus on sstatus.MXR for applying pointer masking?

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions