Should HLVX effect vsstatus.SUM?
Closed this issue · 2 comments
Wangrodman commented
The hypervisor uses HLVX to emulate guest execute code, and SUM is used to modify load and store. Does HLVX get affected by vsstatus.SUM?
gfavor commented
The H spec says that HLVX differs from HLV only in that "execute permission
takes the place of read permission during address translation". And the
spec for all the H*V* instructions says that "the explicit memory access is
done *as though in* VU-mode when SPVP=0, and *as though in* VS-mode when
SPVP=1. As usual when V=1, two-stage address translation is applied, and
the HS-level sstatus.SUM is ignored."
So the question is equivalent to whether a normal guest load is affected by
vsstatus.SUM. Which is equivalent to whether a normal host load is
affected by sstatus.SUM. Namely yes (in the ways defined by SUM).
Greg
…On Wed, Jun 26, 2024 at 11:18 PM Wangrodman ***@***.***> wrote:
The hypervisor uses HLVX to emulate guest execute code, and SUM is used to
modify load and store. Does HLVX get affected by vsstatus.SUM?
—
Reply to this email directly, view it on GitHub
<#1480>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLX6GWKD6GFDUTFTLHROVTZJOVCDAVCNFSM6AAAAABJ7HEREGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TOMRVGUZTMOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
Wangrodman commented
Thanks for your clarification