Skip to content
Commit b18db0b8 authored by Alexander Graf's avatar Alexander Graf
Browse files

KVM guest: Make pv trampoline code executable



Our PV guest patching code assembles chunks of instructions on the fly when it
encounters more complicated instructions to hijack. These instructions need
to live in a section that we don't mark as non-executable, as otherwise we
fault when jumping there.

Right now we put it into the .bss section where it automatically gets marked
as non-executable. Add a check to the NX setting function to ensure that we
leave these particular pages executable.

Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent ab78475c
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