[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 0/6] x86/emul: Use struct cpuid_policy for feature checks



Prompted by Jan's "x86emul: consolidate CR4 handling", I've cleaned up this
series and posted it.  The end purpose is the substantial reduction in
compiled volume of x86_emulate().

Andrew Cooper (6):
  tools: Move the typesafe min/max helpers into xen-tools/libs.h
  libx86: Split x86_cpuid_policy_fill_native() out of calculate_raw_policy()
  tools/x86emul: Use struct cpuid_policy in the userspace test harnesses
  x86/emul: Pass a full cpuid_policy into x86_emulate()
  x86/emul: Don't use the ->cpuid() hook for feature checks
  x86/emul: dedup hvmemul_cpuid() and pv_emul_cpuid()

 tools/fuzz/x86_instruction_emulator/Makefile    |   9 +-
 tools/fuzz/x86_instruction_emulator/fuzz-emul.c |   1 +
 tools/include/xen-tools/libs.h                  |  38 +++++
 tools/libxc/xc_private.h                        |  16 --
 tools/libxl/libxl_internal.h                    |  16 --
 tools/tests/x86_emulator/Makefile               |   7 +-
 tools/tests/x86_emulator/test_x86_emulator.c    |   2 +-
 tools/tests/x86_emulator/x86-emulate.c          |  12 ++
 tools/tests/x86_emulator/x86-emulate.h          | 217 ++++--------------------
 xen/arch/x86/cpuid.c                            | 105 +-----------
 xen/arch/x86/hvm/emulate.c                      |  15 +-
 xen/arch/x86/mm/shadow/common.c                 |   2 +-
 xen/arch/x86/mm/shadow/hvm.c                    |   1 -
 xen/arch/x86/pv/emul-priv-op.c                  |  12 +-
 xen/arch/x86/pv/ro-page-fault.c                 |   5 +-
 xen/arch/x86/x86_emulate.c                      |   8 +
 xen/arch/x86/x86_emulate/x86_emulate.c          | 147 ++++++----------
 xen/arch/x86/x86_emulate/x86_emulate.h          |   6 +-
 xen/include/asm-x86/hvm/emulate.h               |   2 -
 xen/include/asm-x86/mm.h                        |   2 -
 xen/include/asm-x86/processor.h                 |   6 -
 xen/include/xen/lib/x86/cpuid.h                 |  18 ++
 xen/lib/x86/cpuid.c                             | 108 ++++++++++++
 23 files changed, 300 insertions(+), 455 deletions(-)

-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.