Description of problem: 6.6.88 环境执行kvm.nx_huge_pages_test.sh报 /sys/module/kvm/parameters/nx_huge_pages: No such file or directory Version-Release number of selected component (if applicable): # cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" # uname -r 6.6.88-cbp.git.8932083f9.an23.x86_64 How reproducible: Steps to Reproduce: # pwd /tmp/tone/run/kernel-selftests # bash kvm/nx_huge_pages_test.sh cat: /sys/module/kvm/parameters/nx_huge_pages: No such file or directory Actual results: 用例执行失败 Expected results: 用例执行通过 Additional info: # free -h total used free shared buff/cache available Mem: 15Gi 992Mi 13Gi 46Mi 975Mi 13Gi Swap: 0B 0B 0B # lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Address sizes: 46 bits physical, 57 bits virtual Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: GenuineIntel BIOS Vendor ID: Alibaba Cloud Model name: Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz BIOS Model name: pc-i440fx-2.1 CPU @ 0.0GHz BIOS CPU family: 1 CPU family: 6 Model: 106 Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 Stepping: 6 BogoMIPS: 5399.99 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp l m constant_tsc rep_good nopl nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2 apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves wbnoinvd arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcn tdq rdpid fsrm arch_capabilities Virtualization features: Hypervisor vendor: KVM Virtualization type: full Caches (sum of all): L1d: 96 KiB (2 instances) L1i: 64 KiB (2 instances) L2: 2.5 MiB (2 instances) L3: 48 MiB (1 instance) NUMA: NUMA node(s): 1 NUMA node0 CPU(s): 0-3 Vulnerabilities: Gather data sampling: Unknown: Dependent on hypervisor status Itlb multihit: Not affected L1tf: Not affected Mds: Not affected Meltdown: Not affected Mmio stale data: Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown Reg file data sampling: Not affected Retbleed: Not affected Spec rstack overflow: Not affected Spec store bypass: Vulnerable Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization Spectre v2: Mitigation; Enhanced / Automatic IBRS; RSB filling; PBRSB-eIBRS SW sequence; BHI SW loop, KVM SW loop Srbds: Not affected Tsx async abort: Not affected
6月24日就开始出现 https://tone.openanolis.cn/ws/jfupduzb/test_result/161386
找不到/sys/module/kvm/parameters/nx_huge_pages是因为没有加载kvm模块,加载后会因为ecs不支持嵌套虚拟化跳过测试: [root@iZbp1idmyi9st59rra3c9fZ x86_64]# modprobe kvm [root@iZbp1idmyi9st59rra3c9fZ x86_64]# lsmod | grep kvm kvm 1347584 0 irqbypass 12288 1 kvm [root@iZbp1idmyi9st59rra3c9fZ x86_64]# ll /sys/module/kvm/parameters/nx_huge_pages -rw-r--r--. 1 root root 4096 Jul 14 11:03 /sys/module/kvm/parameters/nx_huge_pages [root@iZbp1idmyi9st59rra3c9fZ x86_64]# ./nx_huge_pages_test.sh Running test with CAP_SYS_BOOT enabled 1..0 # SKIP - /dev/kvm not available (errno: 2)
可以在测试脚本准备阶段检查kvm模块如果未加载需要加载上