Skip to content
Commit fe135d2c authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: MMU: Simplify calculation of pte access



The nx bit is awkwardly placed in the 63rd bit position; furthermore it
has a reversed meaning compared to the other bits, which means we can't use
a bitwise and to calculate compounded access masks.

So, we simplify things by creating a new 3-bit exec/write/user access word,
and doing all calculations in that.

Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent b3e4e63f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment