get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2197502,
    "url": "http://patchwork.ozlabs.org/api/1.0/patches/2197502/?format=api",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/1.0/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": "<20260218015151.4052-7-graf@amazon.com>",
    "date": "2026-02-18T01:51:46",
    "name": "[06/10] target/arm/cpu64: Allow -host for nitro",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4f84a4520ca0e4b6b9525b4728d97b4ccfce1ef3",
    "submitter": {
        "id": 76572,
        "url": "http://patchwork.ozlabs.org/api/1.0/people/76572/?format=api",
        "name": "Alexander Graf",
        "email": "graf@amazon.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260218015151.4052-7-graf@amazon.com/mbox/",
    "series": [
        {
            "id": 492503,
            "url": "http://patchwork.ozlabs.org/api/1.0/series/492503/?format=api",
            "date": "2026-02-18T01:51:40",
            "name": "Native Nitro Enclaves support",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492503/mbox/"
        }
    ],
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2197502/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=amazon.com header.i=@amazon.com header.a=rsa-sha256\n header.s=amazoncorp2 header.b=UXRY5C0G;\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=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from lists.gnu.org (lists.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 4fG00R4tGZz1xwC\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 12:53:27 +1100 (AEDT)",
            "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vsWkS-0007wN-Q0; Tue, 17 Feb 2026 20:53:04 -0500",
            "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <prvs=502105d20=graf@amazon.de>)\n id 1vsWkR-0007m1-BT; Tue, 17 Feb 2026 20:53:03 -0500",
            "from pdx-out-011.esa.us-west-2.outbound.mail-perimeter.amazon.com\n ([52.35.192.45])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <prvs=502105d20=graf@amazon.de>)\n id 1vsWkP-0005MY-Lx; Tue, 17 Feb 2026 20:53:03 -0500",
            "from ip-10-5-6-203.us-west-2.compute.internal (HELO\n smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.6.203])\n by internal-pdx-out-011.esa.us-west-2.outbound.mail-perimeter.amazon.com with\n ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2026 01:52:54 +0000",
            "from EX19MTAUWB001.ant.amazon.com [205.251.233.51:16402]\n by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.55.107:2525]\n with esmtp (Farcaster)\n id 37763521-d57a-4bf4-8565-5edb81b6cdf3;\n Wed, 18 Feb 2026 01:52:54 +0000 (UTC)",
            "from EX19D020UWC004.ant.amazon.com (10.13.138.149) by\n EX19MTAUWB001.ant.amazon.com (10.250.64.248) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35;\n Wed, 18 Feb 2026 01:52:54 +0000",
            "from ip-10-253-83-51.amazon.com (172.19.99.218) by\n EX19D020UWC004.ant.amazon.com (10.13.138.149) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35;\n Wed, 18 Feb 2026 01:52:51 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2;\n t=1771379581; x=1802915581;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=uVNVDznm7NxQ+bwTqP9jZD0VXeg2067NIquqLqqPp8k=;\n b=UXRY5C0G990DBgrw/dvKvQujZca4G5QBODoCfh1ikdtEG9cTAbVUlRZ9\n SZnv1lYQn3U/RuD1Lw7nmAiZUW3iTt8xd5WLMB2m8vhX/32zil0GfdpPS\n iU67TWv6lRkG1leUY8k+U5vr1PIfxn4ZG6oHe84Tu6TvECqnoKhbp9pAa\n GZkJsSFqlUSRFlFrhqdzepIi/qC1T0D2tEqKJUb0VGuP2NgzzxMQmRdaD\n Zqb1dbRi1Sh0zOMg+Er9bF3CvUvjy77tALU5Y+uFaXObSvZ3Y8zUH8mAi\n 3fP0k0ed0Raw0u29596c5q587ee6HWLdaA1Ztc9LRr17rJ01zIbzrHHeN g==;",
        "X-CSE-ConnectionGUID": "ec2gWyq0ToGqRTSbtgy7Gw==",
        "X-CSE-MsgGUID": "CyXLfvGWR6OfJac8E+6vEQ==",
        "X-IronPort-AV": "E=Sophos;i=\"6.21,297,1763424000\"; d=\"scan'208\";a=\"13037355\"",
        "X-Farcaster-Flow-ID": "37763521-d57a-4bf4-8565-5edb81b6cdf3",
        "From": "Alexander Graf <graf@amazon.com>",
        "To": "<qemu-devel@nongnu.org>",
        "CC": "<qemu-arm@nongnu.org>, Peter Maydell <peter.maydell@linaro.org>, \"Thomas\n Huth\" <thuth@redhat.com>, <alex.bennee@linaro.org>, <philmd@linaro.org>,\n <berrange@redhat.com>, <marcandre.lureau@redhat.com>, Cornelia Huck\n <cohuck@redhat.com>, <mst@redhat.com>, Dorjoy Chowdhury\n <dorjoychy111@gmail.com>, Pierrick Bouvier <pierrick.bouvier@linaro.org>,\n Paolo Bonzini <pbonzini@redhat.com>, Tyler Fanelli <tfanelli@redhat.com>,\n <mknaust@amazon.com>, <nh-open-source@amazon.com>",
        "Subject": "[PATCH 06/10] target/arm/cpu64: Allow -host for nitro",
        "Date": "Wed, 18 Feb 2026 01:51:46 +0000",
        "Message-ID": "<20260218015151.4052-7-graf@amazon.com>",
        "X-Mailer": "git-send-email 2.47.1",
        "In-Reply-To": "<20260218015151.4052-1-graf@amazon.com>",
        "References": "<20260218015151.4052-1-graf@amazon.com>",
        "MIME-Version": "1.0",
        "X-Originating-IP": "[172.19.99.218]",
        "X-ClientProxiedBy": "EX19D032UWA001.ant.amazon.com (10.13.139.62) To\n EX19D020UWC004.ant.amazon.com (10.13.138.149)",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Received-SPF": "pass client-ip=52.35.192.45;\n envelope-from=prvs=502105d20=graf@amazon.de;\n helo=pdx-out-011.esa.us-west-2.outbound.mail-perimeter.amazon.com",
        "X-Spam_score_int": "-19",
        "X-Spam_score": "-2.0",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.043,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\n HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01,\n UNPARSEABLE_RELAY=0.001 autolearn=ham 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": "The nitro accel does not actually make use of CPU emulation or details:\nIt always uses the host CPU regardless of configuration. Machines for\nthe nitro accel select the host CPU type as default to have a clear\nstatement of the above and to have a unified cpu type across all\nsupported architectures.\n\nThe arm64 logic on Linux currently only allows -cpu host for KVM based\nvirtual machines. Add a special case for nitro so that when the nitro\naccel is active, it allows use of the host cpu type.\n\nSigned-off-by: Alexander Graf <graf@amazon.com>\n---\n target/arm/cpu64.c | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c\nindex 5d7c6b7fbb..c01051f038 100644\n--- a/target/arm/cpu64.c\n+++ b/target/arm/cpu64.c\n@@ -765,6 +765,14 @@ static void aarch64_a53_initfn(Object *obj)\n static void aarch64_host_initfn(Object *obj)\n {\n     ARMCPU *cpu = ARM_CPU(obj);\n+\n+#if defined(CONFIG_NITRO)\n+    if (nitro_enabled()) {\n+        /* The nitro accel uses -cpu host, but does not actually consume it */\n+        return;\n+    }\n+#endif\n+\n #if defined(CONFIG_KVM)\n     kvm_arm_set_cpu_features_from_host(cpu);\n     if (arm_feature(&cpu->env, ARM_FEATURE_AARCH64)) {\n",
    "prefixes": [
        "06/10"
    ]
}