qemu-patch-raspberry4/target-i386
H. Peter Anvin a9321a4d49 x86: Implement SMEP and SMAP
This patch implements Supervisor Mode Execution Prevention (SMEP) and
Supervisor Mode Access Prevention (SMAP) for x86.  The purpose of the
patch, obviously, is to help kernel developers debug the support for
those features.

A fair bit of the code relates to the handling of CPUID features.  The
CPUID code probably would get greatly simplified if all the feature
bit words were unified into a single vector object, but in the
interest of producing a minimal patch for SMEP/SMAP, and because I had
very limited time for this project, I followed the existing style.

[ v2: don't change the definition of the qemu64 CPU shorthand, since
  that breaks loading old snapshots.  Per Anthony Liguori this can be
  fixed once the CPU feature set is snapshot.

  Change the coding style slightly to conform to checkpatch.pl. ]

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-10-01 08:04:22 -05:00
..
arch_dump.c
arch_memory_mapping.c
cc_helper.c x86: Implement SMEP and SMAP 2012-10-01 08:04:22 -05:00
cc_helper_template.h
cpu-qom.h
cpu.c x86: Implement SMEP and SMAP 2012-10-01 08:04:22 -05:00
cpu.h x86: Implement SMEP and SMAP 2012-10-01 08:04:22 -05:00
excp_helper.c
fpu_helper.c x86: switch to AREG0 free mode 2012-08-14 19:01:26 +00:00
helper.c x86: Implement SMEP and SMAP 2012-10-01 08:04:22 -05:00
helper.h x86: Implement SMEP and SMAP 2012-10-01 08:04:22 -05:00
hyperv.c
hyperv.h
int_helper.c
ioport-user.c
kvm-stub.c
kvm.c i386: kvm: use a #define for the set of alias feature bits 2012-09-30 11:11:00 +00:00
kvm_i386.h kvm: i386: Add services required for PCI device assignment 2012-09-10 15:29:59 +03:00
machine.c kvm: get/set PV EOI MSR 2012-08-29 10:51:28 -05:00
Makefile.objs x86: switch to AREG0 free mode 2012-08-14 19:01:26 +00:00
mem_helper.c x86: switch to AREG0 free mode 2012-08-14 19:01:26 +00:00
misc_helper.c x86: switch to AREG0 free mode 2012-08-14 19:01:26 +00:00
ops_sse.h
ops_sse_header.h
seg_helper.c x86: switch to AREG0 free mode 2012-08-14 19:01:26 +00:00
shift_helper_template.h
smm_helper.c
svm.h
svm_helper.c x86: switch to AREG0 free mode 2012-08-14 19:01:26 +00:00
TODO
translate.c x86: Implement SMEP and SMAP 2012-10-01 08:04:22 -05:00