i386: cpu: remove duplicate feature names
Status from this message: Thanks, applied all.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | i386: kvm: bit 10 of CPUID[8000_0001].EDX is reservedtarget-i386/ | +1 | 1 reply | |
| 2/5 | i386: kvm: use a #define for the set of alias feature bitstarget-i386/ target-i386/ | +13 | 1 reply | |
| 3/5 | i386: cpu: replace EXT2_FEATURE_MASK with CPUID_EXT2_AMD_ALIASEStarget-i386/ | +11 | 1 reply | |
| 4/5 | i386: cpu: eliminate duplicate feature namestarget-i386/ | +23 | 1 reply | |
| 5/5 | i386: -cpu help: remove reference to specific CPUID leaves/registerstarget-i386/ | +4 | 1 reply |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Igor Mammedov | Don Slutz |
|---|---|---|
| Series | R-b | |
| 1/5 | R-b | R-b |
| 2/5 | R-b | R-b |
| 3/5 | R-b | |
| 4/5 | R-b | |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH 0/5] i386: cpu: remove duplicate feature names
The problem:
- Some features are report at the same time on both CPUID[1].EDX and CPUID[8000_0001].EDX on AMD CPUs (e.g. fpu, tsc, msr, pae, mmx).
- "-cpu <model>,+feature" should enable the bit only on CPUID[1] if it's not an AMD CPU, but it should enable the bit on both CPUID[1] and CPUID[8000_0001] if it's an AMD CPU.
- The same should happen when implementing CPU properties: setting the property that enables a feature should set the duplicate CPUID[8000_0001].EDX bit only if CPU vendor is AMD.
Reference: http://article.gmane.org/gmane.comp.emulators.qemu/166024
The solution implemented by this series is:
- On the CPU model table and while parsing CPU options/properties, set the bit only on CPUID[1] (the x86_def_t.features field).
- When finishing initialization of the CPU cpuid fields, duplicate those feature bits on cpuid_ext2_features if and only if the CPU vendor is AMD.
This series depends on the "x86 CPU patches that didn't get into 1.2" series:
http://article.gmane.org/gmane.comp.emulators.qemu/168633
Message-Id: <[email protected]>
Eduardo Habkost (5):
i386: kvm: bit 10 of CPUID[8000_0001].EDX is reserved
i386: kvm: use a #define for the set of alias feature bits
i386: cpu: replace EXT2_FEATURE_MASK with CPUID_EXT2_AMD_ALIASES
i386: cpu: eliminate duplicate feature names
i386: -cpu help: remove reference to specific CPUID leaves/registers
target-i386/cpu.c | 59 +++++++++++++++++++++++++++++++++++-------------------- target-i386/cpu.h | 12 +++++++++++ target-i386/kvm.c | 2 +- 3 files changed, 51 insertions(+), 22 deletions(-)
Signature · 1 line
1.7.11.4