def METHOD_NAME(session):
    vectors = int(params["vectors"])
    if params["os_type"] == "linux":
        devices = session.cmd_output("lspci | grep Eth").strip()
        error_context.context("Check if vnic inside guest support msi.",
                              test.log.info)
        for device in devices.split("\n"):
            if not device:
                continue
            d_id = device.split()[0]
            msi_check_cmd = params["msi_check_cmd"] % d_id
            status, output = session.cmd_status_output(msi_check_cmd)
            if vectors == 0 and output:
                if (re.findall("MSI-X: Enable+", output)):
                    test.fail("Guest don't support msi when vectors=0")
                test.log.info("Guest works well when vectors=0")
            elif vectors != 0 and status:
                msg = "Could not get ouptut,"
                msg += " when vectors = %d" % vectors
                test.fail("msg")
            elif vectors == 1 and output:
                if not (re.findall("MSI-X: Enable-", output)):
                    msg = "Command %s get wrong output." % msi_check_cmd
                    msg += " when vectors = 1"
                    test.fail(msg)
                test.log.info("MSI-X is disabled")
            elif 2 <= vectors and output:
                if not (re.findall("MSI-X: Enable+", output)):
                    msg = "Command %s get wrong output." % msi_check_cmd
                    msg += " when vectors = %d" % vectors
                    test.fail(msg)
                test.log.info("MSI-X is enabled")
    else:
        error_context.context("Check if the driver is installed and "
                              "verified", test.log.info)
        driver_verifier = params["driver_verifier"]
        utils_test.qemu.windrv_check_running_verifier(session, vm,
                                                      test,
                                                      driver_verifier,
                                                      cmd_timeout)
        msis, queues = utils_net.get_msis_and_queues_windows(params, vm)
        if msis == 0 and vectors == 0:
            test.log.info("Guest works well when vectors=0")
        elif vectors == 0 and msis != 0:
            test.fail("Can't get msi status when vectors=0")
        if 1 <= vectors and vectors != msis:
            test.fail("Msis should equal to vectors(%s), "
                      "but guest is %s" % (vectors, msis))