Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about hstatus.HUPMM #81

Closed
sealman-Kuo opened this issue Aug 21, 2024 · 1 comment
Closed

Questions about hstatus.HUPMM #81

sealman-Kuo opened this issue Aug 21, 2024 · 1 comment

Comments

@sealman-Kuo
Copy link

Hi, I have some questions about hstatus.HUPMM.

The spec states, "The hypervisor should copy the value written to senvcfg.PMM by the guest to the hstatus.HUPMM field prior to invoking HLV.* or HSV.* instructions in U-mode."

Is this a mandatory requirement, or just a recommendation? If it is mandatory, then senvcfg.PMM and hstatus.HUPMM would always be equal. Why does VU mode access for HLV* and HSV.* in U mode require adding the hstatus.HUPMM field, but VS mode access for these instructions in U mode can directly use the henvcfg.PMM setting?

@sealman-Kuo sealman-Kuo changed the title Some questions about hstatus.HUPMM Questions about hstatus.HUPMM Aug 21, 2024
@martinmaas
Copy link
Collaborator

This is only a recommendation how software may manage these registers. A hypervisor is free to ignore this recommendation, but it is unclear how HLV.* and HSV.* instructions would be used in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants