Message ID | 20250507231442.879619-1-pierrick.bouvier@linaro.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4683:0:b0:38f:210b:807b with SMTP id u3csp625162wrq; Wed, 7 May 2025 16:17:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXbiPSgb3qf0EEQ8S5HhaWEHo03Gj1DfF18g80TOxZSSnTtk1qF1EH/6qM7xPDY+4Iai7N4GQ==@linaro.org X-Google-Smtp-Source: AGHT+IHh2SmLOIs4j2kmEsBSuh7cv6UjwwIPxA8JZY5d3lGkRUnuiUmyYb4+P2Z16yAH4tLLFQFx X-Received: by 2002:ad4:5f0a:0:b0:6f0:e2d4:5936 with SMTP id 6a1803df08f44-6f54c3e79d2mr16666676d6.22.1746659837322; Wed, 07 May 2025 16:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746659837; cv=none; d=google.com; s=arc-20240605; b=Egs11hFqn14Nz7Cmy2JT4sx3usEZpLtbh4xXWflKyKUX+6dRUvIxdmDRpFbkyMbpd9 xBBRLKJ6Dfw/bzcBgKHrOG/cFBP4swQm+u0Y+2jZmLrYs/JzSkkegF9ykGZlH+uU/z3T 36U0kxxlMnUOz9aPgfmCuev9vG3LHmqJAKVhzxv4kJpWzIEv7uR75p7viKXQnC2fyCq1 nand2w/BYNdu9D+7GyQEoa/YNZOJpXbfjUn3uUHwhuiwz7dY1upXFTvow+Nbgy13HhwH ++q8qzbBbQ/sfCW+wIa+rNSVbI0pDM2UYWIiIaAgdeGGT3PmvF3ukhgzVlmLpnHcN94y HEaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=+Do/vb7CoxT02dLkA4A4DxgTWo5tvmeFtdtT48tXERE=; fh=C3ex6Ep0JlVVkO8k9Lw7rcozgcHcGXw85BZvhIOfcrk=; b=fTMGqfx98ZDT0MVBPvwHBXKcsJl7zF4YrMls7uN4FggQE9TF4wuDkyfGwSYrhsKTb8 RfWeLmRrNlR4z2pEYhkZQw5vik7nDXSW00VNiVs1idTdQlR2AJwcYv0yKRq+OJQnFePZ N5IER65+VN4nTDRlm3nxtmA7HLV1WifsjI3SNQJ2rkp3hXLLS4H/OmrEQsO7wY5nh5Iz MeZlQEEy5iBn9xidLdoWhc9ocEBHPRkCVaBy0sOblD65O29ab056ExQGg9PGDLmDXldU RcfuzSAIz/W1huWlsvypPancGhFPGt99LcJ/5Uom2NtZL7BynuuxrQxcdJB8BTcmRIXc h1uQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hbX9DG7C; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6f5427c54f6si31257556d6.328.2025.05.07.16.17.17 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 May 2025 16:17:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hbX9DG7C; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1uCnyd-0000eL-6K; Wed, 07 May 2025 19:14:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <pierrick.bouvier@linaro.org>) id 1uCnyb-0000dX-OZ for qemu-devel@nongnu.org; Wed, 07 May 2025 19:14:57 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <pierrick.bouvier@linaro.org>) id 1uCnyX-00079D-9E for qemu-devel@nongnu.org; Wed, 07 May 2025 19:14:57 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-22c336fcdaaso5011165ad.3 for <qemu-devel@nongnu.org>; Wed, 07 May 2025 16:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746659691; x=1747264491; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+Do/vb7CoxT02dLkA4A4DxgTWo5tvmeFtdtT48tXERE=; b=hbX9DG7CnS1WjfTnz6aqmy765xP7VpLn8XxayT0rdq/+1FFWuKBPSZcwebkUr+sB0K Y8/hZck1c5jH4G8ye2dbq1COWdnZG+sS/TPzMzBUtKcHvZ1wEb1AVqfjQRSfWk1frIKp xMa5cYbLBruk6Kg0vSzhlh235DJwpPNXRR80WKsKxxAhke8npnbeyNdso2Z2k15ni9BS 4UAY8AB6ng5QkPZ7JJY26DCWiHSX0sSmhRrhho7YvF/55Nko9d013O1BvT+S+eCoymHe 75shmU30Uhcwacmt2Gy2SjJ8jjdJ9BAvYXofbvZ9Br2cpaT0/oLZuGHF9IfqlKSP//EC LXEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746659691; x=1747264491; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+Do/vb7CoxT02dLkA4A4DxgTWo5tvmeFtdtT48tXERE=; b=Cr/ozpI2EY5ucnLQO17PMX0WULIXz6f7zlZIQ06bPesDrnN7UazBy7KNwjY0z9K++T aT0n0IruLzWDrcOZArC9Xey8OBnabK/J4UXiz9+U1fuJI/Ef4pYLjPUFDQuYvWqOHBMq ml3iaE/PqGlaCRi6AblhqauEXwmegyJS9uVgM1rcj72l6pfIdTadNO0fSbkW3YfvAPjx 5X/LQiqYKf63Z4GMgU8umRFyywE/ZPCXIoHbVnM4fwz9UNJYbIboDAUPxQUrB9s750Ax JeuWAujq39rzK8eU9hVd05TUavP6pJMZYnrdouS3yL/PAslAmxBqrQpfiKOTP9z1q8nL 6tcA== X-Gm-Message-State: AOJu0YxW3eHOrMgZ5/pgKgKLuYG7SCZvzV+65wCGfi7romsqSOts/ol7 l3VDWHSustz8DjxgmDEpKTqBkY74nOCM0agkfewTxNptgUX23AzlGR3Ul7gVxOOdPX37M4hwaCU vchx0eg== X-Gm-Gg: ASbGncvMJ0+oTXHIvS2TgEcuf3flt++tMkrgoVwj75Wbru8Fxti5E8mXgpHAqZoP0TN /5kAsfC01FmKxwK5iRtiM8xMXVuRXRpjwSI93A2K0k3JcVoRxaBIRa+ZXdRaSrXZbaFncLGpp+3 /1iJirvTpsnNQvSqzwC/pwcOBskq7QvkitLu5eeRvxhQcUw2SolC7QHx6d80qryS9KrW55C8ji7 HP2ksOqbf0um6Ab38aKqAXydopcBPGqvZEsT6MvQoV8MLWp3x/N8i4tmf8rV6cG0QOBmD09kmoB k4ek/4qfamHk6cjMZssRo6YXMOZSEFAfWTZBA36K X-Received: by 2002:a17:903:3bc4:b0:22e:3ea4:b55c with SMTP id d9443c01a7336-22e863c2f76mr16100575ad.30.1746659691189; Wed, 07 May 2025 16:14:51 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22e421a7dafsm40103205ad.69.2025.05.07.16.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 May 2025 16:14:50 -0700 (PDT) From: Pierrick Bouvier <pierrick.bouvier@linaro.org> To: qemu-devel@nongnu.org Cc: Pierrick Bouvier <pierrick.bouvier@linaro.org>, alex.bennee@linaro.org, stefanha@redhat.com, peter.maydell@linaro.org, Markus Armbruster <armbru@redhat.com>, richard.henderson@linaro.org, pbonzini@redhat.com, jsnow@redhat.com, philmd@linaro.org, berrange@redhat.com, thuth@redhat.com, Michael Roth <michael.roth@amd.com> Subject: [PATCH 00/13] single-binary: make QAPI generated files common Date: Wed, 7 May 2025 16:14:30 -0700 Message-ID: <20250507231442.879619-1-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pl1-x62c.google.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <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>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
single-binary: make QAPI generated files common
|
expand
|
For people who would be interested to try this series, I used attached script. $ ./qmp_schema.sh ./build/qemu-system-x86_64 -M none > x86_64 $ ./qmp_schema.sh ./build/qemu-system-s390x -M none > s390x $ vimdiff x86_64 s390x ---- diff --git a/qmp_schema.sh b/qmp_schema.sh new file mode 100755 index 00000000000..576f7d71dfd --- /dev/null +++ b/qmp_schema.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +set -euo pipefail + +if [ $# -lt 1 ]; then + echo 'usage: qemu_cmd' 1>&2 + exit 1 +fi + +qemu_cmd=$* + +$qemu_cmd \ +-display none \ +-qmp unix:qmp-socket,server \ +& + +qemu_pid=$! + +sleep 1 + +qmp_session() +{ + cat << EOF + { "execute": "qmp_capabilities" } + { "execute": "query-qmp-schema" } + { "execute": "query-cpu-model-expansion", + "arguments": { "type": "full", "model": { "name": "max" } } } +EOF +} + +qmp_session | socat - unix-connect:qmp-socket | jq +kill $qemu_pid