get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2080612,
    "url": "http://patchwork.ozlabs.org/api/patches/2080612/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20250503075858.277375-6-pbonzini@redhat.com/",
    "project": {
        "id": 14,
        "url": "http://patchwork.ozlabs.org/api/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": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20250503075858.277375-6-pbonzini@redhat.com>",
    "list_archive_url": null,
    "date": "2025-05-03T07:58:50",
    "name": "[PULL,05/13] rust/timer: Define NANOSECONDS_PER_SECOND binding as u64",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "7a8634f15c6014b6cbd67ded2d872685c1082300",
    "submitter": {
        "id": 2701,
        "url": "http://patchwork.ozlabs.org/api/people/2701/?format=api",
        "name": "Paolo Bonzini",
        "email": "pbonzini@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20250503075858.277375-6-pbonzini@redhat.com/mbox/",
    "series": [
        {
            "id": 455199,
            "url": "http://patchwork.ozlabs.org/api/series/455199/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=455199",
            "date": "2025-05-03T07:58:51",
            "name": "[PULL,01/13] rust/vmstate: Add support for field_exists checks",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/455199/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2080612/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2080612/checks/",
    "tags": {},
    "related": [],
    "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 (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=RDnbk/j7;\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 4ZqKx06Y03z1yMf\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  3 May 2025 18:01:08 +1000 (AEST)",
            "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 1uB7mN-00085N-20; Sat, 03 May 2025 03:59:23 -0400",
            "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 <pbonzini@redhat.com>)\n id 1uB7mL-00085A-Ed\n for qemu-devel@nongnu.org; Sat, 03 May 2025 03:59:21 -0400",
            "from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <pbonzini@redhat.com>)\n id 1uB7mJ-0006eK-Jl\n for qemu-devel@nongnu.org; Sat, 03 May 2025 03:59:21 -0400",
            "from mail-wr1-f70.google.com (mail-wr1-f70.google.com\n [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-668-QQQj4kfePIOpWbqwCzmZKg-1; Sat, 03 May 2025 03:59:17 -0400",
            "by mail-wr1-f70.google.com with SMTP id\n ffacd0b85a97d-3912539665cso1513752f8f.1\n for <qemu-devel@nongnu.org>; Sat, 03 May 2025 00:59:17 -0700 (PDT)",
            "from [192.168.10.48] ([151.95.54.106])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-441b8a3156asm67172705e9.38.2025.05.03.00.59.12\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 03 May 2025 00:59:12 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1746259158;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=+32hGB1MElkGs9fcz72cbTbA4s9aHx0U65cRvzJOLEc=;\n b=RDnbk/j7Vvp7PxR9dDlm7Ru9a6roZcGgkYVQI9cM+mPqmhrhB9ia6CwkiOI+IyC43hhNc1\n 1avyT+Bi/xmp/VwnzdPUPg/p1kX4nx6rlZ+5kPsnP7T26GRedFcUUuT/4BHrTvpO3NhUCc\n ZNxljsHN2Z08XqwLko8IB6rkHhUFxvU=",
        "X-MC-Unique": "QQQj4kfePIOpWbqwCzmZKg-1",
        "X-Mimecast-MFC-AGG-ID": "QQQj4kfePIOpWbqwCzmZKg_1746259156",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1746259155; x=1746863955;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=+32hGB1MElkGs9fcz72cbTbA4s9aHx0U65cRvzJOLEc=;\n b=f1yGnQ3W/r4aA+oi8LKqJi0h4VdaTlwEK5m9t9nYb2/ZQzwCVyaCs4u45KIRzZq4Fe\n 2ceNFnKn7IPo2o9QDVh06h8obI1ejqQ3kfiKjhBjw1VtbqyXukdF8sGGQxlkrR4CMbl3\n LN5prdu158nvqWaRMNcLBwq7bamYmkSfj342j2W8w4lwiCm5Bq/YzZUUY+a5oHywqI8d\n ScOc7CdaN5IQC4+SeTwdWUnctPrcWAmAW2WF//teg9oWVrNhSVxMxCm6odnw9DDIOZbZ\n 2vKRnfCmlX0DubTE8cAg/luKs8Qm4zLZG/JCDvLW0w+n1L03Sk0ZlgmdjQg35FJlq5OV\n WjCA==",
        "X-Gm-Message-State": "AOJu0Yy0LkDVVQFMcjprAswFMRwFMxLF11ngQ0IFsV44HE3WG1T0rZ2r\n X19Pm4Osz2kpc5Aqg+LFHWbT7yhSNlFXZRRV6IrUk3PylvDbwXVszf7CJ0un5PdY6DMnnv0V0pA\n zUMX7cYw8LEq4g61VZ5Vgl+M/uotJ4EB6AmprfMMaHnaXonRMLo3bHxz/VhMpGdAe1By1AB57aL\n Q1VZ7lacKrVVSHMAPgLt5WxyNprGniQIw75OG4",
        "X-Gm-Gg": "ASbGnct2Z6oaYxPv6ws5wjmjWBRXQFRosJXjDBoNnXawfc+n9uKIo+Wp3RAYrEUMX32\n vpBt6qDZmehz+bpGmN6WZ+ud3//eyoZs1Dvop80EcHWjDRKftTJLoIKWj1vBRsl/fNuYf8yAyiG\n mKVoBeUlqa4vW91QJzdA2/GoE5gC9ctYQpvo7lyBAMlQ4d0mkCHqPGg5EQkx4xjd7sIxWxA3rtu\n 6yJwQplk+QkSp4yefpDRIljzUR/SN3lT9vNW1aR1BGUDEShnFPYgMHL7FcLAlHUe7LX1ZX8gJJ7\n uId21fwXacA+9Jc=",
        "X-Received": [
            "by 2002:a05:600c:4f54:b0:439:4b23:9e8e with SMTP id\n 5b1f17b1804b1-441bb84828bmr43674215e9.3.1746259154829;\n Sat, 03 May 2025 00:59:14 -0700 (PDT)",
            "by 2002:a05:600c:4f54:b0:439:4b23:9e8e with SMTP id\n 5b1f17b1804b1-441bb84828bmr43674115e9.3.1746259154464;\n Sat, 03 May 2025 00:59:14 -0700 (PDT)"
        ],
        "X-Google-Smtp-Source": "\n AGHT+IEH+xpnmBW4dPJ6A8g+dZeNSp8cTMUKULqKYhfqHe9uKXNilwh/CWvjKcf8WQT8wQ5kYwC/eA==",
        "From": "Paolo Bonzini <pbonzini@redhat.com>",
        "To": "qemu-devel@nongnu.org",
        "Cc": "Zhao Liu <zhao1.liu@intel.com>",
        "Subject": "[PULL 05/13] rust/timer: Define NANOSECONDS_PER_SECOND binding as u64",
        "Date": "Sat,  3 May 2025 09:58:50 +0200",
        "Message-ID": "<20250503075858.277375-6-pbonzini@redhat.com>",
        "X-Mailer": "git-send-email 2.49.0",
        "In-Reply-To": "<20250503075858.277375-1-pbonzini@redhat.com>",
        "References": "<20250503075858.277375-1-pbonzini@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=170.10.133.124;\n envelope-from=pbonzini@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com",
        "X-Spam_score_int": "-26",
        "X-Spam_score": "-2.7",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.644,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_NONE=0.001, SPF_PASS=-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-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: Zhao Liu <zhao1.liu@intel.com>\n\nNANOSECONDS_PER_SECOND is often used in operations with get_ns(), which\ncurrently returns a u64.\n\nTherefore, define a new NANOSECONDS_PER_SECOND binding is with u64 type\nto eliminate unnecessary type conversions (from u32 to u64).\n\nSigned-off-by: Zhao Liu <zhao1.liu@intel.com>\nLink: https://lore.kernel.org/r/20250414144943.1112885-6-zhao1.liu@intel.com\nSigned-off-by: Paolo Bonzini <pbonzini@redhat.com>\n---\n rust/qemu-api/src/timer.rs | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/rust/qemu-api/src/timer.rs b/rust/qemu-api/src/timer.rs\nindex f0b04ef95d7..e769f8bc910 100644\n--- a/rust/qemu-api/src/timer.rs\n+++ b/rust/qemu-api/src/timer.rs\n@@ -121,3 +121,5 @@ pub fn get_ns(&self) -> u64 {\n pub const CLOCK_VIRTUAL: ClockType = ClockType {\n     id: QEMUClockType::QEMU_CLOCK_VIRTUAL,\n };\n+\n+pub const NANOSECONDS_PER_SECOND: u64 = 1000000000;\n",
    "prefixes": [
        "PULL",
        "05/13"
    ]
}