def METHOD_NAME(vm):
    kill_bg_stress_cmd = params.get("kill_bg_stress_cmd",
                                    "killall -9 stress")
    logging.info("Kill the background test in guest.")
    session = vm.wait_for_login(timeout=self.login_timeout,
                                nic_index=self.nic_index)
    if self.params.get("bg_stress_test") == "driver_load":
        if self.bg and self.bg.is_alive():
            self.bg.join()
        output = session.cmd_output("ipconfig || ifconfig")
        logging.info("Guest network status:\n %s", output)
        session.cmd(self.driver_load_cmd)
    else:
        s, o = session.cmd_status_output(kill_bg_stress_cmd)
        if s:
            raise error.TestFail("Failed to kill the background"
                                 " test in guest: %s" % o)
    session.close()