get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230827,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230827/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430052218.771358-2-alistair.francis@wdc.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/14/?format=api",
        "name": "QEMU Development",
        "link_name": "qemu-devel",
        "list_id": "qemu-devel.nongnu.org",
        "list_email": "qemu-devel@nongnu.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20260430052218.771358-2-alistair.francis@wdc.com>",
    "date": "2026-04-30T05:22:17",
    "name": "[1/2] target/riscv: Remove spike as default machine",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "289b5baea97a9ba702f7fdabd9fb165cd1de0637",
    "submitter": {
        "id": 64571,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/64571/?format=api",
        "name": "Alistair Francis",
        "email": "alistair23@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260430052218.771358-2-alistair.francis@wdc.com/mbox/",
    "series": [
        {
            "id": 502200,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502200/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502200",
            "date": "2026-04-30T05:22:16",
            "name": "target/riscv: Update deprecated machines",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502200/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230827/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230827/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.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 unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=Rby5tlk+;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5jHr3hgvz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 15:23:18 +1000 (AEST)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wIJrH-0006o5-Q8; Thu, 30 Apr 2026 01:22:43 -0400",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <alistair23@gmail.com>)\n id 1wIJrG-0006nN-AC\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 01:22:42 -0400",
            "from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <alistair23@gmail.com>)\n id 1wIJrE-0006Tl-Kx\n for qemu-devel@nongnu.org; Thu, 30 Apr 2026 01:22:41 -0400",
            "by mail-pl1-x630.google.com with SMTP id\n d9443c01a7336-2ab077e3f32so1945455ad.3\n for <qemu-devel@nongnu.org>; Wed, 29 Apr 2026 22:22:40 -0700 (PDT)",
            "from toolbx.alistair23.me ([2403:581e:fdf9:0:6209:4521:6813:45b7])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b988985b52sm38934965ad.75.2026.04.29.22.22.35\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 29 Apr 2026 22:22:38 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777526559; x=1778131359; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=Qsx1QIAc/fip1C8P9UoUWQBPMqkBxNS68mnLjoZnVdI=;\n b=Rby5tlk+87ECStdeXJHMfyN00S8YMyuYNRUA6Cr2YI8VJrN8Cyj9Bk59h9miZFSUiA\n NEoC3UKo4aqMQrzMiS3864l/yZzgQ6M/OWRU1A+XEfpnI9DIgvgQeBt2mKdpVaBDYtGQ\n t/4BrQoAkSWBPTBywkMF0yxKHHC/YFkyFYcEoX4/WXLBcOaEbSV5SU3z9J3hkXyKDRbU\n bbdQ8ZqSXcGrZEirNVzDaEctWEnt7oypI+Z+foaGyIp5HmVNBdU4+FP34UIzm5Kx5ebQ\n tPfWOtwwH7fa2mPW46Y9NKSKixM1qdBkQDs2cBh1q/0ny3KJlmEyJLazzHNm45S6m4Uk\n 3vpA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777526559; x=1778131359;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=Qsx1QIAc/fip1C8P9UoUWQBPMqkBxNS68mnLjoZnVdI=;\n b=l74uFS78N35npgU5s4rkdMAawzINC84kfaJFHqkLy7RnrKrbFrurVZcM/Eb7XcsiEP\n DCONZHITDqHbZRLFyHMTfvNp9+enesFaCm0jgoShrG5xw8hJKeOO/8e6FgqTGPLsdgk7\n 8z4XunI278AOpzFIMwa2gFPKhP0RTC8zgwE/01plzOzhIWgM9lqfYWh/Z72DtsC7AclZ\n QF85EtC/MwbFAxWoRFX5DMOj8rtOZJFAcyj6RUxRIfNAtd2ZwZUzxKvko3tbzASbtoki\n D/6F7DDxsFoe0XkRqTMUlEVYCDSVuNY7M7V/+mBWJI04G4aQFJTKDvV0UxLm2sz7A5K1\n LRFg==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ/aa+Z4m2RD5icylRzwJkWCRign7vVqsLVi+fC/9mE+1eQ1v0jaXDfh4w3etkpHwUKmCIJMjSlWQhgV@nongnu.org",
        "X-Gm-Message-State": "AOJu0YxjNher5D8zdlO8HWjXbKinu9c6wf43J05FQSb5RKZq2Vrubv+I\n +FEPlIakVUxYoVHvbcvv06KTvziXQkeUGKlK6dSyhx4lTsg2qdhADT8w5ozXqQ==",
        "X-Gm-Gg": "AeBDiev9N8NNpUrTIATkpYYYHH5IuRfhVVMw1o0YDDf7yzh0P+xP2PgvXNESNdAeVBT\n 8ljygn62oKzVDiWQPBHniINrDMT/ucwm2zCtLJpE3dQSW5lPDvIer5zTavgXXozJkrrngkg0ZfH\n 3R9RdrWAtkyx9ry9jQSVKXOoVMEjkSrRenPSf7q4bl3HxTTZsfkaAwSJrRJzOkGx6vZjrJT9Ufe\n trrkuB8WMUwaE7rWMpq73jJt2G2emLd5GGGNpTISh9NJhbyoiBcu4vKPLH8QRmpozIv9kydM4tZ\n +l3V4mofcLQ2tZvOYRLZ3RQi7A/+3rgrsMAY/SYWV6exyvfEEabcDDBswZ5uilx7EAMWujpqa0k\n L48xC5634nb0Dx8e//VgHiouBcCuorYcjab/jD72fuDoRRaadj/Jz7m+4Ppo+Kfk47a82DGJkDQ\n xIWJje3OD+puc/TKTvFKqCVTgefjdmeUHh4COAVXfVr9nazH0yK/nk",
        "X-Received": "by 2002:a17:902:9893:b0:2b0:7d3d:756a with SMTP id\n d9443c01a7336-2b9a2505ed1mr11932485ad.35.1777526559217;\n Wed, 29 Apr 2026 22:22:39 -0700 (PDT)",
        "From": "alistair23@gmail.com",
        "X-Google-Original-From": "alistair.francis@wdc.com",
        "To": "palmer@dabbelt.com, liwei1518@gmail.com, daniel.barboza@oss.qualcomm.com,\n zhiwei_liu@linux.alibaba.com, chao.liu.zevorn@gmail.com,\n qemu-riscv@nongnu.org, qemu-devel@nongnu.org",
        "Cc": "alistair23@gmail.com,\n\tAlistair Francis <alistair.francis@wdc.com>",
        "Subject": "[PATCH 1/2] target/riscv: Remove spike as default machine",
        "Date": "Thu, 30 Apr 2026 15:22:17 +1000",
        "Message-ID": "<20260430052218.771358-2-alistair.francis@wdc.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260430052218.771358-1-alistair.francis@wdc.com>",
        "References": "<20260430052218.771358-1-alistair.francis@wdc.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=2607:f8b0:4864:20::630;\n envelope-from=alistair23@gmail.com; helo=mail-pl1-x630.google.com",
        "X-Spam_score_int": "-17",
        "X-Spam_score": "-1.8",
        "X-Spam_bar": "-",
        "X-Spam_report": "(-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no",
        "X-Spam_action": "no action",
        "X-BeenThere": "qemu-devel@nongnu.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "qemu development <qemu-devel.nongnu.org>",
        "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>",
        "List-Post": "<mailto:qemu-devel@nongnu.org>",
        "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>",
        "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>",
        "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org",
        "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"
    },
    "content": "From: Alistair Francis <alistair.francis@wdc.com>\n\nIn QEMU 10.0 we deprecated the default spike machine, let's finally\nremove spike as the default and require users to specify the machine.\n\nSigned-off-by: Alistair Francis <alistair.francis@wdc.com>\n---\n docs/about/deprecated.rst | 19 -------------------\n hw/riscv/spike.c          |  1 -\n 2 files changed, 20 deletions(-)",
    "diff": "diff --git a/docs/about/deprecated.rst b/docs/about/deprecated.rst\nindex 10de10dc23..f3622dcf93 100644\n--- a/docs/about/deprecated.rst\n+++ b/docs/about/deprecated.rst\n@@ -282,25 +282,6 @@ firmware is available to boot it. It can be replaced by the\n ``ast2700fc``, another multi-SoC machine based on the newer AST2700\n SoCs which are excepted to receive better support in the future.\n \n-\n-RISC-V default machine option (since 10.0)\n-''''''''''''''''''''''''''''''''''''''''''\n-\n-RISC-V defines ``spike`` as the default machine if no machine option is\n-given in the command line.  This happens because ``spike`` is the first\n-RISC-V machine implemented in QEMU and setting it as default was\n-convenient at that time.  Now we have 7 riscv64 and 6 riscv32 machines\n-and having ``spike`` as a default is no longer justified.  This default\n-will also promote situations where users think they're running ``virt``\n-(the most used RISC-V machine type in 10.0) when in fact they're\n-running ``spike``.\n-\n-Removing the default machine option forces users to always set the machine\n-they want to use and avoids confusion.  Existing users of the ``spike``\n-machine must ensure that they're setting the ``spike`` machine in the\n-command line (``-M spike``).\n-\n-\n Backend options\n ---------------\n \ndiff --git a/hw/riscv/spike.c b/hw/riscv/spike.c\nindex 35c696f891..87fe0f242f 100644\n--- a/hw/riscv/spike.c\n+++ b/hw/riscv/spike.c\n@@ -341,7 +341,6 @@ static void spike_machine_class_init(ObjectClass *oc, const void *data)\n     mc->desc = \"RISC-V Spike board\";\n     mc->init = spike_board_init;\n     mc->max_cpus = SPIKE_CPUS_MAX;\n-    mc->is_default = true;\n     mc->default_cpu_type = TYPE_RISCV_CPU_BASE;\n     mc->possible_cpu_arch_ids = riscv_numa_possible_cpu_arch_ids;\n     mc->cpu_index_to_instance_props = riscv_numa_cpu_index_to_props;\n",
    "prefixes": [
        "1/2"
    ]
}