Cover Letter Detail
Show a cover letter.
GET /api/covers/2219986/?format=api
{ "id": 2219986, "url": "http://patchwork.ozlabs.org/api/covers/2219986/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260405152612.93027-1-viking4@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": "<20260405152612.93027-1-viking4@gmail.com>", "list_archive_url": null, "date": "2026-04-05T15:26:06", "name": "[0/2] migration: include timing and RAM stats on destination when query-migrate", "submitter": { "id": 92831, "url": "http://patchwork.ozlabs.org/api/people/92831/?format=api", "name": "Trieu Huynh", "email": "vikingtc4@gmail.com" }, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/cover/20260405152612.93027-1-viking4@gmail.com/mbox/", "series": [ { "id": 498790, "url": "http://patchwork.ozlabs.org/api/series/498790/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=498790", "date": "2026-04-05T15:26:06", "name": "migration: include timing and RAM stats on destination when query-migrate", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498790/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/covers/2219986/comments/", "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=LIDe4ew+;\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 4fpbt235VFz1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 01:27:04 +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 1w9PMu-0006jf-MM; Sun, 05 Apr 2026 11:26:32 -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 <vikingtc4@gmail.com>)\n id 1w9PMs-0006j2-Vf\n for qemu-devel@nongnu.org; Sun, 05 Apr 2026 11:26:31 -0400", "from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <vikingtc4@gmail.com>)\n id 1w9PMr-0008RY-7s\n for qemu-devel@nongnu.org; Sun, 05 Apr 2026 11:26:30 -0400", "by mail-pf1-x42e.google.com with SMTP id\n d2e1a72fcca58-823c56765fdso1556098b3a.1\n for <qemu-devel@nongnu.org>; Sun, 05 Apr 2026 08:26:28 -0700 (PDT)", "from localhost.localdomain ([123.19.199.205])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82cf9c72967sm11187938b3a.49.2026.04.05.08.26.25\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 05 Apr 2026 08:26:26 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775402787; x=1776007587; 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=fEjJ0vYqH3FMuiZ8Ejies3mW8gSGC9QDtmSx0t1VKas=;\n b=LIDe4ew+kacVV6uWxSrCWQCdOwsWIdf62t0PVeLE/7+jrV6h9T8l6ODLJgOMtYH7aM\n mrvGdWoGpBkMDU06Yz99QjWBcBqPqpo3yc6k4n0KJWQ83Y+O3CIbCdwIBnzznRV9Rizq\n jSs8RONmxyoScKlmGNOd71fz+hrBzYDA/mFEE6NMQhixRGK95YzDv+hT7Nn9FOb5WV48\n VxVzx+55tUfIws0W1OmeRfXBesNhpIYB/brN34gWz6alQbZyDObs3nChJ5bCDRYsD3Nj\n wytvp8wDxqZ2ZTVGDctSnMg5uNgLkxv2Qe0Rq0ldMan9WJwNJNlhnmimHQB+097zQFos\n fszg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775402787; x=1776007587;\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=fEjJ0vYqH3FMuiZ8Ejies3mW8gSGC9QDtmSx0t1VKas=;\n b=G90SSs6bT5FTTcTLm0wNb++kjGOfIY3hZD05mPBn9KptQq6SJXAhSTCfymyfva0rgX\n Zhtmt0PQQjbQVy27iSyxnhO42NhwZtq81/fvaFFcJgI/1+7FWzCDZufd8hAsbL16aom/\n F8X5YyemeVVW6K5kvZ5SY+f2vgX+xpMDaUd8ra13VRTmqn58Z4ozOE+K6MAXJxEZwrGz\n I+iDs+UPIuN1wVIneaZxuDSGO//ixA0/w2a2eo6TtXEBOKSiTIV/KiNP8dRTtRJPmCmb\n 2oTPklWF7mx2VS6uMRgZs1OL7ljyH6H4WWSwEwd7iO5FQ6Zs5zk9cjC8UdR9+aDS18rJ\n /73A==", "X-Gm-Message-State": "AOJu0YzQ5iKg2QOYZh1oGZpOelrBXEdQPpqus8vmU+cSbb997Mn3JKVj\n 2jNN27iRIDipHlZjTdU3FFmp+Pss1JIIB4WPx1z4GtKS6YtBfEvlFZhj49XCS+M9Bnw=", "X-Gm-Gg": "AeBDietquNycqf5pLgjv8EmtAu1wdu/UqPAWLqGt1uPLddpj2vOhzcHjSSBhz4m5NVo\n 292KLaV/mQyUXlsA/plkeVnFCU1d7MMUYvftn7X9096+WmSeASPeXRYOh7JaWaiBaRJ9jPj1lOj\n P659rqi53TZMZlYvBAceO8vCdMSuJz29GVruU/GbmzqJvviDlKI81B6b0ahWKQEW6eN5JnJ8QSy\n /c5a+Gwx4SqHPrSgckabvLevve8VuB7BkwIWh03OBgcrpYyYZo3X5Q6krqoQ9eoGY5xDPrwNpvt\n g+GTmKoM9512mefF5v2SG8afj2tmLyZjOOwoVBQ49M/5axmE+hVuvN05nCGVc9qJvimoHOvNHE+\n GwUdrtv6OXLn0CmYb4N5N6GKuy+30jtyuFONgMl1f3fMtOfQh9ZS2FT3e9cGdpjk1SvsGEX8Usi\n EowfdyGZN30DfEpHLHY+foT3TcSfv97qnDIYv9wKs8FLwHKLU=", "X-Received": "by 2002:a05:6a00:a0b:b0:829:8942:2c93 with SMTP id\n d2e1a72fcca58-82d0da45d60mr9016305b3a.9.1775402787245;\n Sun, 05 Apr 2026 08:26:27 -0700 (PDT)", "From": "Trieu Huynh <vikingtc4@gmail.com>", "X-Google-Original-From": "Trieu Huynh <viking4@gmail.com>", "To": "qemu-devel@nongnu.org", "Cc": "Trieu Huynh <vikingtc4@gmail.com>", "Subject": "[PATCH 0/2] migration: include timing and RAM stats on destination\n when query-migrate", "Date": "Sun, 5 Apr 2026 22:26:06 +0700", "Message-ID": "<20260405152612.93027-1-viking4@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2607:f8b0:4864:20::42e;\n envelope-from=vikingtc4@gmail.com; helo=mail-pf1-x42e.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": "From: Trieu Huynh <vikingtc4@gmail.com>\n\nWhen query-migrate is called on the *destination* QEMU after a precopy\nmigration completes it returns only {\"status\": \"completed\"} — no timing,\nno RAM statistics. The source correctly returns total-time, downtime,\nsetup-time, and full ram stats.\n\nThis series fixes the gap in two commits:\n\n* commit 1: Track start/end timestamps and per-page-type counters in\n MigrationIncomingState, recorded in the receive path.\n\n* commit 2: Make source-only MigrationStats fields optional in the QAPI\n schema so the destination can populate info->ram with only the fields\n that are meaningful on the receive side. Fields computed from tracked\n counters (transferred, normal, duplicate, mbps, pages-per-second) are\n shown; source-only fields (dirty-sync-count, precopy-bytes, etc.) are\n absent.\n\nThe QAPI change (commit 2) is ABI-compatible: optional fields that are\nnot set are simply absent from the output. Source-side callers are\nunaffected because populate_ram_info() sets all optional fields via\nhas_* setters, so the source output is identical to before.\n\nOn dst, {\"execute\":\"query-migrate\"}\n* As-is:\n{\n \"return\": {\n \"status\": \"completed\"\n}\n* To-be:\n{\n \"return\": {\n \"status\": \"completed\",\n \"total-time\": 94,\n \"ram\": {\n \"total\": 554508288,\n \"pages-per-second\": 1440234,\n \"page-size\": 4096,\n \"remaining\": 0,\n \"mbps\": 97.955404255319152,\n \"transferred\": 1150976,\n \"duplicate\": 135101,\n \"normal-bytes\": 1150976,\n \"normal\": 281\n }\n }\n}\n\nResolves: https://gitlab.com/qemu-project/qemu/-/issues/3151\n\nTrieu Huynh (2):\n migration: track timing and received pages in MigrationIncomingState\n migration: expose RAM stats and timing on destination via\n query-migrate\n\n migration/migration.c | 37 +++++++++++++++++++++++++++++++++++++\n migration/migration.h | 17 +++++++++++++++++\n migration/ram.c | 3 +++\n qapi/migration.json | 14 +++++++-------\n 4 files changed, 64 insertions(+), 7 deletions(-)" }