xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] x86/emul: Use struct cpuid_policy for feature checks
@ 2018-11-05 11:21 Andrew Cooper
  2018-11-05 11:21 ` [PATCH 1/6] tools: Move the typesafe min/max helpers into xen-tools/libs.h Andrew Cooper
                   ` (5 more replies)
  0 siblings, 6 replies; 25+ messages in thread
From: Andrew Cooper @ 2018-11-05 11:21 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper

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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2018-11-15 15:09 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-05 11:21 [PATCH 0/6] x86/emul: Use struct cpuid_policy for feature checks Andrew Cooper
2018-11-05 11:21 ` [PATCH 1/6] tools: Move the typesafe min/max helpers into xen-tools/libs.h Andrew Cooper
2018-11-05 11:23   ` Wei Liu
2018-11-05 11:21 ` [PATCH 2/6] libx86: Split x86_cpuid_policy_fill_native() out of calculate_raw_policy() Andrew Cooper
2018-11-06 13:44   ` Jan Beulich
2018-11-09 16:24     ` Andrew Cooper
2018-11-12  8:13       ` Jan Beulich
2018-11-06 16:31   ` Roger Pau Monné
2018-11-09 16:26     ` Andrew Cooper
2018-11-05 11:21 ` [PATCH 3/6] tools/x86emul: Use struct cpuid_policy in the userspace test harnesses Andrew Cooper
2018-11-06 15:25   ` Jan Beulich
2018-11-05 11:21 ` [PATCH 4/6] x86/emul: Pass a full cpuid_policy into x86_emulate() Andrew Cooper
2018-11-06 15:28   ` Jan Beulich
2018-11-05 11:21 ` [PATCH 5/6] x86/emul: Don't use the ->cpuid() hook for feature checks Andrew Cooper
2018-11-06 15:32   ` Jan Beulich
2018-11-05 11:21 ` [PATCH 6/6] x86/emul: dedup hvmemul_cpuid() and pv_emul_cpuid() Andrew Cooper
2018-11-06 15:38   ` Jan Beulich
2018-11-06 15:52     ` Andrew Cooper
2018-11-06 16:16       ` Jan Beulich
2018-11-09 17:16         ` Andrew Cooper
2018-11-12  8:17           ` Jan Beulich
2018-11-14  0:20             ` Woods, Brian
2018-11-14  7:47               ` Jan Beulich
2018-11-15 14:23           ` Andrew Cooper
2018-11-15 15:09             ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).