diff options
| -rwxr-xr-x | smoketest/scripts/system/test_kernel_options.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/smoketest/scripts/system/test_kernel_options.py b/smoketest/scripts/system/test_kernel_options.py index ac6546c47..c39d5a26b 100755 --- a/smoketest/scripts/system/test_kernel_options.py +++ b/smoketest/scripts/system/test_kernel_options.py @@ -230,14 +230,21 @@ class TestKernelModules(unittest.TestCase): options_to_check = ['CONFIG_HYPERV_VSOCKETS', 'CONFIG_HYPERV_STORAGE', 'CONFIG_HYPERV_NET', 'CONFIG_HYPERV_KEYBOARD', - 'CONFIG_HYPERV_VTL_MODE', 'CONFIG_HYPERV_TIMER', - 'CONFIG_HYPERV_UTILS', 'CONFIG_HYPERV_BALLOON', - 'CONFIG_HYPERV_VMBUS', 'CONFIG_HYPERV_IOMMU'] + 'CONFIG_HYPERV_TIMER', 'CONFIG_HYPERV_UTILS', + 'CONFIG_HYPERV_BALLOON', 'CONFIG_HYPERV_VMBUS', + 'CONFIG_HYPERV_IOMMU', 'CONFIG_PCI_HYPERV', + 'CONFIG_PCI_HYPERV_INTERFACE'] for option in options_to_check: tmp = re.findall(f'{option}=(y|m)', self._config_data) self.assertTrue(tmp) + # T8940: a kernel built with HYPERV_VTL_MODE "must run at VTL2, and + # will not run as a normal guest" - get_vtl() calls BUG() on every + # regular Hyper-V VM. This option must never be enabled. + tmp = re.findall(r'CONFIG_HYPERV_VTL_MODE=(y|m)', self._config_data) + self.assertFalse(tmp) + def test_hypervisor_vmware(self): if IS_ARM64: self.skipTest('VMware only available on X86 platform') |
