Skip to content
Commit 0a5b31d2 authored by Sean Christopherson's avatar Sean Christopherson Committed by Paolo Bonzini
Browse files

lib/vmalloc: Let arch code pass a value to its setup_mmu() helper



Add an inner __setup_vm() that takes an opaque param and passes said
param along to setup_mmu().  x86 will use the param to configure its page
tables for kernel vs. user so that tests that want to enable SMEP (fault
if kernel executes user page) can do so without resorting to hacks and
without breaking tests that need user pages, i.e. that run user code.

Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Message-Id: <20210622210047.3691840-10-seanjc@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 3fdf0e6e
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