Skip to content

i386: Make Intel PT configurable

Xiaoyao Li kvm qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 1 replyIn review
  2. v38 patches 8 repliesSuperseded
  3. v28 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC5 patches9 repliesSuperseded

Changes in v4 from the cover letter

- rebase to 51bdb0b57a2d "Merge tag 'pull-tcg-20230530' of https://gitlab.com/rth7680/qemu into staging"
- cleanup Patch 6 by updating the commit message and remove unnecessary
handlng;

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8target/i386: Print CPUID subleaf info for unsupported featuretarget/i386/cpu.c+3 -20 replies
2/8target/i386/intel-pt: Fix INTEL_PT_ADDR_RANGES_NUM_MASKtarget/i386/cpu.c+1 -10 replies
3/8target/i386/intel-pt: Introduce FeatureWordInfo for Intel PT CPUID leaf 0x14target/i386/cpu.c target/i386/cpu.h+132 -90 replies
4/8target/i386/intel-pt: print special message for INTEL_PT_ADDR_RANGES_NUMtarget/i386/cpu.c+8 -10 replies
5/8target/i386/intel-pt: Rework/rename the default INTEL-PT feature settarget/i386/cpu.c target/i386/cpu.h+65 -390 replies
6/8target/i386/intel-pt: Enable host pass through of Intel PTtarget/i386/cpu.c+29 -330 replies
7/8target/i386/intel-pt: Define specific PT feature set for IceLake-server, Snowridge and SapphireRapidstarget/i386/cpu.c+27 -00 replies
8/8target/i386/intel-pt: Access MSR_IA32_RTIT_ADDRn based on guest CPUID configurationtarget/i386/cpu.h target/i386/kvm/kvm.c+6 -40 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchEduardo Habkost
1/8R-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v4 thread

Cover letter [PATCH v4 0/8] i386: Make Intel PT configurable

Initial virtualization of Intel PT was added by making it as fixed feature set of ICX's capabilities. However, it breaks the Intel PT exposure on SPR machine because SPR has less PT capabilities of CPUID(0x14,1):EBX[15:0].

This series aims to make Intel PT configurable that named CPU model can define its own PT feature set and "-cpu host/max" can use host pass-through feature set of Intel PT.

At the same time, it also ensures existing named CPU model to generate the same PT CPUID set as before to not break live migration.

Changes in v4:
- rebase to 51bdb0b57a2d "Merge tag 'pull-tcg-20230530' of https://gitlab.com/rth7680/qemu into staging"
- cleanup Patch 6 by updating the commit message and remove unnecessary
handlng;

v3: https://lore.kernel.org/qemu-devel/[email protected]/
- rebase to v7.2.0-rc4
- Add bit 7 and 8 of FEAT_14_0_EBX in Patch 3

v2: https://lore.kernel.org/qemu-devel/[email protected]/
Changes in v2:
- split out 3 patches (per Eduardo's comment)
- determine if the named cpu model uses default Intel PT capabilities (to be compatible with the old behavior) by condition that all PT feature leaves are all zero.

v1: https://lore.kernel.org/qemu-devel/[email protected]/

Xiaoyao Li (8):
target/i386: Print CPUID subleaf info for unsupported feature target/i386/intel-pt: Fix INTEL_PT_ADDR_RANGES_NUM_MASK target/i386/intel-pt: Introduce FeatureWordInfo for Intel PT CPUID

    leaf 0x14

target/i386/intel-pt: print special message for
INTEL_PT_ADDR_RANGES_NUM
target/i386/intel-pt: Rework/rename the default INTEL-PT feature set target/i386/intel-pt: Enable host pass through of Intel PT target/i386/intel-pt: Define specific PT feature set for
IceLake-server, Snowridge and SapphireRapids
target/i386/intel-pt: Access MSR_IA32_RTIT_ADDRn based on guest CPUID
configuration

 target/i386/cpu.c     | 293 +++++++++++++++++++++++++++++++-----------
 target/i386/cpu.h     |  39 +++++-
 target/i386/kvm/kvm.c |   8 +-
 3 files changed, 261 insertions(+), 79 deletions(-)
Signature · 1 line
2.34.1