All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Add support for Zhaoxin Yongfeng CPU model and other improvements
@ 2024-07-04 11:25 EwanHai
  2024-07-04 11:25 ` [PATCH v2 1/4] target/i386: Add support for Zhaoxin CPU vendor identification EwanHai
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: EwanHai @ 2024-07-04 11:25 UTC (permalink / raw)
  To: pbonzini, zhao1.liu, xiaoyao.li
  Cc: qemu-devel, ewanhai, cobechen, rockcui, louisqi, liamni, frankzhu

### Summary of changes

EwanHai (4):
  target/i386: Add support for Zhaoxin 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 CPUs

 target/i386/cpu.c | 128 ++++++++++++++++++++++++++++++++++++++++++++--
 target/i386/cpu.h |  41 ++++++++++++++-
 2 files changed, 165 insertions(+), 4 deletions(-)

### Changes since v1
1. Removed VIA-related information from the patch description to avoid
misunderstanding.
2. Replaced CPUID_VENDOR_VIA with CPUID_VENDOR_ZHAOXIN1 because the
"Centaurhauls" vendor ID now belongs to Zhaoxin.The previous CPUID_VENDOR_VIA
macro was only defined but never used in QEMU, making this change
straightforward.

v1 link: https://lore.kernel.org/qemu-devel/20240625091905.1325205-1-ewanhai-
oc@zhaoxin.com/

### Known Issues
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] 15+ messages in thread

end of thread, other threads:[~2024-08-09  4:34 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-04 11:25 [PATCH v2 0/4] Add support for Zhaoxin Yongfeng CPU model and other improvements EwanHai
2024-07-04 11:25 ` [PATCH v2 1/4] target/i386: Add support for Zhaoxin CPU vendor identification EwanHai
2024-08-08 10:31   ` Zhao Liu
2024-07-04 11:25 ` [PATCH v2 2/4] target/i386: Add CPUID leaf 0xC000_0001 EDX definitions EwanHai
2024-08-08 10:35   ` Zhao Liu
2024-07-04 11:25 ` [PATCH v2 3/4] target/i386: Introduce Zhaoxin Yongfeng CPU model EwanHai
2024-08-08 10:55   ` Zhao Liu
2024-07-04 11:25 ` [PATCH v2 4/4] target/i386: Update CMPLegacy handling for Zhaoxin CPUs EwanHai
2024-08-08 10:30   ` Zhao Liu
2024-08-09  1:44     ` Ewan Hai
2024-08-09  3:22       ` Zhao Liu
2024-08-09  3:25         ` Ewan Hai
2024-08-09  3:47           ` Zhao Liu
2024-08-09  3:37             ` Ewan Hai
2024-08-08  9:23 ` [PATCH v2 0/4] Add support for Zhaoxin Yongfeng CPU model and other improvements Ewan Hai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.