xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Xen-devel <xen-devel@lists.xen.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Subject: [PATCH 0/6] x86/emul: Use struct cpuid_policy for feature checks
Date: Mon, 5 Nov 2018 11:21:01 +0000	[thread overview]
Message-ID: <1541416867-30253-1-git-send-email-andrew.cooper3@citrix.com> (raw)

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

             reply	other threads:[~2018-11-05 11:21 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-05 11:21 Andrew Cooper [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1541416867-30253-1-git-send-email-andrew.cooper3@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).