mbox series

[0/4] x86/cpuid: Handling of synthetic cpuid_policy fields

Message ID 1553170866-23812-1-git-send-email-andrew.cooper3@citrix.com (mailing list archive)
Headers show
Series x86/cpuid: Handling of synthetic cpuid_policy fields | expand

Message

Andrew Cooper March 21, 2019, 12:21 p.m. UTC
This is the next piece of CPUID work, and associated cleanup for the existing
logic.

Andrew Cooper (4):
  libx86: Introduce x86_cpuid_lookup_vendor()
  x86/cpuid: Drop get_cpu_vendor() completely
  tools/libxc: Use x86_cpuid_lookup_vendor() rather than opencoding the logic
  libx86: Recalculate synthesised cpuid_policy fields when appropriate

 tools/libxc/xc_cpuid_x86.c               | 28 ++++++--------------
 tools/tests/cpu-policy/test-cpu-policy.c | 37 ++++++++++++++++++++++++++
 xen/arch/x86/cpu/amd.c                   |  1 -
 xen/arch/x86/cpu/centaur.c               |  1 -
 xen/arch/x86/cpu/common.c                | 45 +++++++++-----------------------
 xen/arch/x86/cpu/cpu.h                   |  1 -
 xen/arch/x86/cpu/intel.c                 |  1 -
 xen/arch/x86/cpu/shanghai.c              |  1 -
 xen/arch/x86/cpuid.c                     |  7 ++---
 xen/include/asm-x86/processor.h          |  7 -----
 xen/include/asm-x86/x86-vendors.h        | 21 +++++++++++++++
 xen/include/xen/lib/x86/cpuid.h          | 14 +++++++---
 xen/lib/x86/cpuid.c                      | 43 ++++++++++++++++++++++++++++++
 xen/lib/x86/private.h                    |  1 +
 14 files changed, 138 insertions(+), 70 deletions(-)