Skip to content

Add CpuidUserDis support

Alejandro Vallejo xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v23 patches 7 repliesSuperseded
  3. v13 patches 10 repliesSuperseded

Changes in v3 from the cover letter

* Move LCAP setters from patch 2 to patch 1
* Comment on rationale for checking CPUID faulting before CpuidUserDis on AMD

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86: Refactor conditional guard in probe_cpuid_faulting()xen/arch/x86/cpu/amd.c xen/arch/x86/cpu/common.c xen/arch/x86/cpu/intel.c+23 -150 replies
2/2x86: Add support for CpuidUserDisxen/arch/x86/cpu/amd.c xen/arch/x86/cpu/common.c xen/arch/x86/include/asm/amd.h+49 -131 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJan Beulich
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] Add CpuidUserDis support

v3:
* Move LCAP setters from patch 2 to patch 1
* Comment on rationale for checking CPUID faulting before CpuidUserDis on AMD

Nowadays AMD supports trapping the CPUID instruction from ring>0 to ring0, (CpuidUserDis) akin to Intel's "CPUID faulting". There is a difference in that the toggle bit is in a different MSR and the support bit is in CPUID itself rather than yet another MSR. This patch enables AMD hosts to use it when supported in order to provide correct CPUID contents to PV guests.

Patch 1 moves vendor-specific code on probe_cpuid_faulting() to amd.c/intel.c

Patch 2 adds support for CpuidUserDis, hooking it in the probing path and the context switching path.

Alejandro Vallejo (2):
x86: Refactor conditional guard in probe_cpuid_faulting()
x86: Add support for CpuidUserDis

 xen/arch/x86/cpu/amd.c         | 32 ++++++++++++++++++++-
 xen/arch/x86/cpu/common.c      | 51 ++++++++++++++++++----------------
 xen/arch/x86/cpu/intel.c       | 12 +++++++-
 xen/arch/x86/include/asm/amd.h |  1 +
 4 files changed, 70 insertions(+), 26 deletions(-)
Signature · 1 line
2.34.1