From ed8aacf0596e16b6b460b681880d3219c0d2d3b6 Mon Sep 17 00:00:00 2001 From: Dheeraj Kumar Srivastava Date: Tue, 4 Mar 2025 18:02:07 +0530 Subject: [PATCH] io/iommu/amd: Derive cpu page table level from va bits of /proc/cpuinfo Instead of canceling the test if kernel config file is not found, rely and derive cpu page table level from /proc/cpuinfo. Signed-off-by: Dheeraj Kumar Srivastava --- io/iommu/amd/iommu_v2pgmode_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io/iommu/amd/iommu_v2pgmode_test.py b/io/iommu/amd/iommu_v2pgmode_test.py index 38e05832f..7a3749409 100644 --- a/io/iommu/amd/iommu_v2pgmode_test.py +++ b/io/iommu/amd/iommu_v2pgmode_test.py @@ -104,7 +104,8 @@ def check_kernelconf_5lvl(self): if os.path.exists(config_file): return check_kernelconf(config_file, "CONFIG_X86_5LEVEL") - self.cancel("Kernel config not found in '/boot/' and '/lib/modules//build/'") + self.log.info("Kernel config not found in '/boot/' and '/lib/modules//build/'." + "Using VA bits in /proc/cpuinfo to derive cpu page table level") return False def test(self):