target-i386: fix protection bits in the TLB for SMEP
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 May 2014 11:24:54 +0000 (13:24 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Jun 2014 14:10:35 +0000 (16:10 +0200)
commitb09481de91cce94342bac3327bb7633c39ff8bf6
tree6ad29f9c18cab7c5845257b9042a16974efda249
parentde431a655a7560d834e1187d6b30cb6b1946e90c
target-i386: fix protection bits in the TLB for SMEP

User pages must be marked as non-executable when running under SMEP;
otherwise, fetching the page first and then calling it will fail.

With this patch, all SMEP testcases in kvm-unit-tests now pass.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/helper.c