get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2218255/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2218255,
    "url": "http://patchwork.ozlabs.org/api/patches/2218255/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/kvm-riscv/patch/20260331194202.1722082-2-vipinsh@google.com/",
    "project": {
        "id": 70,
        "url": "http://patchwork.ozlabs.org/api/projects/70/?format=api",
        "name": "Linux KVM RISC-V",
        "link_name": "kvm-riscv",
        "list_id": "kvm-riscv.lists.infradead.org",
        "list_email": "kvm-riscv@lists.infradead.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "http://lists.infradead.org/pipermail/kvm-riscv/",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260331194202.1722082-2-vipinsh@google.com>",
    "list_archive_url": null,
    "date": "2026-03-31T19:41:54",
    "name": "[v4,1/9] KVM: selftest: Create KVM selftest runner",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4ffbeba674bc2bf46313247e7adba539ff0f0428",
    "submitter": {
        "id": 86282,
        "url": "http://patchwork.ozlabs.org/api/people/86282/?format=api",
        "name": "Vipin Sharma",
        "email": "vipinsh@google.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/kvm-riscv/patch/20260331194202.1722082-2-vipinsh@google.com/mbox/",
    "series": [
        {
            "id": 498244,
            "url": "http://patchwork.ozlabs.org/api/series/498244/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/kvm-riscv/list/?series=498244",
            "date": "2026-03-31T19:41:53",
            "name": "KVM: selftests: Create KVM selftests runner",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/498244/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2218255/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2218255/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=mTEqAbBy;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256\n header.s=20251104 header.b=WZlbCfzN;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fldmw72GSz1yCp\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 01 Apr 2026 06:42:20 +1100 (AEDT)",
            "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w7eyf-0000000DULz-2bSX;\n\tTue, 31 Mar 2026 19:42:17 +0000",
            "from mail-pj1-x1049.google.com ([2607:f8b0:4864:20::1049])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1w7eyd-0000000DUL2-2037\n\tfor kvm-riscv@lists.infradead.org;\n\tTue, 31 Mar 2026 19:42:16 +0000",
            "by mail-pj1-x1049.google.com with SMTP id\n 98e67ed59e1d1-35842aa350fso17796062a91.0\n        for <kvm-riscv@lists.infradead.org>;\n Tue, 31 Mar 2026 12:42:14 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID:\n\tReferences:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID:\n\tContent-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc\n\t:Resent-Message-ID:List-Owner;\n\tbh=rrsCu9qjymXrEqKnY0GhwJMBfZPl4QJ9pbACV/z62I8=; b=mTEqAbByNYZWRFjsD8N9qPPyno\n\tgsSMe3K1Sgr4fw+QwEcJMwNBiqfFaCoKXd0QltqbTZ8JSvp6dvC5WIJlio7go0g5RylV6EslVBhzY\n\tlvlEchavHt3GL5cFXwHj0A9UCaPAtBlErawnYtdvCyxYYQVlYaIxiB7Dc7i4H5oV+5x1DJVlS4Qff\n\tVRIa9ZhkKrNdEB51Y9K8qiOmbR3U0FtNp29iqkBgzo/zA/Hxj/6F2ADBFGVSO9wckaa3tR9rJCjTS\n\t3vgXLEsVMNmywbZ6iMfHx7byYsNQrDVeDkLtcrRnoCia2k3szk8Fw4xs8LwNZaPkeK4amTKzD0kEA\n\tAoS2a1BA==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=google.com; s=20251104; t=1774986134; x=1775590934;\n darn=lists.infradead.org;\n        h=cc:to:from:subject:message-id:references:mime-version:in-reply-to\n         :date:from:to:cc:subject:date:message-id:reply-to;\n        bh=77Z+jquwwk0zk6Vwhrc3psuAUoaKxjDwCdLNMqluKDo=;\n        b=WZlbCfzN84qSI7exEWNkjk5FIGo8lw1MM/H6uEC0aidExQ1cxhizbkwpx7TQRpPYyX\n         /e+clcUxUPL8anHod4/W1eYuZtxTOF6tXp+TLbsPv+5VAbo3B4tLIN4/Saw+1UGGsQif\n         gER/NeYCvHU5leEyaBAjnZ55EFdUUtaJ9CE7HmWvQWdO/8ZLx2sDfS2TAvGU/KSX5sKe\n         GoPLx33sWbJr/8B9wfO4j8ho0gd1e+K0ORA7kWqpeTfRaDrJ5/UucpIzAIUQOr33F7nH\n         Q4wVrX7vrAxnz1Kb0hIPay97HTWBbNr39GYy7SiqoJMVKc49GO16HCLi+mPy2iXvuNM6\n         uJpw=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1774986134; x=1775590934;\n        h=cc:to:from:subject:message-id:references:mime-version:in-reply-to\n         :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;\n        bh=77Z+jquwwk0zk6Vwhrc3psuAUoaKxjDwCdLNMqluKDo=;\n        b=LyKwRhOORFcXpMPAzJ4aENIyFkoZXZvTV9gELlB9bSu12WOh1MOh+5jRqNn+bR3Zcw\n         tyZzQAUjUotAOqN8rsGDvJR+mKlT81D0SVW+g8tMZLyXQFtgXMd40aQ2J1NpOjzM67dC\n         2sOChxYSZdo9f3AhBQJaiZ8yndCv/rF3sZTkngIN61NdLzk4eoXcBjPWoH37TdqeA1DN\n         fLWZoEmq19GMdyKx6AXGnJcwqE/S5boLTJ6ax8p0zlKZ7ji46+m1XY6nIrXE1fOgn4nl\n         +CH6bVtFVWL//vCQ4JEMAAghrPRb/Ztl2ltBBtJEN0lBiBWMBe+eU51r/6dnDWYRpoZp\n         Dqgw==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWg09hOauduWDgXyurr8fQNFMmybEDdWlDMTUtV+RhX8JW34eceF3G9UP8QOWvChb5/ssTLMgdueao=@lists.infradead.org",
        "X-Gm-Message-State": "AOJu0Ywsqy0qsvlpMdZe6o3IdDJqr9oF0goebP4USRTaHyByZHQMaHlq\n\tyiaoQ1yqu8cExpa8Uyz+tQe1NSLQTia8ZY/xqu/Dvg7fRHpA2P08j1YEeizC7+95O2BVU5CJcS0\n\tJ00y+TXnpIA==",
        "X-Received": "from pjbmz13.prod.google.com\n ([2002:a17:90b:378d:b0:35c:217b:ecd7])\n (user=vipinsh job=prod-delivery.src-stubby-dispatcher) by\n 2002:a17:90b:2ecb:b0:35b:ea35:c3ce\n with SMTP id 98e67ed59e1d1-35dc6f93abfmr482770a91.27.1774986134029; Tue, 31\n Mar 2026 12:42:14 -0700 (PDT)",
        "Date": "Tue, 31 Mar 2026 12:41:54 -0700",
        "In-Reply-To": "<20260331194202.1722082-1-vipinsh@google.com>",
        "Mime-Version": "1.0",
        "References": "<20260331194202.1722082-1-vipinsh@google.com>",
        "X-Mailer": "git-send-email 2.53.0.1118.gaef5881109-goog",
        "Message-ID": "<20260331194202.1722082-2-vipinsh@google.com>",
        "Subject": "[PATCH v4 1/9] KVM: selftest: Create KVM selftest runner",
        "From": "Vipin Sharma <vipinsh@google.com>",
        "To": "kvm@vger.kernel.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org",
        "Cc": "seanjc@google.com, pbonzini@redhat.com, borntraeger@linux.ibm.com,\n\tfrankja@linux.ibm.com, imbrenda@linux.ibm.com, anup@brainfault.org,\n\tatish.patra@linux.dev, zhaotianrui@loongson.cn, maobibo@loongson.cn,\n\tchenhuacai@kernel.org, maz@kernel.org, oliver.upton@linux.dev,\n\tajones@ventanamicro.com, Vipin Sharma <vipinsh@google.com>",
        "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20260331_124215_525381_A35DC632 ",
        "X-CRM114-Status": "GOOD (  18.39  )",
        "X-Spam-Score": "-9.5 (---------)",
        "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  Implement a basic KVM selftest runner in Python to run\n selftests.\n    Add command line options to select individual testcase file or a directory\n    containing multiple testcase files. After selecting the tests to run,\n start\n    their execution and print their final execution status (passed, failed,\n skipped,\n    no run), stdout and stderr on terminal.\n Content analysis details:   (-9.5 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/, no\n                             trust\n                             [2607:f8b0:4864:20:0:0:0:1049 listed in]\n                             [list.dnswl.org]\n -7.5 USER_IN_DEF_DKIM_WL    From: address is in the default DKIM welcome-list\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n -0.0 DKIMWL_WL_MED          DKIMwl.org - Medium trust sender",
        "X-BeenThere": "kvm-riscv@lists.infradead.org",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "<kvm-riscv.lists.infradead.org>",
        "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/kvm-riscv>,\n <mailto:kvm-riscv-request@lists.infradead.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.infradead.org/pipermail/kvm-riscv/>",
        "List-Post": "<mailto:kvm-riscv@lists.infradead.org>",
        "List-Help": "<mailto:kvm-riscv-request@lists.infradead.org?subject=help>",
        "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/kvm-riscv>,\n <mailto:kvm-riscv-request@lists.infradead.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "\"kvm-riscv\" <kvm-riscv-bounces@lists.infradead.org>",
        "Errors-To": "kvm-riscv-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"
    },
    "content": "Implement a basic KVM selftest runner in Python to run selftests. Add\ncommand line options to select individual testcase file or a\ndirectory containing multiple testcase files.\n\nAfter selecting the tests to run, start their execution and print their\nfinal execution status (passed, failed, skipped, no run), stdout and\nstderr on terminal.\n\nPrint execution status in colors on the terminals where it is supported\nto easily distinguish different statuses of the tests execution.\n\nIf a test fails or times out, then return with a non-zero exit code\nafter all of the tests execution have completed. If none of the tests\nfails or times out then exit with status 0\n\nProvide some sample test configuration files to demonstrate the\nexecution of the runner.\n\nRunner can be started from tools/testing/selftests/kvm directory as:\n\n  python3 runner --dirs tests\nOR\n  python3 runner --testcases \\\n  tests/dirty_log_perf_test/no_dirty_log_protect.test\n\nThis is a very basic implementation of the runner. Next patches will\nenhance the runner by adding more features like parallelization, dumping\noutput to file system, time limit, out-of-tree builds run, etc.\n\nSigned-off-by: Vipin Sharma <vipinsh@google.com>\n---\n tools/testing/selftests/kvm/.gitignore        |  4 +-\n .../testing/selftests/kvm/runner/__main__.py  | 99 +++++++++++++++++++\n .../testing/selftests/kvm/runner/selftest.py  | 66 +++++++++++++\n .../selftests/kvm/runner/test_runner.py       | 37 +++++++\n .../2slot_5vcpu_10iter.test                   |  1 +\n .../no_dirty_log_protect.test                 |  1 +\n 6 files changed, 207 insertions(+), 1 deletion(-)\n create mode 100644 tools/testing/selftests/kvm/runner/__main__.py\n create mode 100644 tools/testing/selftests/kvm/runner/selftest.py\n create mode 100644 tools/testing/selftests/kvm/runner/test_runner.py\n create mode 100644 tools/testing/selftests/kvm/tests/dirty_log_perf_test/2slot_5vcpu_10iter.test\n create mode 100644 tools/testing/selftests/kvm/tests/dirty_log_perf_test/no_dirty_log_protect.test",
    "diff": "diff --git a/tools/testing/selftests/kvm/.gitignore b/tools/testing/selftests/kvm/.gitignore\nindex 1d41a046a7bf..95af97b1ff9e 100644\n--- a/tools/testing/selftests/kvm/.gitignore\n+++ b/tools/testing/selftests/kvm/.gitignore\n@@ -3,10 +3,12 @@\n !/**/\n !*.c\n !*.h\n+!*.py\n !*.S\n !*.sh\n+!*.test\n !.gitignore\n !config\n !settings\n !Makefile\n-!Makefile.kvm\n\\ No newline at end of file\n+!Makefile.kvm\ndiff --git a/tools/testing/selftests/kvm/runner/__main__.py b/tools/testing/selftests/kvm/runner/__main__.py\nnew file mode 100644\nindex 000000000000..db87f426331d\n--- /dev/null\n+++ b/tools/testing/selftests/kvm/runner/__main__.py\n@@ -0,0 +1,99 @@\n+# SPDX-License-Identifier: GPL-2.0\n+# Copyright 2025 Google LLC\n+#\n+# Author: vipinsh@google.com (Vipin Sharma)\n+\n+import argparse\n+import logging\n+import os\n+import sys\n+\n+from test_runner import TestRunner\n+from selftest import SelftestStatus\n+\n+\n+def cli():\n+    parser = argparse.ArgumentParser(\n+        prog=\"KVM Selftests Runner\",\n+        formatter_class=argparse.RawTextHelpFormatter,\n+        allow_abbrev=False\n+    )\n+\n+    parser.add_argument(\"-t\",\n+                        \"--testcases\",\n+                        nargs=\"*\",\n+                        default=[],\n+                        help=\"Testcases to run. Provide the space separated testcases paths\")\n+\n+    parser.add_argument(\"-d\",\n+                        \"--dirs\",\n+                        nargs=\"*\",\n+                        default=[],\n+                        help=\"Run the testcases present in the given directory and all of its sub directories. Provide the space separated paths to add multiple directories.\")\n+\n+    return parser.parse_args()\n+\n+\n+def setup_logging():\n+    class TerminalColorFormatter(logging.Formatter):\n+        reset = \"\\033[0m\"\n+        red_bold = \"\\033[31;1m\"\n+        green = \"\\033[32m\"\n+        yellow = \"\\033[33m\"\n+        blue = \"\\033[34m\"\n+\n+        COLORS = {\n+            SelftestStatus.PASSED: green,\n+            SelftestStatus.NO_RUN: blue,\n+            SelftestStatus.SKIPPED: yellow,\n+            SelftestStatus.FAILED: red_bold\n+        }\n+\n+        def __init__(self, fmt=None, datefmt=None):\n+            super().__init__(fmt, datefmt)\n+\n+        def format(self, record):\n+            return (self.COLORS.get(record.levelno, \"\") +\n+                    super().format(record) + self.reset)\n+\n+    logger = logging.getLogger(\"runner\")\n+    logger.setLevel(logging.INFO)\n+\n+    ch = logging.StreamHandler()\n+    ch_formatter = TerminalColorFormatter(fmt=\"%(asctime)s | %(message)s\",\n+                                          datefmt=\"%H:%M:%S\")\n+    ch.setFormatter(ch_formatter)\n+    logger.addHandler(ch)\n+\n+\n+def fetch_testcases_in_dirs(dirs):\n+    testcases = []\n+    for dir in dirs:\n+        for root, child_dirs, files in os.walk(dir):\n+            for file in files:\n+                testcases.append(os.path.join(root, file))\n+    return testcases\n+\n+\n+def fetch_testcases(args):\n+    testcases = args.testcases\n+    testcases.extend(fetch_testcases_in_dirs(args.dirs))\n+    # Remove duplicates\n+    testcases = list(dict.fromkeys(testcases))\n+    return testcases\n+\n+\n+def main():\n+    args = cli()\n+    setup_logging()\n+    testcases = fetch_testcases(args)\n+    return TestRunner(testcases).start()\n+\n+\n+if __name__ == \"__main__\":\n+    PYTHON_VERSION = (3, 6)\n+    if sys.version_info < PYTHON_VERSION:\n+        print(f\"Minimum required python version {PYTHON_VERSION}, found {sys.version}\")\n+        sys.exit(1)\n+\n+    sys.exit(main())\ndiff --git a/tools/testing/selftests/kvm/runner/selftest.py b/tools/testing/selftests/kvm/runner/selftest.py\nnew file mode 100644\nindex 000000000000..5a86f9ceedd4\n--- /dev/null\n+++ b/tools/testing/selftests/kvm/runner/selftest.py\n@@ -0,0 +1,66 @@\n+# SPDX-License-Identifier: GPL-2.0\n+# Copyright 2025 Google LLC\n+#\n+# Author: vipinsh@google.com (Vipin Sharma)\n+\n+import pathlib\n+import enum\n+import os\n+import subprocess\n+\n+class SelftestStatus(enum.IntEnum):\n+    \"\"\"\n+    Selftest Status. Integer values are just +1 to the logging.INFO level.\n+    \"\"\"\n+\n+    PASSED = 21\n+    NO_RUN = 22\n+    SKIPPED = 23\n+    FAILED = 24\n+\n+    def __str__(self):\n+        return str.__str__(self.name)\n+\n+class Selftest:\n+    \"\"\"\n+    Represents a single selftest.\n+\n+    Extract the test execution command from test file and executes it.\n+    \"\"\"\n+\n+    def __init__(self, test_path):\n+        test_command = pathlib.Path(test_path).read_text().strip()\n+        if not test_command:\n+            raise ValueError(\"Empty test command in \" + test_path)\n+\n+        test_command = os.path.join(\".\", test_command)\n+        self.exists = os.path.isfile(test_command.split(maxsplit=1)[0])\n+        self.test_path = test_path\n+        self.command = test_command\n+        self.status = SelftestStatus.NO_RUN\n+        self.stdout = \"\"\n+        self.stderr = \"\"\n+\n+    def run(self):\n+        if not self.exists:\n+            self.stderr = \"File doesn't exist.\"\n+            return\n+\n+        run_args = {\n+            \"universal_newlines\": True,\n+            \"shell\": True,\n+            \"stdout\": subprocess.PIPE,\n+            \"stderr\": subprocess.PIPE\n+        }\n+        proc = subprocess.run(self.command, **run_args)\n+\n+        out, err = proc.stdout, proc.stderr\n+        self.stdout = out.decode(\"utf-8\", \"replace\") if isinstance(out, bytes) else (out or \"\")\n+        self.stderr = err.decode(\"utf-8\", \"replace\") if isinstance(err, bytes) else (err or \"\")\n+\n+        if proc.returncode == 0:\n+            self.status = SelftestStatus.PASSED\n+        elif proc.returncode == 4:\n+            self.status = SelftestStatus.SKIPPED\n+        else:\n+            self.status = SelftestStatus.FAILED\ndiff --git a/tools/testing/selftests/kvm/runner/test_runner.py b/tools/testing/selftests/kvm/runner/test_runner.py\nnew file mode 100644\nindex 000000000000..4418777d75e3\n--- /dev/null\n+++ b/tools/testing/selftests/kvm/runner/test_runner.py\n@@ -0,0 +1,37 @@\n+# SPDX-License-Identifier: GPL-2.0\n+# Copyright 2025 Google LLC\n+#\n+# Author: vipinsh@google.com (Vipin Sharma)\n+\n+import logging\n+from selftest import Selftest\n+from selftest import SelftestStatus\n+\n+logger = logging.getLogger(\"runner\")\n+\n+\n+class TestRunner:\n+    def __init__(self, testcases):\n+        self.tests = []\n+\n+        for testcase in testcases:\n+            self.tests.append(Selftest(testcase))\n+\n+    def _log_result(self, test_result):\n+        logger.info(\"*** stdout ***\\n\" + test_result.stdout)\n+        logger.info(\"*** stderr ***\\n\" + test_result.stderr)\n+        logger.log(test_result.status,\n+                   f\"[{test_result.status.name}] {test_result.test_path}\")\n+\n+    def start(self):\n+        ret = 0\n+\n+        for test in self.tests:\n+            test.run()\n+            self._log_result(test)\n+\n+            if (test.status not in [SelftestStatus.PASSED,\n+                                    SelftestStatus.NO_RUN,\n+                                    SelftestStatus.SKIPPED]):\n+                ret = 1\n+        return ret\ndiff --git a/tools/testing/selftests/kvm/tests/dirty_log_perf_test/2slot_5vcpu_10iter.test b/tools/testing/selftests/kvm/tests/dirty_log_perf_test/2slot_5vcpu_10iter.test\nnew file mode 100644\nindex 000000000000..5b8d56b44a75\n--- /dev/null\n+++ b/tools/testing/selftests/kvm/tests/dirty_log_perf_test/2slot_5vcpu_10iter.test\n@@ -0,0 +1 @@\n+dirty_log_perf_test -x 2 -v 5 -i 10\ndiff --git a/tools/testing/selftests/kvm/tests/dirty_log_perf_test/no_dirty_log_protect.test b/tools/testing/selftests/kvm/tests/dirty_log_perf_test/no_dirty_log_protect.test\nnew file mode 100644\nindex 000000000000..ed3490b1d1a1\n--- /dev/null\n+++ b/tools/testing/selftests/kvm/tests/dirty_log_perf_test/no_dirty_log_protect.test\n@@ -0,0 +1 @@\n+dirty_log_perf_test -g\n",
    "prefixes": [
        "v4",
        "1/9"
    ]
}