Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.0/patches/2197731/?format=api
{ "id": 2197731, "url": "http://patchwork.ozlabs.org/api/1.0/patches/2197731/?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": "<20260218114233.266178-35-anisinha@redhat.com>", "date": "2026-02-18T11:42:27", "name": "[v5,34/34] migration: return EEXIST when trying to add the same migration blocker", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "801d15cf0a74b4c123582db93e1d67d6a4009f75", "submitter": { "id": 86030, "url": "http://patchwork.ozlabs.org/api/1.0/people/86030/?format=api", "name": "Ani Sinha", "email": "anisinha@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260218114233.266178-35-anisinha@redhat.com/mbox/", "series": [ { "id": 492541, "url": "http://patchwork.ozlabs.org/api/1.0/series/492541/?format=api", "date": "2026-02-18T11:41:56", "name": "Introduce support for confidential guest reset (x86)", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/492541/mbox/" } ], "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2197731/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 (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=SlBIpqtA;\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=bNJY+G/J;\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 4fGF8x4xT7z1xvq\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 22:46:41 +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 1vsfzG-0005jo-EE; Wed, 18 Feb 2026 06:44:58 -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 1vsfz3-0004WV-6j\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 06:44:45 -0500", "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 <anisinha@redhat.com>)\n id 1vsfz0-0000GS-3v\n for qemu-devel@nongnu.org; Wed, 18 Feb 2026 06:44:43 -0500", "from mail-pl1-f197.google.com (mail-pl1-f197.google.com\n [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-684-Xu-bK31bNL6PIHJFJmUCpQ-1; Wed, 18 Feb 2026 06:44:32 -0500", "by mail-pl1-f197.google.com with SMTP id\n d9443c01a7336-2a76f2d7744so57571955ad.3\n for <qemu-devel@nongnu.org>; Wed, 18 Feb 2026 03:44:32 -0800 (PST)", "from rhel9-box.lan ([117.99.83.54])\n by smtp.googlemail.com with ESMTPSA id\n d9443c01a7336-2ad1aaeab38sm127803425ad.82.2026.02.18.03.44.28\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 18 Feb 2026 03:44:31 -0800 (PST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1771415073;\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=igOnGXXgq3eDAiSjsSp69SbZ2aYSYQJQPNazxijENj8=;\n b=SlBIpqtA8j6i1RxQv5BYjbtI8z2MCcFzFoMFjfzE4AOREfT7Dx0FpM/oP5tinV7geZFHH2\n +F6+nxoa2qKl4c3AwZ9camy86peSV4MIyV6B8HWhEy1bVjDpveaYM6/Qf91SfmkYzX9neb\n 1QiCdYiISxhbG7J8won0wLQ8pDUjD6k=", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1771415072; x=1772019872; 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=igOnGXXgq3eDAiSjsSp69SbZ2aYSYQJQPNazxijENj8=;\n b=bNJY+G/JXmM7pl4oP/jG/dTPwiO0krF8wHwiN4+pog4Une0f7XqrgPFr2WDHF7/Zr9\n aWFIhnJp7pIRCHYkEFr639j7exGZRMTl6AbYIPQTtCP+yA3Otv1zF9dZro13paSlBCi2\n cCH5QkNMlfPO6K5c66uYxM7/D3doSu5JdSwId8eEVQq9XHRrKiNOzWnNhzSqUM+WeBMK\n +/pTpTpmghWfEE/UGBJWVAZCqhFzBaB/ynT367NL05U26dB4b5YR5YTUoZ/LDP/TMh0B\n o3p50zKvesuLgwAs1MivdD/QYH/XHNipg06KW7jJ285T7v6UCJdrrNaSxxpfOAPJhqYY\n yLqg==" ], "X-MC-Unique": "Xu-bK31bNL6PIHJFJmUCpQ-1", "X-Mimecast-MFC-AGG-ID": "Xu-bK31bNL6PIHJFJmUCpQ_1771415072", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771415072; x=1772019872;\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=igOnGXXgq3eDAiSjsSp69SbZ2aYSYQJQPNazxijENj8=;\n b=ISTYYKl9kQnSEQnJ3MyluKu4sqPs17ggLpB3/tuNXbZwqtUssgcyTyxUaLyXwqKnWP\n NHwy/wxzDO3AFRC3WZoTlH2ISmFsg8H4chfbMdEIpyAbTxYd+XBe+6ykObOHLUQHwM+j\n edYUy2i6QiDsfpMiRnNZbA04Ze4YL3eoZhRz3FyPtBWiCwapZxlP8nUZo0Pbw6AYN2Cg\n 4+Gz6kFOOjheBepuhEJyBVjgGH34MaHFkkIf3UV5Afv+/OwOrffLJ/YokkjKmNmElTS7\n 3and8fqz3k8Wj6a4vKPCdPWSkVn4KWN+QkxiyZXZ9WVTVbrT+ktzl/LrfF9kObCLgQ/a\n 5nxQ==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCX8q4JXDi/BMNowa2rtLFlChOA8IeJLkY3SvfmBIK9FeJwnog+U/plhHKT6wBol9ucZaC1pt+76pUEN@nongnu.org", "X-Gm-Message-State": "AOJu0YzfMrabAQYNixyfvyUBzmJ61umBu7Gm2KgtxykC4HHLlgFhQOGZ\n D48Uset7DSjedQvZ4ksURzTDM5o8ge+yYFgoVmNx9jHIJVhnVjxMaHddA+Rer5EJxO4pqN9Zuyp\n 7vRwIxmyaA1IJtU0izp61BvKcCvR/p+kgdLV/Dpe+ORF06a6a9xCiF6Hf", "X-Gm-Gg": "AZuq6aJVGjrI04YRwsYrpSiM0J73IhwokVTIqOUVvIMsfNi+X5TjhcEoPL1nc1RHFcm\n cgUEDvrATfdvWGxAczseR4GT2sev9OwwapxZLKc6ss83jXDagJt0Cq6F7xx8IS5fLjHeRJy1G8m\n Kl+M66vr2PhwknWy5xFQk1Ohh3V04qBcMdlbUq20CRkfYGldEFmuzHIUqcWoicWbPKqULniiekc\n q5ehkLmfPWrIzl7HAIv8j1D4gadDiJc96n7ppIy4uf/rANux9HsZ9A49aYAplfnT79mJ0av59rJ\n j4k34oXtr1zDL+n8MfHcdWhaWP8OdttYmnarhK11r4TXogrNPSDaen3sUOUFB371hHPf42Ssv0J\n YFvZxTDEtPW2EBv0yMgys3fsUcW/uqadDjnqXmnZl89KIA3YAX2Dj", "X-Received": [ "by 2002:a17:903:38c3:b0:2a0:bb05:df55 with SMTP id\n d9443c01a7336-2ad50ec19f4mr17451675ad.21.1771415071624;\n Wed, 18 Feb 2026 03:44:31 -0800 (PST)", "by 2002:a17:903:38c3:b0:2a0:bb05:df55 with SMTP id\n d9443c01a7336-2ad50ec19f4mr17451485ad.21.1771415071261;\n Wed, 18 Feb 2026 03:44:31 -0800 (PST)" ], "From": "Ani Sinha <anisinha@redhat.com>", "To": "Peter Xu <peterx@redhat.com>,\n\tFabiano Rosas <farosas@suse.de>", "Cc": "Ani Sinha <anisinha@redhat.com>, kraxel@redhat.com,\n Prasad Pandit <pjp@fedoraproject.org>, qemu-devel@nongnu.org", "Subject": "[PATCH v5 34/34] migration: return EEXIST when trying to add the same\n migration blocker", "Date": "Wed, 18 Feb 2026 17:12:27 +0530", "Message-ID": "<20260218114233.266178-35-anisinha@redhat.com>", "X-Mailer": "git-send-email 2.42.0", "In-Reply-To": "<20260218114233.266178-1-anisinha@redhat.com>", "References": "<20260218114233.266178-1-anisinha@redhat.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=170.10.133.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.043,\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": "Currently the code that adds a migration blocker does not check if the same\nblocker already exists. Return an EEXIST error code if there is an attempt to\nadd the same migration blocker again. This way the same migration blocker will\nnot get added twice.\n\nSuggested-by: Prasad Pandit <pjp@fedoraproject.org>\nSigned-off-by: Ani Sinha <anisinha@redhat.com>\n---\n migration/migration.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/migration/migration.c b/migration/migration.c\nindex b103a82fc0..495664e01a 100644\n--- a/migration/migration.c\n+++ b/migration/migration.c\n@@ -1696,6 +1696,10 @@ static int add_blockers(Error **reasonp, unsigned modes, Error **errp)\n {\n for (MigMode mode = 0; mode < MIG_MODE__MAX; mode++) {\n if (modes & BIT(mode)) {\n+ if (g_slist_index(migration_blockers[mode],\n+ *reasonp) >= 0) {\n+ return -EEXIST;\n+ }\n migration_blockers[mode] = g_slist_prepend(migration_blockers[mode],\n *reasonp);\n }\n", "prefixes": [ "v5", "34/34" ] }