Skip to content

i386: Adjust CPUID_EXT_PDCM based on enable_pmu at realization

Xiaoyao Li qemu-devel 1 version Applied

Status from this message: Queued, thanks; sorry about the delay.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2i386/cpu: Move adjustment of CPUID_EXT_PDCM before feature_dependencies[] checktarget/i386/cpu.c+4 -31 reply
2/2i386/cpu: Warn about why CPUID_EXT_PDCM is not availabletarget/i386/cpu.c+3 -01 reply

Reviews trailers per patch

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

PatchZhao Liu
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 v1 thread

Cover letter [PATCH 0/2] i386: Adjust CPUID_EXT_PDCM based on enable_pmu at realization

First, it's not a good practice that values in env->features[] cannot be directly used for guest CPUID in void cpu_x86_cpuid(), but require further adjustment there. env->features[] are supposed to be finalized at cpu realization, so that after it env->features[] is reliable.

Second, there is one dependency entry relates to CPUID_EXT_PDCM in feature_dependencies[]. QEMU needs to get correct value of CPUID_EXT_PDCM in env->features[] to ensure applying the dependencies correctly.

Patch 1 resolves above two points.

Patch 2 is a enhancement to give users a warning when they request pdcm explicitly while PMU disabled.

Xiaoyao Li (2):
i386/cpu: Move adjustment of CPUID_EXT_PDCM before

    feature_dependencies[] check

i386/cpu: Warn about why CPUID_EXT_PDCM is not available

 target/i386/cpu.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1