All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/13] x86: CPUID and MSR policy marshalling support
@ 2018-07-13 20:03 Andrew Cooper
  2018-07-13 20:03 ` [PATCH v2 01/13] x86/msr: Drop stale comment for vcpu_msrs.spec_ctrl Andrew Cooper
                   ` (13 more replies)
  0 siblings, 14 replies; 68+ messages in thread
From: Andrew Cooper @ 2018-07-13 20:03 UTC (permalink / raw)
  To: Xen-devel
  Cc: Sergey Dyasli, Wei Liu, Andrew Cooper, Ian Jackson, Jan Beulich,
	Daniel De Graaf, Roger Pau Monné

This series introduces libx86, a small shared library between the hypervisor
and libxc, and hypercalls to get full CPUID/MSR policies.  Future work will
implement XEN_DOMCTL_set_cpumsr_policy, after the auditing and comparison
logic is sorted.

In the meantime, the data marshalling logic is in a suitable state for review.

This series is based on staging, and can be found in git form here:

  http://xenbits.xen.org/gitweb/?p=people/andrewcoop/xen.git;a=shortlog;h=refs/heads/cpuid-marshal-v2

There are many changes from v1.  See individual patches for details.

Andrew Cooper (6):
  x86/msr: Drop stale comment for vcpu_msrs.spec_ctrl
  libx86: Introduce libx86/cpuid.h
  libx86: Introduce libx86/msr.h and share msr_policy with userspace
  libx86: Introduce a helper to serialise cpuid_policy objects
  libx86: Introduce a helper to deserialise cpuid_policy objects
  x86: Introduce struct cpu_policy to refer to a group of individual policies

Roger Pau Monné (5):
  libx86: generate cpuid-autogen.h in the libx86 include dir
  libx86: Share struct cpuid_policy with userspace
  libx86: introduce a libx86 shared library
  libx86: Introduce a helper to serialise msr_policy objects
  libx86: introduce a helper to deserialise msr_policy objects

Sergey Dyasli (2):
  x86/sysctl: Implement XEN_SYSCTL_get_cpu_policy
  x86/domctl: Implement XEN_DOMCTL_get_cpu_policy

 .gitignore                                  |   2 +-
 tools/include/Makefile                      |   5 +
 tools/include/xen-tools/libs.h              |   8 +
 tools/libxc/Makefile                        |  15 +-
 tools/libxc/include/xenctrl.h               |  10 +-
 tools/libxc/xc_cpuid_x86.c                  | 112 +++++++++++---
 tools/misc/xen-cpuid.c                      | 133 +++++++++++++++-
 tools/xenstore/xenstored_core.h             |   2 -
 xen/arch/x86/cpu/common.c                   |   2 +-
 xen/arch/x86/cpuid.c                        |  32 +---
 xen/arch/x86/domctl.c                       |  34 +++++
 xen/arch/x86/sysctl.c                       |  98 ++++++++++++
 xen/arch/x86/x86_emulate/x86_emulate.h      |   7 +-
 xen/common/Makefile                         |   1 +
 xen/common/libx86/Makefile                  |   2 +
 xen/common/libx86/cpuid.c                   | 228 ++++++++++++++++++++++++++++
 xen/common/libx86/msr.c                     | 107 +++++++++++++
 xen/common/libx86/private.h                 |  73 +++++++++
 xen/include/Makefile                        |  11 +-
 xen/include/asm-x86/cpufeatures.h           |   2 +-
 xen/include/asm-x86/cpuid.h                 | 228 +---------------------------
 xen/include/asm-x86/msr.h                   |  28 +---
 xen/include/public/arch-x86/xen.h           |  18 +++
 xen/include/public/domctl.h                 |  18 +++
 xen/include/public/sysctl.h                 |  37 +++++
 xen/include/xen/libx86/Makefile             |   8 +
 xen/include/xen/libx86/cpu-policy.h         |  24 +++
 xen/include/{asm-x86 => xen/libx86}/cpuid.h | 107 ++++++-------
 xen/include/xen/libx86/msr.h                |  65 ++++++++
 xen/xsm/flask/hooks.c                       |   2 +
 xen/xsm/flask/policy/access_vectors         |   3 +-
 31 files changed, 1036 insertions(+), 386 deletions(-)
 create mode 100644 xen/common/libx86/Makefile
 create mode 100644 xen/common/libx86/cpuid.c
 create mode 100644 xen/common/libx86/msr.c
 create mode 100644 xen/common/libx86/private.h
 create mode 100644 xen/include/xen/libx86/Makefile
 create mode 100644 xen/include/xen/libx86/cpu-policy.h
 copy xen/include/{asm-x86 => xen/libx86}/cpuid.h (77%)
 create mode 100644 xen/include/xen/libx86/msr.h

-- 
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] 68+ messages in thread

end of thread, other threads:[~2018-08-17 21:22 UTC | newest]

Thread overview: 68+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-13 20:03 [PATCH v2 00/13] x86: CPUID and MSR policy marshalling support Andrew Cooper
2018-07-13 20:03 ` [PATCH v2 01/13] x86/msr: Drop stale comment for vcpu_msrs.spec_ctrl Andrew Cooper
2018-07-16  7:21   ` Jan Beulich
2018-07-16  9:37   ` Roger Pau Monné
2018-07-16 11:02     ` Andrew Cooper
2018-07-13 20:03 ` [PATCH v2 02/13] libx86: Introduce libx86/cpuid.h Andrew Cooper
2018-07-16  9:23   ` Jan Beulich
2018-07-16 10:22     ` Andrew Cooper
2018-07-16 10:51       ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 03/13] libx86: generate cpuid-autogen.h in the libx86 include dir Andrew Cooper
2018-07-16  9:31   ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 04/13] libx86: Share struct cpuid_policy with userspace Andrew Cooper
2018-07-16  9:38   ` Jan Beulich
2018-07-16  9:51     ` Andrew Cooper
2018-07-16 10:04       ` Jan Beulich
2018-07-16 10:16         ` Andrew Cooper
2018-07-16 10:24           ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 05/13] libx86: introduce a libx86 shared library Andrew Cooper
2018-07-16  9:02   ` Wei Liu
2018-07-16 10:17   ` Jan Beulich
2018-07-16 10:35     ` Andrew Cooper
2018-07-16 10:52       ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 06/13] libx86: Introduce libx86/msr.h and share msr_policy with userspace Andrew Cooper
2018-07-16  9:41   ` Roger Pau Monné
2018-07-16 10:19   ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 07/13] libx86: Introduce a helper to serialise cpuid_policy objects Andrew Cooper
2018-07-16  9:18   ` Wei Liu
2018-07-16  9:45     ` Jan Beulich
2018-07-16 10:39       ` Andrew Cooper
2018-07-16 10:55         ` Jan Beulich
2018-07-16 10:45   ` Jan Beulich
2018-07-17 10:02     ` Andrew Cooper
2018-07-17 11:58       ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 08/13] libx86: Introduce a helper to serialise msr_policy objects Andrew Cooper
2018-07-16  9:24   ` Wei Liu
2018-07-16 10:47   ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 09/13] libx86: Introduce a helper to deserialise cpuid_policy objects Andrew Cooper
2018-07-16  9:57   ` Wei Liu
2018-07-17 10:09     ` Andrew Cooper
2018-07-13 20:03 ` [PATCH v2 10/13] libx86: introduce a helper to deserialise msr_policy objects Andrew Cooper
2018-07-16 10:07   ` Wei Liu
2018-07-16 11:36   ` Jan Beulich
2018-07-17 10:17     ` Andrew Cooper
2018-07-17 12:01       ` Jan Beulich
2018-07-17 16:06         ` Andrew Cooper
2018-07-17 16:23           ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 11/13] x86: Introduce struct cpu_policy to refer to a group of individual policies Andrew Cooper
2018-07-16  9:55   ` Roger Pau Monné
2018-07-16 10:32   ` Wei Liu
2018-07-16 12:04   ` Jan Beulich
2018-07-16 12:16     ` Andrew Cooper
2018-07-16 12:29       ` Jan Beulich
2018-07-16 13:15         ` Andrew Cooper
2018-07-16 13:23           ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 12/13] x86/sysctl: Implement XEN_SYSCTL_get_cpu_policy Andrew Cooper
2018-07-16 10:16   ` Roger Pau Monné
2018-07-16 10:58     ` Andrew Cooper
2018-07-16 11:04       ` Jan Beulich
2018-07-16 11:54   ` Jan Beulich
2018-07-17 16:50     ` Andrew Cooper
2018-07-18  6:45       ` Jan Beulich
2018-07-13 20:03 ` [PATCH v2 13/13] x86/domctl: Implement XEN_DOMCTL_get_cpu_policy Andrew Cooper
2018-07-16 10:26   ` Roger Pau Monné
2018-07-17 17:08     ` Andrew Cooper
2018-07-16 12:00   ` Jan Beulich
2018-07-30  2:14   ` Chao Gao
2018-08-17 21:22   ` Daniel De Graaf
2018-07-30  2:46 ` [PATCH v2 00/13] x86: CPUID and MSR policy marshalling support Chao Gao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.