Skip to content
Commit f3e081d7 authored by Aaron Lewis's avatar Aaron Lewis Committed by Paolo Bonzini
Browse files

x86: Look up the PTEs rather than assuming them



Rather than assuming which PTEs the SMEP test runs on, look them up to
ensure they are correct.  If this test were to run on a different page
table (ie: run in an L2 test) the wrong PTEs would be set.  Switch to
looking up the PTEs to avoid this from happening.

Signed-off-by: default avatarAaron Lewis <aaronlewis@google.com>
Message-Id: <20211110212001.3745914-11-aaronlewis@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent f7599ce5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment