From patchwork Thu Feb 23 15:55:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 655974 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp408320wrb; Thu, 23 Feb 2023 07:56:46 -0800 (PST) X-Google-Smtp-Source: AK7set8HjripOm7nHUr5BhjGEoVUXyWAruCQDZkbpu3JTJqVzvmbwuqw1hdoCCWVBw6tywlj7x9F X-Received: by 2002:ac8:5f46:0:b0:3b9:b7c9:f0d3 with SMTP id y6-20020ac85f46000000b003b9b7c9f0d3mr9577699qta.43.1677167806685; Thu, 23 Feb 2023 07:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677167806; cv=none; d=google.com; s=arc-20160816; b=uI+N/RDNxPNJAkiB5+uAZepFviNK2kw6OtE6tr5W0/Zgjx50BcUwwkWhPdppG2w7Wc BKr9aMBD5sKMGQU6k9GzOg4U70MB9kBfmwFu62N7VWj+HhBg+DkEmDnnpbLqp6gYr4gh 5Lc/BUAWpFV0t3MMHUzPJOKsk0sgqILIjCQlU1HVYkJa0piDZ3mjuWmRl4y2ClMdveOf 8HtbxPNI494NbOu1ABXtGuaRVli1wRtljQ3dYwBpknUCpD3673MFl7b+tE88AKp36DbO hsGOpHNzb4mW8x86ZV8W0MYCo/wfhAUs9yiqPO1e8XJHr/n8q1MxSjqzksbGwad8E9qo HGqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=TsseaSdT9PbH8TX+zXaKELUHDz1s5Vbz0ij/dFWewlU=; b=aamFbd+a3dOVac0QxBAmHsYZLwQu58J0ma7mtjAtgPyKBEeQa7zyJRU0v/KUbsSTx7 GcnAaqSM9t4n45EFqJlrGpqM8wD+Jkv5y3xhUYvs/CJCgFN2b/J7zEkadv/x80WeGcTs 3K5L6Uyv4d6B5XGiolSyxJ2hhTIw2xmW6lKXX6bg5o4RAjq4GlgIO198lONEEZrT6ltz ycuwh9JLQlnvxBfbtv/Yh+eYA1kEw4kd+sxx71SZoedKWjFHG1oHPJtljrK9iGriB0yO llnucAQm+ujSSrwhWY+p2HbkOTDx0ETdBZLlEec6P0sAcpVzQLE6zf37UD7U6E4rTPrT O3Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MtcxiP1N; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v11-20020a05622a188b00b003b19d09ddf1si8055893qtc.618.2023.02.23.07.56.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 07:56:46 -0800 (PST) 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=MtcxiP1N; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pVDwn-0005Kz-0V; Thu, 23 Feb 2023 10:55:53 -0500 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 ) id 1pVDwh-0005Je-Uv for qemu-devel@nongnu.org; Thu, 23 Feb 2023 10:55:47 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVDwf-0004LW-5D for qemu-devel@nongnu.org; Thu, 23 Feb 2023 10:55:47 -0500 Received: by mail-wm1-x32f.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so5150947wms.2 for ; Thu, 23 Feb 2023 07:55:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TsseaSdT9PbH8TX+zXaKELUHDz1s5Vbz0ij/dFWewlU=; b=MtcxiP1NmEGmiJyR6JkmZP8UqfuOewwr/kAafFrcNuCVG98XgnMzijRgfgeNjjKVJZ DT5lNv0pkIysWNcvbehxk+GsQZXNStc6YUicu5loTkGXsooUrdU7g2CBkhf5wljVUgTY oOoaHEfLhuunySKjB3+hS96htinj5U4ogRAmRsuMqyp+URtAztX0wbDgOfGmWTij7txh 7Evwpun2MoFQRSF2C2Xz4A1XI/56W6CHhynCrCKw1fWmzstfF2uFs82Rrs1aCJhfhQ3j XmryBRMJaBYqnThA+dleicWHDtc6mrdAxiTh+sYx/X57hlUzdodwGvV6NQ6ohknycwrB sMVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=TsseaSdT9PbH8TX+zXaKELUHDz1s5Vbz0ij/dFWewlU=; b=mUETBdJxmLjld3B9KwJbcE43Vt+lLYTiqjfd/jj6oy3QWi1nZuQmWzaFadnqDjJWqA NSrNi4eyDFrKbqxahg32jIzzT0VtqnFljUb5W8NwaIikGo9aRLNsx7UqulyOryVAoTTr QOQ7MXg1oAC02VBhG1byowaKfZSNatuXCPPyEj4BKaYBz1rHRjoPr5r0OHKF064+UIle 12NBP7xgxl79lYuEYcj61E0McPJ3G748TvvnLsKvn7J9jew6Lryl94xzcDnWK0xn37Ci WaoaoQC6VOH0t97Xo3sYmYQXDXnhcDTvJ2RUmMfjgs160TSUtFhk5BmCQuVhmp4lq0sW aP6A== X-Gm-Message-State: AO0yUKWMq4kOJkp7AftJQWBL76EHn7SCq+4/4wSO/aCkOjuJdqF2Is3I AQnrTORc1EFhvWQSm8s0eiEOAw== X-Received: by 2002:a05:600c:a694:b0:3da:1f6a:7b36 with SMTP id ip20-20020a05600ca69400b003da1f6a7b36mr9346583wmb.0.1677167743296; Thu, 23 Feb 2023 07:55:43 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id t16-20020a05600c451000b003dc5b59ed7asm13461379wmo.11.2023.02.23.07.55.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Feb 2023 07:55:42 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Markus Armbruster , qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, Song Gao , Xiaojuan Yang , Peter Maydell , Greg Kurz , David Gibson , =?utf-8?q?C=C3=A9dric_Le_Goater?= , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH v4 0/4] target: Restrict 'qapi-commands-machine.h' to system emulation Date: Thu, 23 Feb 2023 16:55:36 +0100 Message-Id: <20230223155540.30370-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org All series reviewed, can patches be picked by corresponding maintainers, or should I include them in on of my PRs? The "qapi-commands-machine.h" header is not generated in user-only emulation. This series removes its use in user-emu code by moving the QMP code depending on this header into a separate sysemu unit. Since v3: - Addressed Markus' review comments Since v2: - Rebased - Renamed target/$foo/monitor.c -> target/$foo/$foo-qmp-cmds.c (Markus) Since v1: - renamed cpu-monitor.c -> monitor.c on loongarch Philippe Mathieu-Daudé (4): target/arm: Restrict 'qapi-commands-machine.h' to system emulation target/i386: Restrict 'qapi-commands-machine.h' to system emulation target/loongarch: Restrict 'qapi-commands-machine.h' to system emulation target/ppc: Restrict 'qapi-commands-machine.h' to system emulation target/arm/{monitor.c => arm-qmp-cmds.c} | 28 +++++++++ target/arm/helper.c | 29 ---------- target/arm/meson.build | 2 +- target/i386/cpu.c | 74 +++++++++++++----------- target/loongarch/cpu.c | 27 --------- target/loongarch/loongarch-qmp-cmds.c | 37 ++++++++++++ target/loongarch/meson.build | 1 + target/ppc/cpu-qom.h | 2 + target/ppc/cpu_init.c | 48 +-------------- target/ppc/meson.build | 2 +- target/ppc/{monitor.c => ppc-qmp-cmds.c} | 50 +++++++++++++++- 11 files changed, 159 insertions(+), 141 deletions(-) rename target/arm/{monitor.c => arm-qmp-cmds.c} (90%) create mode 100644 target/loongarch/loongarch-qmp-cmds.c rename target/ppc/{monitor.c => ppc-qmp-cmds.c} (78%)