get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2195853,
    "url": "http://patchwork.ozlabs.org/api/patches/2195853/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260212062522.99565-24-anisinha@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": "<20260212062522.99565-24-anisinha@redhat.com>",
    "list_archive_url": null,
    "date": "2026-02-12T06:25:07",
    "name": "[v4,23/31] kvm/i8254: add support for confidential guest reset",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "65581697de3d68705d0a8e06bbdee9c4b7c083f4",
    "submitter": {
        "id": 86030,
        "url": "http://patchwork.ozlabs.org/api/people/86030/?format=api",
        "name": "Ani Sinha",
        "email": "anisinha@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260212062522.99565-24-anisinha@redhat.com/mbox/",
    "series": [
        {
            "id": 491935,
            "url": "http://patchwork.ozlabs.org/api/series/491935/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=491935",
            "date": "2026-02-12T06:24:45",
            "name": "Introduce support for confidential guest reset (x86)",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/491935/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2195853/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2195853/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=PYRoZWII;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=LZGp9E3T;\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 4fBQPb3TFNz1xvb\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 12 Feb 2026 17:29:23 +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 1vqQAn-0000mf-Cf; Thu, 12 Feb 2026 01:27:33 -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 <anisinha@redhat.com>)\n id 1vqQAO-0000MY-2v\n for qemu-devel@nongnu.org; Thu, 12 Feb 2026 01:27:10 -0500",
            "from us-smtp-delivery-124.mimecast.com ([170.10.129.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <anisinha@redhat.com>)\n id 1vqQAL-0005LN-Ny\n for qemu-devel@nongnu.org; Thu, 12 Feb 2026 01:27:06 -0500",
            "from mail-pj1-f70.google.com (mail-pj1-f70.google.com\n [209.85.216.70]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-213-ILAUJvMwMbyPwrNkhIcXXw-1; Thu, 12 Feb 2026 01:27:03 -0500",
            "by mail-pj1-f70.google.com with SMTP id\n 98e67ed59e1d1-354c44bf176so5392447a91.0\n for <qemu-devel@nongnu.org>; Wed, 11 Feb 2026 22:27:02 -0800 (PST)",
            "from rhel9-box.lan ([122.164.27.113])\n by smtp.googlemail.com with ESMTPSA id\n 98e67ed59e1d1-3567e7d95d8sm4894122a91.2.2026.02.11.22.26.57\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 11 Feb 2026 22:27:01 -0800 (PST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1770877625;\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=i567b0vkVMDwtdwVAwszAB2dBBQ7q9jKGjjwGdoXxsw=;\n b=PYRoZWIILrgd/uj7rccA88BxDOxVxCkvKtJszwoloU39sfDyhRgIxFPEXs9pTYARLMpkwX\n hCPkWGBNmuFsTcki73OVgUip+uJE7tGV3k75kmscJgfhVsqux1qnO0ZxmGFn1e+hBlbm+Y\n BNviXzx0YNc983skh7FQ7Vbw3kd1S3Y=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1770877622; x=1771482422; 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=i567b0vkVMDwtdwVAwszAB2dBBQ7q9jKGjjwGdoXxsw=;\n b=LZGp9E3ThHH9xKNWDWJywDfAloJ81pvaQ6l2hgMSqFI+J6RWB09LqRscj+JS/lxkZb\n JNIE4tCV5jircSFHunO5JSultrTQXfGDyfJGZFWTaoAdpvJYnhwKmEGtnb8nZ9p06Wc1\n cUbdotA+Z6YYmRxU6KGHrAnjrxU+4JtUfLMhM20tqW0AQLumxrrqHDD5+KHtYtHV98nB\n dYuzToIoUeJbjjqSW0qT8ocrAWzKJqEjOqmQH+9hvaRLzekt3cUScVub0jGVpaalMabS\n m9p/68y4Jgm6Gzzif0vQC5p/d9mE7gtwVyNP4hCMjd83NlNlIeTwPoon5zI4eGkvYZms\n bPkg=="
        ],
        "X-MC-Unique": "ILAUJvMwMbyPwrNkhIcXXw-1",
        "X-Mimecast-MFC-AGG-ID": "ILAUJvMwMbyPwrNkhIcXXw_1770877622",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770877622; x=1771482422;\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=i567b0vkVMDwtdwVAwszAB2dBBQ7q9jKGjjwGdoXxsw=;\n b=rfThaAuTe6+iTQOLwvUw+N4EXHO89m6n22BSFvlJNu3/9IMw38Eb8bK/FDaIKKq4CO\n NK01fqSotKNvbp++3QICVWdWhSLtjHLtbVjpzdAMJ7dLTaSCs+pdj9rJeo5BDx1KKU+h\n hZTlw1894MbvUtQJB+Y6hZf7UIwB71PKhRL4oSsL974E/Y2YSv4xwBXzStq7XyV7HQ4P\n xWosD8H82i5CKQKgcgrEsXhV5PIBo48jV8SeeLiDWPWznBxepOCW8IBZsqXkYRMFRlYu\n Klnr9A43Ocex1xssaUDZ34ip6J+a5yoa7Pb0TNrxeYZVQMc4zvNQu46mtuML58LraPqj\n ypeQ==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWT3yx2R2QQv4ttyWYqxYNIBqJgeV6HSPEtZqxTJy7AOHbJ4xtg9FqzeYnGq0+KABrFmQYxS2RLW7Xk@nongnu.org",
        "X-Gm-Message-State": "AOJu0YyYVoXjBhUf7LQclfmguwIp10YcSebj5nlbaa/yQnzzLNVRiuss\n dizoBWbO22K9m13rVHwUk0JZqR3LQZZ2uldjkJJa8EqrigUX1RuLNLptsk46HBxPVv1wmGs+6/q\n eylFa43b6kkWXc7LkM0x1dH5C6qWM5+1euiwbpTEGgAPe5Jg1G90EZ+Yd",
        "X-Gm-Gg": "AZuq6aK2ejmLwZluQAsd0X7Yzz1bBzdlGso8VjrW/ommO9IBCy0iQwQHICCbG2WscSM\n IynmehfrR2BS0JKcMPa8KPY8yMVvvTimpsykDPfIkuNEMe+WIqhlOfnQprX5y/M8MnlEnzBjCeJ\n TAitDXG8d7WT0EKmvjjZYd6AmLUwwoM7FU/x8tHB1J3wUPKI85HZTn197ey3l/EkQx1i63+kuxm\n +jSJQ0TpqpSgebFztt9GQr5LmeeQ0hyUtL+Hq1G3KbiA0Gv9TnYi+rVZNwUH216qRQ1AcYYtD9Y\n hiEypJRSTyVn30JjVbJ9+tM6Fb9cnC/Wbcq3h+aggKmtj2MmHHQg4CT3LXIiiJxQHfSjolEIttk\n 6ZQD8v7W4nc/FHNP3ZX9zIp9YDgleisHC80CzBvoX7rbO/eWCux0vF7A=",
        "X-Received": [
            "by 2002:a17:90b:3141:b0:354:ad98:7d1c with SMTP id\n 98e67ed59e1d1-3568f31c280mr1956670a91.11.1770877621949;\n Wed, 11 Feb 2026 22:27:01 -0800 (PST)",
            "by 2002:a17:90b:3141:b0:354:ad98:7d1c with SMTP id\n 98e67ed59e1d1-3568f31c280mr1956650a91.11.1770877621506;\n Wed, 11 Feb 2026 22:27:01 -0800 (PST)"
        ],
        "From": "Ani Sinha <anisinha@redhat.com>",
        "To": "\"Michael S. Tsirkin\" <mst@redhat.com>,\n Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,\n Paolo Bonzini <pbonzini@redhat.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Eduardo Habkost <eduardo@habkost.net>",
        "Cc": "kraxel@redhat.com, Ani Sinha <anisinha@redhat.com>, qemu-devel@nongnu.org",
        "Subject": "[PATCH v4 23/31] kvm/i8254: add support for confidential guest reset",
        "Date": "Thu, 12 Feb 2026 11:55:07 +0530",
        "Message-ID": "<20260212062522.99565-24-anisinha@redhat.com>",
        "X-Mailer": "git-send-email 2.42.0",
        "In-Reply-To": "<20260212062522.99565-1-anisinha@redhat.com>",
        "References": "<20260212062522.99565-1-anisinha@redhat.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Received-SPF": "pass client-ip=170.10.129.124;\n envelope-from=anisinha@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com",
        "X-Spam_score_int": "-20",
        "X-Spam_score": "-2.1",
        "X-Spam_bar": "--",
        "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\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_PASS=-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 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": "A confidential guest reset involves closing the old virtual machine KVM file\ndescriptor and opening a new one. Since its a new KVM fd, PIT needs to be\nre-initialized again. This is done with the help of a notifier which is invoked\nupon KVM vm file descriptor change during the confidential guest reset process.\n\nSigned-off-by: Ani Sinha <anisinha@redhat.com>\n---\n hw/i386/kvm/i8254.c      | 23 +++++++++++++++++++++++\n hw/i386/kvm/trace-events |  1 +\n 2 files changed, 24 insertions(+)",
    "diff": "diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c\nindex 255047458a..70e8fd83cd 100644\n--- a/hw/i386/kvm/i8254.c\n+++ b/hw/i386/kvm/i8254.c\n@@ -35,6 +35,7 @@\n #include \"hw/core/qdev-properties-system.h\"\n #include \"system/kvm.h\"\n #include \"target/i386/kvm/kvm_i386.h\"\n+#include \"trace.h\"\n #include \"qom/object.h\"\n \n #define KVM_PIT_REINJECT_BIT 0\n@@ -52,6 +53,8 @@ struct KVMPITState {\n     LostTickPolicy lost_tick_policy;\n     bool vm_stopped;\n     int64_t kernel_clock_offset;\n+\n+    NotifierWithReturn kvmpit_vmfd_change_notifier;\n };\n \n struct KVMPITClass {\n@@ -203,6 +206,23 @@ static void kvm_pit_put(PITCommonState *pit)\n     }\n }\n \n+static int kvmpit_post_vmfd_change(NotifierWithReturn *notifier,\n+                                   void *data, Error** errp)\n+{\n+    KVMPITState *s = container_of(notifier, KVMPITState,\n+                                  kvmpit_vmfd_change_notifier);\n+\n+    /* we are not interested in pre vmfd change notification */\n+    if (((VmfdChangeNotifier *)data)->pre) {\n+        return 0;\n+    }\n+\n+    do_pit_initialize(s, errp);\n+\n+    trace_kvmpit_post_vmfd_change();\n+    return 0;\n+}\n+\n static void kvm_pit_set_gate(PITCommonState *s, PITChannelState *sc, int val)\n {\n     kvm_pit_get(s);\n@@ -292,6 +312,9 @@ static void kvm_pit_realizefn(DeviceState *dev, Error **errp)\n \n     qemu_add_vm_change_state_handler(kvm_pit_vm_state_change, s);\n \n+    s->kvmpit_vmfd_change_notifier.notify = kvmpit_post_vmfd_change;\n+    kvm_vmfd_add_change_notifier(&s->kvmpit_vmfd_change_notifier);\n+\n     kpc->parent_realize(dev, errp);\n }\n \ndiff --git a/hw/i386/kvm/trace-events b/hw/i386/kvm/trace-events\nindex 67bf7f174e..33680ff82b 100644\n--- a/hw/i386/kvm/trace-events\n+++ b/hw/i386/kvm/trace-events\n@@ -20,3 +20,4 @@ xenstore_reset_watches(void) \"\"\n xenstore_watch_event(const char *path, const char *token) \"path %s token %s\"\n xen_primary_console_create(void) \"\"\n xen_primary_console_reset(int port) \"port %u\"\n+kvmpit_post_vmfd_change(void) \"\"\n",
    "prefixes": [
        "v4",
        "23/31"
    ]
}