qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Add support for Zhaoxin Yongfeng CPU model and other improvements
@ 2024-06-25  9:19 EwanHai
  2024-06-25  9:19 ` [PATCH 1/4] target/i386: Add support for Zhaoxin/VIA CPU vendor identification EwanHai
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: EwanHai @ 2024-06-25  9:19 UTC (permalink / raw)
  To: pbonzini; +Cc: qemu-devel, ewanhai, cobechen, rockcui, louisqi

This patch series introduces support for the Zhaoxin Yongfeng CPU model and includes
some improvements and updates related to Zhaoxin and VIA CPUs. The changes ensure that
QEMU can correctly identify and emulate Zhaoxin CPUs, providing accurate functionality
and performance characteristics.

### Summary of Changes

EwanHai (4):
  target/i386: Add support for Zhaoxin/VIA CPU vendor identification
  target/i386: Add CPUID leaf 0xC000_0001 EDX definitions
  target/i386: Introduce Zhaoxin Yongfeng CPU model
  target/i386: Update CMPLegacy handling for Zhaoxin and VIA CPUs

 target/i386/cpu.c | 130 ++++++++++++++++++++++++++++++++++++++++++++--
 target/i386/cpu.h |  38 ++++++++++++++
 2 files changed, 165 insertions(+), 3 deletions(-)

### Known Bugs

1. Issue with VMX Preemption Timer Rate on Yongfeng CPU:
   - Description: On Yongfeng CPUs, the VMX preemption timer rate is 128, meaning that
     bits 4:0 of MSR_IA32_VMX_MISC_CTLS should be set to 7. However, due to Intel's rate
     being 5, the Linux kernel has hardcoded this value as 5:
     `#define VMX_MISC_EMULATED_PREEMPTION_TIMER_RATE 5`
   - Impact: This discrepancy can cause incorrect behavior in the VMX preemption timer on
     Yongfeng CPUs.
   - Workaround: A patch to correct this issue in the Linux kernel is currently being
     prepared and will be submitted soon.

-- 
2.34.1



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-07-04  6:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25  9:19 [PATCH 0/4] Add support for Zhaoxin Yongfeng CPU model and other improvements EwanHai
2024-06-25  9:19 ` [PATCH 1/4] target/i386: Add support for Zhaoxin/VIA CPU vendor identification EwanHai
2024-06-25  9:19 ` [PATCH 2/4] target/i386: Add CPUID leaf 0xC000_0001 EDX definitions EwanHai
2024-06-25  9:19 ` [PATCH 3/4] target/i386: Introduce Zhaoxin Yongfeng CPU model EwanHai
2024-06-25  9:19 ` [PATCH 4/4] target/i386: Update CMPLegacy handling for Zhaoxin and VIA CPUs EwanHai
2024-07-03 14:49   ` Xiaoyao Li
2024-07-04  3:14     ` Ewan Hai
2024-07-04  3:19       ` Xiaoyao Li
2024-07-04  6:32         ` Ewan Hai
2024-06-25 14:31 ` [PATCH 0/4] Add support for Zhaoxin Yongfeng CPU model and other improvements Zhao Liu
2024-06-26  2:47   ` Ewan Hai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).