Bug 28798 - Add Hygon support to KVM selftests
Summary: Add Hygon support to KVM selftests
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-26 15:27 UTC by zhouyanjing
Modified: 2026-01-04 10:39 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhouyanjing hygon_group 2025-12-26 15:27:52 UTC
Some KVM selftests fail when executed on the Hygon platform. 
For example, the demand_paging_test reports the following error message:
Random seed: 0x6b8b4567
Testing guest mode: PA-bits:ANY, VA-bits:48,  4K pages
guest physical test memory: [0xffffbffff000, 0xfffffffff000)
Finished creating vCPUs and starting uffd threads
Started all vCPUs
==== Test Assertion Failure ====
  lib/x86/processor.c:615: Unconditional guest failure
  pid=2144622 tid=2144624 errno=4 - Interrupted system call
     1    0x0000000000411871: assert_on_unhandled_exception 于 processor.c:659
     2    0x000000000040687d: _vcpu_run 于 kvm_util.c:1718
     3    0x0000000000402aa2: vcpu_worker 于 demand_paging_test.c:44
     4    0x000000000040951d: vcpu_thread_main 于 memstress.c:281
     5    0x00007fd2728875d4: ?? ??:0
     6    0x00007fd2729092fb: ?? ??:0
  Unhandled exception '0xe' at guest RIP '0x40947c'

Add Hygon support in KVM selftests to fix these issues.
Comment 1 小龙 admin 2025-12-29 10:50:36 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/6284
Comment 2 zhouyanjing hygon_group 2026-01-04 10:39:39 UTC
After adding the Hygon support, the operating results of demand_paging_test on the Hygon platform are as follows:

Testing guest mode: PA-bits:ANY, VA-bits:48,  4K pages
guest physical test memory: [0x7fcbfffe000, 0x7fcffffe000)
Finished creating vCPUs and starting uffd threads
Started all vCPUs
All vCPU threads joined
Total guest execution time: 1.819900671s
Overall demand paging rate: 144043.026181 pgs/sec