Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2226182/?format=api
{ "id": 2226182, "url": "http://patchwork.ozlabs.org/api/patches/2226182/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422103018.123608-8-armenon@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": "<20260422103018.123608-8-armenon@redhat.com>", "list_archive_url": null, "date": "2026-04-22T10:30:15", "name": "[v5,07/10] qtests: Enable starting swtpm with a given profile", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "9a0d632e1883b7ba1eb001b1c050c0b437a1e15e", "submitter": { "id": 91136, "url": "http://patchwork.ozlabs.org/api/people/91136/?format=api", "name": "Arun Menon", "email": "armenon@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260422103018.123608-8-armenon@redhat.com/mbox/", "series": [ { "id": 500964, "url": "http://patchwork.ozlabs.org/api/series/500964/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=500964", "date": "2026-04-22T10:30:14", "name": "hw/tpm: CRB chunking capability to handle PQC", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/500964/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226182/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226182/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=A/JJ5zXK;\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=no9rwZAx;\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 4g0wX11sVjz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 20:32:17 +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 1wFUra-0006oQ-Bg; Wed, 22 Apr 2026 06:31:22 -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 <armenon@redhat.com>)\n id 1wFUrW-0006n9-Am\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 06:31:18 -0400", "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 <armenon@redhat.com>)\n id 1wFUrU-00070U-8C\n for qemu-devel@nongnu.org; Wed, 22 Apr 2026 06:31:17 -0400", "from mail-pj1-f69.google.com (mail-pj1-f69.google.com\n [209.85.216.69]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-495-stoXvoDwPyCAwZmxvAbJ6A-1; Wed, 22 Apr 2026 06:31:11 -0400", "by mail-pj1-f69.google.com with SMTP id\n 98e67ed59e1d1-3568090851aso12982377a91.1\n for <qemu-devel@nongnu.org>; Wed, 22 Apr 2026 03:31:11 -0700 (PDT)", "from fedora.armenon-thinkpadp16vgen1.bengluru.csb ([49.36.110.202])\n by smtp.gmail.com with ESMTPSA id\n 41be03b00d2f7-c7976f920e1sm12589666a12.2.2026.04.22.03.31.04\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Apr 2026 03:31:09 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776853874;\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=ClfWz/hTXQx5IWEI8DJH2vTF1tKQTfAQCoPQ/9w7nI8=;\n b=A/JJ5zXK7TqUOzZyEB+qaCxxnJaWD1pTV1TRvg8B/EF74l0ILpfPYATjECBJHC0bK2tbDS\n s274iYon0DWbpfd0KK915BUz1ftjAIGdwH2Yya8uMA3DDxTlRNXif1+T5GZqu1omKKKKK2\n XbK7xTnBaiHPDI1KUce2KNuMTDLw1jM=", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1776853870; x=1777458670; 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=ClfWz/hTXQx5IWEI8DJH2vTF1tKQTfAQCoPQ/9w7nI8=;\n b=no9rwZAxuy968ya+uuC74OrhJNui3EBsOdH6x9KOXKp1yO2svBjPXL5UWi01Ml6w/n\n qy3bGugo6cJA2Gf8peH2+Y7nMHaZeFTvClrkU3e4wQRkfeWfIIJ+w5kaThOnDWXfTUhT\n CNYNOaS/xr4D+qMyhVv4sE++fLY6ohM7YSKDm8H+YvYVpw/jaiuae2G7qWRcvS4U1cJS\n LLV1mJ5qY78yNQPM44N39CjfC3vKSb0EGXaJkVXPsiiyWeXNXq38MXAaIrQUpm37nJGO\n UURtiSUCh7V95LK7pGp4GWmq9ztZ3sr7YFcrxv0nx+7Hdr5goKl3ShRjwjG8AiSpfLBm\n kusQ==" ], "X-MC-Unique": "stoXvoDwPyCAwZmxvAbJ6A-1", "X-Mimecast-MFC-AGG-ID": "stoXvoDwPyCAwZmxvAbJ6A_1776853870", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776853870; x=1777458670;\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=ClfWz/hTXQx5IWEI8DJH2vTF1tKQTfAQCoPQ/9w7nI8=;\n b=Ghc/SicLUw1WrlzbQX+SkEatM71goWSVtq7Jc5F+4Oadpw6vyd9v58g+j1XYH81VyL\n 8ITfhfkmzIBrEFRPkuD5qeLjfPf0uUlhdE4TTE109k/QyKXa0FpWLEKJNAIicSSIHQyC\n LhSg2qbq3/Y12w+WTSjKeLXCUC9hJxJ13VJl0NBRscqNS83rSAWX37aoG3jjTY7y4RWe\n 5ec+DyP351GufozCWVwPXw6SwgSJINbJdiWimfVJ8aRVv2rOK0YrRVG4yranzQoALvLl\n MIQLSNd8CS0VYKAEEz8y1K6xLwSDPBLH5Y3vet11EsJOBOdKTJbQPcVi76aPJ9WF1pu6\n gd9g==", "X-Gm-Message-State": "AOJu0YyeaPKO+53tbd4cZEpbs8wUUfjQ/ueRse2cn+mS0JgseWJzlx8d\n NhkjGKA+OwbjXzK3LxXI/I8e+CtHnfKf/UgyWy5DKpeqOyc5stkTdamzD56JFt5FwJ2IOHDtAXc\n 5K2D1skQlfll4Qj0mCCXoFaW40hqMQLm2MZMv847UxryvWwdhSrzgzATiMtA8Z14LNDEnEBxL4P\n 2KTeUBpHpOpPJZPfW9ZLKUN2I8IRYjQ9wuBQAb0f8=", "X-Gm-Gg": "AeBDieuD9r11pxlkDDpwoqjEIJGQVmj2fhsk/5PoeiXgWc0psAyWYNoQ1Mjr4OP6Prw\n YOQyxdmN87jnOsg2wrv+pMLEQglmyVbOJ9wqSv2pxla6gkxqVgTPZTCHPf7L65EoXSdNxIerShh\n fSE8zGKDj0YoHtQg46CJwT82d+wXpSNJQk0VP5SOKGyGHi+xSJzK8aMEbXnMX+w6RO1LEIXw8MA\n s3AtBwzYaCY7wGXnZt+3NtlwYGts/vmf2CD9uw7xQ342aNKf0O2YCciGL6seB1J4KnofRFW1AnQ\n QZ2g9RdN2B6AP39fBw5n59St0ixjfq9bPGtuWajSeaSp7NubtQ2vobCGblOgzFhzHzYzp/j+NEk\n 3qEiNUXsclaU04HEAK3wRD+WksX5ogIU3rXig7Ww1aaHJE3GqmhWXA1cSrI6tPolO6cqaAjfmgA\n ==", "X-Received": [ "by 2002:a05:6a20:72a4:b0:3a3:327:c5c9 with SMTP id\n adf61e73a8af0-3a30327ca1amr3092197637.26.1776853869890;\n Wed, 22 Apr 2026 03:31:09 -0700 (PDT)", "by 2002:a05:6a20:72a4:b0:3a3:327:c5c9 with SMTP id\n adf61e73a8af0-3a30327ca1amr3092126637.26.1776853869327;\n Wed, 22 Apr 2026 03:31:09 -0700 (PDT)" ], "From": "Arun Menon <armenon@redhat.com>", "To": "qemu-devel@nongnu.org", "Cc": "Zhao Liu <zhao1.liu@intel.com>,\n Stefan Berger <stefanb@linux.vnet.ibm.com>,\n Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,\n Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>,\n Fabiano Rosas <farosas@suse.de>, Igor Mammedov <imammedo@redhat.com>,\n marcandre.lureau@redhat.com,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n \"Michael S. Tsirkin\" <mst@redhat.com>, Yanan Wang <wangyanan55@huawei.com>,\n Ani Sinha <anisinha@redhat.com>, Arun Menon <armenon@redhat.com>,\n Stefan Berger <stefanb@linux.ibm.com>", "Subject": "[PATCH v5 07/10] qtests: Enable starting swtpm with a given profile", "Date": "Wed, 22 Apr 2026 16:00:15 +0530", "Message-ID": "<20260422103018.123608-8-armenon@redhat.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260422103018.123608-1-armenon@redhat.com>", "References": "<20260422103018.123608-1-armenon@redhat.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=170.10.129.124; envelope-from=armenon@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_H4=0.001, RCVD_IN_MSPIKE_WL=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": "From: Stefan Berger <stefanb@linux.ibm.com>\n\nEnable swtpm to start with a given profile by passing it to swtpm on the\ncommand line using\n\n --profile name=<profile name>\n\nRemove any existing TPM 2 state file since applying a new profile to\nexisting state would be refused by swtpm.\n\nSigned-off-by: Stefan Berger <stefanb@linux.ibm.com>\nSigned-off-by: Arun Menon <armenon@redhat.com>\n---\n tests/qtest/tpm-tests.c | 6 +++---\n tests/qtest/tpm-util.c | 9 ++++++++-\n tests/qtest/tpm-util.h | 3 ++-\n 3 files changed, 13 insertions(+), 5 deletions(-)", "diff": "diff --git a/tests/qtest/tpm-tests.c b/tests/qtest/tpm-tests.c\nindex 197714f8d9..f71d882990 100644\n--- a/tests/qtest/tpm-tests.c\n+++ b/tests/qtest/tpm-tests.c\n@@ -43,7 +43,7 @@ void tpm_test_swtpm_test(const char *src_tpm_path, tx_func *tx,\n return;\n }\n \n- succ = tpm_util_swtpm_start(src_tpm_path, &swtpm_pid, &addr, &error);\n+ succ = tpm_util_swtpm_start(src_tpm_path, &swtpm_pid, &addr, NULL, &error);\n g_assert_true(succ);\n \n args = g_strdup_printf(\n@@ -91,11 +91,11 @@ void tpm_test_swtpm_migration_test(const char *src_tpm_path,\n }\n \n succ = tpm_util_swtpm_start(src_tpm_path, &src_tpm_pid,\n- &src_tpm_addr, &error);\n+ &src_tpm_addr, NULL, &error);\n g_assert_true(succ);\n \n succ = tpm_util_swtpm_start(dst_tpm_path, &dst_tpm_pid,\n- &dst_tpm_addr, &error);\n+ &dst_tpm_addr, NULL, &error);\n g_assert_true(succ);\n \n tpm_util_migration_start_qemu(&src_qemu, &dst_qemu,\ndiff --git a/tests/qtest/tpm-util.c b/tests/qtest/tpm-util.c\nindex 744592763f..cbba5b1c1f 100644\n--- a/tests/qtest/tpm-util.c\n+++ b/tests/qtest/tpm-util.c\n@@ -212,7 +212,8 @@ bool tpm_util_swtpm_has_tpm2(void)\n }\n \n gboolean tpm_util_swtpm_start(const char *path, GPid *pid,\n- SocketAddress **addr, GError **error)\n+ SocketAddress **addr, const char *profilename,\n+ GError **error)\n {\n char *swtpm_argv_tpmstate = g_strdup_printf(\"dir=%s\", path);\n char *swtpm_argv_ctrl = g_strdup_printf(\"type=unixio,path=%s/sock\",\n@@ -222,11 +223,17 @@ gboolean tpm_util_swtpm_start(const char *path, GPid *pid,\n g_strdup(\"--tpmstate\"), swtpm_argv_tpmstate,\n g_strdup(\"--ctrl\"), swtpm_argv_ctrl,\n g_strdup(\"--tpm2\"),\n+ profilename ? g_strdup(\"--profile\") : NULL,\n+ profilename ? g_strdup_printf(\"name=%s\", profilename) : NULL,\n NULL\n };\n+ g_autofree char *swtpm_state_file;\n gboolean succ;\n unsigned i;\n \n+ swtpm_state_file = g_strdup_printf(\"%s/tpm2-00.permall\", path);\n+ g_unlink(swtpm_state_file);\n+\n *addr = g_new0(SocketAddress, 1);\n (*addr)->type = SOCKET_ADDRESS_TYPE_UNIX;\n (*addr)->u.q_unix.path = g_build_filename(path, \"sock\", NULL);\ndiff --git a/tests/qtest/tpm-util.h b/tests/qtest/tpm-util.h\nindex 681544e7d8..ca2d7d173f 100644\n--- a/tests/qtest/tpm-util.h\n+++ b/tests/qtest/tpm-util.h\n@@ -41,7 +41,8 @@ void tpm_util_pcrread(QTestState *s, tx_func *tx,\n bool tpm_util_swtpm_has_tpm2(void);\n \n gboolean tpm_util_swtpm_start(const char *path, GPid *pid,\n- SocketAddress **addr, GError **error);\n+ SocketAddress **addr, const char *profilename,\n+ GError **error);\n void tpm_util_swtpm_kill(GPid pid);\n \n void tpm_util_migrate(QTestState *who, const char *uri);\n", "prefixes": [ "v5", "07/10" ] }