PING: [PATCH v2] target/i386/kvm: Refine VMX controls setting for backward compatibility

2024-02-18 Thread Ewan Hai
Dear QEMU Community, Two months have passed since my last submission of the patch aimed at addressing an issue encountered with kernels prior to Linux kernel 5.3. When using the latest version of QEMU with '-cpu host', if the host supports the rdseed instruction but not rdseed exiting, it results

Re: [PATCH v2] target/i386/kvm: Refine VMX controls setting for backward compatibility

2024-02-20 Thread Ewan Hai
On 2/20/24 03:32, Xiaoyao Li wrote: diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c index 11b8177eff..c8f6c0b531 100644 --- a/target/i386/kvm/kvm.c +++ b/target/i386/kvm/kvm.c @@ -2296,6 +2296,7 @@ void kvm_arch_do_init_vcpu(X86CPU *cpu)   static int kvm_get_supported_feature_msrs(K

Re: [PATCH v2] target/i386/kvm: Refine VMX controls setting for backward compatibility

2024-02-22 Thread Ewan Hai
On 2/20/24 06:07, Ewan Hai wrote: On 2/20/24 03:32, Xiaoyao Li wrote: diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c index 11b8177eff..c8f6c0b531 100644 --- a/target/i386/kvm/kvm.c +++ b/target/i386/kvm/kvm.c @@ -2296,6 +2296,7 @@ void kvm_arch_do_init_vcpu(X86CPU *cpu)   static

Re: [PATCH v3] target/i386/kvm: Refine VMX controls setting for backward compatibility

2024-06-24 Thread Ewan Hai
Sorry for my oversight, I am adding the maintainers who were missed in the previous email. On 6/24/24 05:58, EwanHai wrote: Commit 4a910e1 ("target/i386: do not set unsupported VMX secondary execution controls") implemented a workaround for hosts that have specific CPUID features but do not supp

Re: [PATCH v3] target/i386/kvm: Refine VMX controls setting for backward compatibility

2024-06-25 Thread Ewan Hai
On 6/25/24 05:49, Zhao Liu wrote: diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c index 7ad8072748..a7c6c5b2d0 100644 --- a/target/i386/kvm/kvm.c +++ b/target/i386/kvm/kvm.c @@ -2386,6 +2386,7 @@ void kvm_arch_do_init_vcpu(X86CPU *cpu) static int kvm_get_supported_feature_msrs(KVM

Re: [PATCH 0/4] Add support for Zhaoxin Yongfeng CPU model and other improvements

2024-06-25 Thread Ewan Hai
I’m sorry, but currently Zhaoxin has not released any specs or datasheets related to the current patch. Zhaoxin CPUs are compatible with the x86 architecture, particularly with Intel. For example, you can refer to the Intel SDM (Software Developer’s Manual). Regarding the current patch, except f

Re: [PATCH 4/4] target/i386: Update CMPLegacy handling for Zhaoxin and VIA CPUs

2024-07-03 Thread Ewan Hai
On 7/3/24 10:49, Xiaoyao Li wrote: On 6/25/2024 5:19 PM, EwanHai wrote: Zhaoxin and VIA CPUs handle the CMPLegacy bit in the same way as Intel CPUs. This patch simplifies the existing logic by using the IS_XXX_CPU macro and includes checks for Zhaoxin and VIA vendors to align their behavior wit

Re: [PATCH 4/4] target/i386: Update CMPLegacy handling for Zhaoxin and VIA CPUs

2024-07-03 Thread Ewan Hai
On 7/3/24 23:19, Xiaoyao Li wrote: On 7/4/2024 11:14 AM, Ewan Hai wrote: On 7/3/24 10:49, Xiaoyao Li wrote: On 6/25/2024 5:19 PM, EwanHai wrote: Zhaoxin and VIA CPUs handle the CMPLegacy bit in the same way as Intel CPUs. This patch simplifies the existing logic by using the IS_XXX_CPU

Re: [PATCH v2 0/4] Add support for Zhaoxin Yongfeng CPU model and other improvements

2024-08-08 Thread Ewan Hai
Dear Maintainers,     Could you please review the current patchset and let me know if you have any concerns? On 7/4/24 07:25, EwanHai wrote: ### Summary of changes EwanHai (4): target/i386: Add support for Zhaoxin CPU vendor identification target/i386: Add CPUID leaf 0xC000_0001 EDX d

Re: [PATCH v2 4/4] target/i386: Update CMPLegacy handling for Zhaoxin CPUs

2024-08-08 Thread Ewan Hai
Hi Zhao Liu, Thank you for your feedback. On 8/8/24 06:30, Zhao Liu wrote: Hi EwanHai, On Thu, Jul 04, 2024 at 07:25:11AM -0400, EwanHai wrote: Date: Thu, 4 Jul 2024 07:25:11 -0400 From: EwanHai Subject: [PATCH v2 4/4] target/i386: Update CMPLegacy handling for Zhaoxin CPUs X-Mailer: git

Re: [PATCH v2 4/4] target/i386: Update CMPLegacy handling for Zhaoxin CPUs

2024-08-08 Thread Ewan Hai
On 8/8/24 23:22, Zhao Liu wrote: Hi EwanHai, On Thu, Jul 04, 2024 at 07:25:11AM -0400, EwanHai wrote: Date: Thu, 4 Jul 2024 07:25:11 -0400 From: EwanHai Subject: [PATCH v2 4/4] target/i386: Update CMPLegacy handling for Zhaoxin CPUs X-Mailer: git-send-email 2.34.1 Zhaoxin CPUs handle th

Re: [PATCH v2 4/4] target/i386: Update CMPLegacy handling for Zhaoxin CPUs

2024-08-08 Thread Ewan Hai
On 8/8/24 23:47, Zhao Liu wrote: On Thu, Aug 08, 2024 at 11:25:45PM -0400, Ewan Hai wrote: [snip] Thank you for your suggestion; the changes will indeed make it clearer. I have a question: since you’ve already added your reviewed-by tag to the first three patches, if I want to modify these

Re: [PATCH v3 4/4] target/i386: Mask CMPLegacy bit in CPUID[0x80000001].ECX for Zhaoxin CPUs

2024-08-12 Thread Ewan Hai
Thank you for your review!, I will udpate the commit message according to your suggestions to ensure it provides the most accurate information. On 8/12/24 05:52, Zhao Liu wrote: On Fri, Aug 09, 2024 at 05:42:59AM -0400, EwanHai wrote: Date: Fri, 9 Aug 2024 05:42:59 -0400 From: EwanHai Subject:

Re: [PATCH v2] target/i386/kvm: Refine VMX controls setting for backward compatibility

2024-06-18 Thread Ewan Hai
Dear Xiaoyao and Maintainers,     Are there any new comments regarding this patch? On 2/22/24 22:13, Ewan Hai wrote: On 2/20/24 06:07, Ewan Hai wrote: On 2/20/24 03:32, Xiaoyao Li wrote: diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c index 11b8177eff..c8f6c0b531 100644 --- a

PING: VMX controls setting patch for backward compatibility

2023-11-23 Thread Ewan Hai
rd to hearing from you. Best regards, Ewan Hai On 10/27/23 02:08, Ewan Hai wrote: Hi Zhao, since I found last email contains non-plain-text content, and...@vger.kernel.org rejected to receive my mail, so just re-send last mail here, to follow the rule of qemu /kvm community. On 10/25/23 23:20, Zha

Re: [PATCH] target/i386/kvm: Refine VMX controls setting for backward compatibility

2023-10-26 Thread Ewan Hai
On 10/25/23 23:20, Zhao Liu wrote: On Mon, Sep 25, 2023 at 03:14:53AM -0400, EwanHai wrote: Date: Mon, 25 Sep 2023 03:14:53 -0400 From: EwanHai Subject: [PATCH] target/i386/kvm: Refine VMX controls setting for backward compatibility X-Mailer: git-send-email 2.34.1 Commit 4a910e1 ("target/i38

Re: [PATCH] target/i386/kvm: Refine VMX controls setting for backward compatibility

2023-10-26 Thread Ewan Hai
Hi Zhao, since I found last email contains non-plain-text content, and...@vger.kernel.org rejected to receive my mail, so just re-send last mail here, to follow the rule of qemu /kvm community. On 10/25/23 23:20, Zhao Liu wrote: On Mon, Sep 25, 2023 at 03:14:53AM -0400, EwanHai wrote: Date: M

Re: [PATCH v3] target/i386/kvm: Refine VMX controls setting for backward compatibility

2024-07-23 Thread Ewan Hai
Dear Maintainers and Paolo, I hope this message finds you well. I am writing to inquire about the status of the patch I submitted a month ago. Could you please provide any updates or addtional comments regarding its review? Thank you for your time and assistance. Best regards, Ewan On 6/25/2

[PATCH v2] target/i386: Fix model number of Zhaoxin YongFeng vCPU template

2025-04-06 Thread Ewan Hai
/i386: Introduce Zhaoxin Yongfeng CPU model") Signed-off-by: Ewan Hai Reviewed-by: Zhao Liu --- target/i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 1b64ceaaba..0dd9788a68 100644 --- a/target/i386/cpu.c +++ b/target/

Re: [PATCH v2 08/10] target/i386/kvm: reset AMD PMU registers during VM reset

2025-03-31 Thread Ewan Hai
[2] As mentioned in [1], QEMU always sets the vCPU's vendor to match the host's vendor when acceleration (KVM or HVF) is enabled. Therefore, if users want to emulate a Zhaoxin CPU on an Intel host, the vendor must be set manually.Furthermore, should we display a warning to users who enable both vP

Re: [PATCH v2 08/10] target/i386/kvm: reset AMD PMU registers during VM reset

2025-04-07 Thread Ewan Hai
On 4/7/25 4:51 PM, Zhao Liu wrote: On Tue, Apr 01, 2025 at 11:35:49AM +0800, Ewan Hai wrote: Date: Tue, 1 Apr 2025 11:35:49 +0800 From: Ewan Hai Subject: Re: [PATCH v2 08/10] target/i386/kvm: reset AMD PMU registers during VM reset [2] As mentioned in [1], QEMU always sets the vCPU&#

Re: [PATCH v2] target/i386: Fix model number of Zhaoxin YongFeng vCPU template

2025-04-11 Thread Ewan Hai
On 4/11/25 11:22 AM, Zhao Liu wrote: On Thu, Apr 10, 2025 at 10:07:15PM +0800, Ewan Hai wrote: Date: Thu, 10 Apr 2025 22:07:15 +0800 From: Ewan Hai Subject: Re: [PATCH v2] target/i386: Fix model number of Zhaoxin YongFeng vCPU template On 4/10/25 8:22 PM, Paolo Bonzini wrote: On 4/7

[PATCH] target/i386: Fix model number of Zhaoxin YongFeng vCPU template

2025-03-31 Thread Ewan Hai
The model number was mistakenly set to 0x0b (11) in commit ff04bc1ac4. The correct value is 0x5b. This mistake occurred because the extended model bits in cpuid[eax=0x1].eax were overlooked, and only the base model was used. This patch corrects the model field. Signed-off-by: Ewan Hai

Re: [PATCH v2] target/i386: Fix model number of Zhaoxin YongFeng vCPU template

2025-04-10 Thread Ewan Hai
On 4/10/25 8:22 PM, Paolo Bonzini wrote: On 4/7/25 04:07, Ewan Hai wrote: The model number was mistakenly set to 0x0b (11) in commit ff04bc1ac4. The correct value is 0x5b. This mistake occurred because the extended model bits in cpuid[eax=0x1].eax were overlooked, and only the base model was

Re: [PATCH v2] target/i386: Fix model number of Zhaoxin YongFeng vCPU template

2025-04-14 Thread Ewan Hai
On 4/14/25 2:44 PM, Xiaoyao Li wrote: On 4/11/2025 3:42 PM, Ewan Hai wrote: On 4/11/25 11:22 AM, Zhao Liu wrote: On Thu, Apr 10, 2025 at 10:07:15PM +0800, Ewan Hai wrote: Date: Thu, 10 Apr 2025 22:07:15 +0800 From: Ewan Hai Subject: Re: [PATCH v2] target/i386: Fix model number of

[PATCH v3] target/i386: Fix model number of Zhaoxin YongFeng vCPU template

2025-04-14 Thread Ewan Hai
is that vPMU (which relies on the model number) may fail to operate correctly. This patch corrects the model field by introducing a new vCPU version. Fixes: ff04bc1ac4 ("target/i386: Introduce Zhaoxin Yongfeng CPU model") Signed-off-by: Ewan Hai --- target/i386/cpu.c | 12 ++

Re: [PATCH v3] target/i386: Fix model number of Zhaoxin YongFeng vCPU template

2025-04-14 Thread Ewan Hai
On 4/14/25 11:05 PM, Zhao Liu wrote: On Mon, Apr 14, 2025 at 03:53:42AM -0400, Ewan Hai wrote: Date: Mon, 14 Apr 2025 03:53:42 -0400 From: Ewan Hai Subject: [PATCH v3] target/i386: Fix model number of Zhaoxin YongFeng vCPU template X-Mailer: git-send-email 2.34.1 The model number was