Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216671/?format=api
{ "id": 2216671, "url": "http://patchwork.ozlabs.org/api/patches/2216671/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260327030404.1840571-1-hayatake396@gmail.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": "<20260327030404.1840571-1-hayatake396@gmail.com>", "list_archive_url": null, "date": "2026-03-27T03:04:01", "name": "tests/qtest/migration: Add mapped-ram/postcopy validation test", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "57b141dc83ac7b781189e8ef5fb178abb9aa880a", "submitter": { "id": 87325, "url": "http://patchwork.ozlabs.org/api/people/87325/?format=api", "name": "Takeru Hayasaka", "email": "hayatake396@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260327030404.1840571-1-hayatake396@gmail.com/mbox/", "series": [ { "id": 497684, "url": "http://patchwork.ozlabs.org/api/series/497684/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=497684", "date": "2026-03-27T03:04:01", "name": "tests/qtest/migration: Add mapped-ram/postcopy validation test", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497684/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216671/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216671/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 (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=DGWZrgzn;\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 4fhm313zkJz1yFp\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 14:14:37 +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 1w5xe3-0003wR-Ih; Thu, 26 Mar 2026 23:13:59 -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 <hayatake396@gmail.com>)\n id 1w5xe2-0003wD-0w\n for qemu-devel@nongnu.org; Thu, 26 Mar 2026 23:13:58 -0400", "from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <hayatake396@gmail.com>)\n id 1w5xe0-0003ld-9d\n for qemu-devel@nongnu.org; Thu, 26 Mar 2026 23:13:57 -0400", "by mail-pf1-x434.google.com with SMTP id\n d2e1a72fcca58-82a62714fe6so681886b3a.0\n for <qemu-devel@nongnu.org>; Thu, 26 Mar 2026 20:13:55 -0700 (PDT)", "from lab-kiba-ocxma-dut-01.. (191.68.231.218.rev.ocx2915.net.\n [218.231.68.191]) by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82c7d20ebe5sm3976455b3a.13.2026.03.26.20.13.51\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 20:13:53 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1774581234; x=1775186034; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=z7ruBpxFpRt6qQVDLU2/yZBKXb7019PTRSUhHNGf8yc=;\n b=DGWZrgznn31wTJLUM4Rq9L4rsnM3TPwRwLkb7XSwa6KVXekvnlrjAftt5CI6PNWEOK\n 4G/PiPFKdQVoWQ7OZUmCiGYu7q6sdY2GmazTxHaFQSwOU5IivJ7OZLGvrwLlYlBNr8zx\n AYnZp7omY20Tqf04ChlVYVFkbmsLuQhuUw2qhzsURpcrhczwQIzZY3PEhLuOfP7HZ4/i\n tatr3D0Dt0+fhNc0unpTldbb1UjuvY7ebcO8QQSbZf8UcVmkR9qbiVQWdowK5uNU4+2B\n sdQHNyQQ7h4cCBV/o+fIGxs/oqeHyT5+l/sw+FmE58JFeZxRF+3q52L5MRc0W2bnCkjN\n UySQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774581234; x=1775186034;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=z7ruBpxFpRt6qQVDLU2/yZBKXb7019PTRSUhHNGf8yc=;\n b=SdASdqB7/szYG/ONRB4ptpRlRUGZ5u2JaXK0n84mWPcFoLfKlVzwLv9h8d2aqfIxMo\n iBdr2sDgHdn9G+ptQ6tSQ/Mp7xDnG73j5yf4VZBbCDKANrEcVBaL9ZX5pfpiG4ErEyyn\n ywHQrP3853r8g9lLsj+6t/v32YhOZW5RSYUOrD2EhKmEd07mrxJyNvbup9Kt1YZgjHEz\n DtUaLlqgskoe2Cezl0Q6/P70qGPn6kmJZViuD795sZs9vVFTvpEDlLJyi6WGBFI5/Uph\n T8pbqdI6jqqiKJCs9Ta8Cd82ME3cZA307hnWcmTaSyetJP9YKmjXCM6/+R2tFbZAnqz0\n PL7A==", "X-Gm-Message-State": "AOJu0YwIAE2YswAlsNAF2pvX4xazircLg2uVeq8x49DwD2n557wHVZy2\n p3nI8ihDDkPfNnG8h3WMNeu1fUOH0cFeONSIRWXA2nslueKv4y0WZNFlN0R2+pG5", "X-Gm-Gg": "ATEYQzygd9+g5Ha4oLg0tosAO+3kDNtcEd9Mvpu0+ljkPHE710TxRmo1tfgrCSwhVu4\n zY6NqVi6JNOth/Y0IcilFgwkjT0YvlyDXG/9baZOElMo5mc3uSxtDUSC4w77Ty+8pqLKz0ATUzX\n glQ6/dlRd28iwucM2oh/YiI9hUxoTKmuJwU8lRCde13B6DcSGcdy8MWQ0PywEXIBc+EgXhrBUZq\n q2RNoUIMEK5WCkRUuL0rfWgSQXSeZyt7BrgurSS3VWyTgfAITkE7N/lNIhiJvo9MNpvGGpnQkwf\n VymyshQzONEkOrNR2bBN+vOJqq+Eqy2sUeOVe5LG8v1+WEDl8/jOwxUX9pYfA/Kqbd1dYx0eULF\n 1vUPZ3Ill09XgVKx5dhfCAbBMRM5ba7+HkWm3U8psfHYJLIH14PtEmC4hQrVTfOceAAXw+YS2Yo\n Bk2qq3tktk/OFrIBjnc2r7bEnURBv1vvoSnFj1Uanb366XGPAhAwkACZnUWeWlB18CN2D1Bu3Yx\n rPQmZoc/YjeAtvopnuY4sAtAY6k0Hdiai2WxTR1BCCg", "X-Received": "by 2002:a05:6a00:1acf:b0:827:2dff:7116 with SMTP id\n d2e1a72fcca58-82c968c06b9mr675538b3a.13.1774581233505;\n Thu, 26 Mar 2026 20:13:53 -0700 (PDT)", "From": "Takeru Hayasaka <hayatake396@gmail.com>", "To": "qemu-devel@nongnu.org", "Cc": "Takeru Hayasaka <hayatake396@gmail.com>, Peter Xu <peterx@redhat.com>,\n Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>,\n Paolo Bonzini <pbonzini@redhat.com>", "Subject": "[PATCH] tests/qtest/migration: Add mapped-ram/postcopy validation\n test", "Date": "Fri, 27 Mar 2026 03:04:01 +0000", "Message-ID": "<20260327030404.1840571-1-hayatake396@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2607:f8b0:4864:20::434;\n envelope-from=hayatake396@gmail.com; helo=mail-pf1-x434.google.com", "X-Spam_score_int": "-17", "X-Spam_score": "-1.8", "X-Spam_bar": "-", "X-Spam_report": "(-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n 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": "The migration capability checks reject enabling postcopy-ram together\nwith mapped-ram, but there is no qtest covering this incompatibility.\n\nAdd a validation test that verifies QMP rejects the combination in\nboth capability ordering cases and returns the expected error.\n\nThis keeps the existing capability boundary covered without changing\nmigration behavior.\n\nSigned-off-by: Takeru Hayasaka <hayatake396@gmail.com>\n---\nBuilt with:\n ./configure --target-list=x86_64-softmmu --disable-werror\n ninja -C build tests/qtest/migration-test qemu-system-x86_64\n\nTested with:\n QTEST_QEMU_BINARY=./build/qemu-system-x86_64 \\\n ./build/tests/qtest/migration-test --full \\\n -p /x86_64/migration/validate_caps/mapped_ram_postcopy\n---\n tests/qtest/migration/misc-tests.c | 45 ++++++++++++++++++++++++++++++\n 1 file changed, 45 insertions(+)", "diff": "diff --git a/tests/qtest/migration/misc-tests.c b/tests/qtest/migration/misc-tests.c\nindex 196f1ca84287..ae247250713b 100644\n--- a/tests/qtest/migration/misc-tests.c\n+++ b/tests/qtest/migration/misc-tests.c\n@@ -215,6 +215,49 @@ static void do_test_validate_uri_channel(MigrateCommon *args)\n migrate_end(from, to, false);\n }\n \n+static void do_test_validate_capability_pair(MigrateCommon *args,\n+ const char *first_capability,\n+ const char *second_capability,\n+ const char *expected_error)\n+{\n+ QTestState *from, *to;\n+ QDict *rsp;\n+ const char *error_desc;\n+\n+ args->start.hide_stderr = true;\n+\n+ if (migrate_start(&from, &to, \"defer\", &args->start)) {\n+ return;\n+ }\n+\n+ migrate_set_capability(from, first_capability, true);\n+\n+ rsp = qtest_qmp_assert_failure_ref(\n+ from,\n+ \"{ 'execute': 'migrate-set-capabilities',\"\n+ \" 'arguments': { 'capabilities': [ { \"\n+ \" 'capability': %s, 'state': true } ] } }\",\n+ second_capability);\n+\n+ error_desc = qdict_get_str(rsp, \"desc\");\n+ g_assert_cmpstr(error_desc, ==, expected_error);\n+ qobject_unref(rsp);\n+\n+ migrate_end(from, to, false);\n+}\n+\n+static void test_validate_caps_mapped_ram_postcopy(char *name,\n+ MigrateCommon *args)\n+{\n+ const char *error =\n+ \"Mapped-ram migration is incompatible with postcopy\";\n+\n+ do_test_validate_capability_pair(args, \"mapped-ram\", \"postcopy-ram\",\n+ error);\n+ do_test_validate_capability_pair(args, \"postcopy-ram\", \"mapped-ram\",\n+ error);\n+}\n+\n static void test_validate_uri_channels_both_set(char *name, MigrateCommon *args)\n {\n args->listen_uri = \"defer\",\n@@ -276,4 +319,6 @@ void migration_test_add_misc(MigrationTestEnv *env)\n test_validate_uri_channels_both_set);\n migration_test_add(\"/migration/validate_uri/channels/none_set\",\n test_validate_uri_channels_none_set);\n+ migration_test_add(\"/migration/validate_caps/mapped_ram_postcopy\",\n+ test_validate_caps_mapped_ram_postcopy);\n }\n", "prefixes": [] }