def METHOD_NAME(vm_name):
    """
    Check that the iothread value has been set in the XML file.
    """
    dom_xml = virsh.dumpxml(vm_name, debug=False).stdout_text.strip()
    iothread_str = \
        params.get("xml_iothread_block")
    if iothread_str not in dom_xml:
        test.fail("IOThread value was not set to 2 in %s" % dom_xml)