Пример #1
0
 def unload_modules(self):
     """
     Unload modules
     """
     modules = ['mlx5_vdpa', 'vhost_vdpa', 'vdpa']
     for module_name in modules:
         KernelModuleHandler(module_name).unload_module()
Пример #2
0
 def unload_modules(self):
     """
     Unload modules
     """
     modules = [self.sim_dev_module, 'vdpa_sim', 'vhost_vdpa', 'vdpa']
     for module_name in modules:
         KernelModuleHandler(module_name).unload_module()
Пример #3
0
 def load_modules(self):
     """
     Load modules
     """
     modules = ['vdpa', 'vhost_vdpa', 'mlx5_vdpa']
     for module_name in modules:
         KernelModuleHandler(module_name).reload_module(True)
Пример #4
0
 def load_modules(self):
     """
     Load modules
     """
     self.unload_modules()
     modules = ['vdpa', 'vhost_vdpa', 'vdpa_sim', self.sim_dev_module]
     for module_name in modules:
         KernelModuleHandler(module_name).reload_module(True)