From patchwork Mon Feb 27 14:02:12 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: 657042 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2375854wrb; Mon, 27 Feb 2023 06:17:47 -0800 (PST) X-Google-Smtp-Source: AK7set98PPiFPyc8yoLbZwsOidHZd0kLGIOA6rBLNYKIjoX0tZNhKom7uQyxsIrUHlYACATrxqWq X-Received: by 2002:a05:622a:1a24:b0:3bf:a030:2e50 with SMTP id f36-20020a05622a1a2400b003bfa0302e50mr41737740qtb.64.1677507467731; Mon, 27 Feb 2023 06:17:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677507467; cv=none; d=google.com; s=arc-20160816; b=HBqJu6ofNhABwnaA55ecosWdOP0VcYv+EpKRv7dEbpPRAAL9ZUoivxPzdUWLwQkxAG nACmr5UslyOO5vS6fhPD90Pti25VZxvQehFTzD3qy9b5NT8Q2LDuz8qAY6ORuIbe7AF3 KFkpnlnRqRMoKvSW39vSZJbHuoZxwjiN6jbqId1xLTpTPYivv105LXSvUbf3jbi1k9Un 8LYuVepjtmAlgWFZ8E0AoT9/xCY36mVtx6xtr1fj1EJ8Mn32rBWb5bsuDXJ0MvXIhNZw Rl7yQ8ZOWZzqtbMiUYFWqHD67RJ+Kdta77WN8U89MxUzIOimRQzF3oWptmmdpWskvXDP XD6Q== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=dk2Ura4QRUYq4OfGhCjuiJiTdsch+c3zilubabnaDK4=; b=P2/k8hZSaDz9YaUZ+k9cNuQy0HZjoymRUC+kPt/kn435ZhrNUjdnmWTkDYYI1Mo1Nn bRgw8puNLGoN6ABjQWph5TGHgzTvRsT32hNWPTIinmkJoO9hUtqNcCIa3rzxxwv9ja2n YzQq4miIaIvqo/Cd0aXl9LvaDQr+x9Oa7+R7faj+r7VYvFxeriUjsv1ig6tsSwVb4Hjg P/VIRD5YQ8kIGGFd3lrqxYUbbvWk1q6Aks/NDfrCYhTVIDD+V8cJOCb8RT5Z/ABAJvex JCWtUNqBjFxMjTVhzDPRgAdt0rKucaQTzWUXhW++Uo+ZVR33PBnAjCWwHHsngsVbRnZD eUyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cSQ7PfGy; 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 d14-20020a05622a05ce00b003ba1c1dab50si6559221qtb.296.2023.02.27.06.17.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:17:47 -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=cSQ7PfGy; 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 1pWeFM-0001il-Pl; Mon, 27 Feb 2023 09:12:56 -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 1pWeFB-0000zg-Mh for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:12:47 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWeF9-0001MS-S7 for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:12:45 -0500 Received: by mail-wr1-x430.google.com with SMTP id l1so3326989wry.12 for ; Mon, 27 Feb 2023 06:12:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=dk2Ura4QRUYq4OfGhCjuiJiTdsch+c3zilubabnaDK4=; b=cSQ7PfGy9Q8Zg2g0aGw0NshIQH0GRRFaSEhr3qAsnDN4bFo18+nSy9oqi3h/mXCZGb eF/PezzMKSEM3MixWuqFemD8Eh17AGCQh1iiApk++CfNo0PTDyP8EuyV+KwO84HZrKEC cpX4mWRxD019Kyx0ILhq5+vemh6OuZuAmXTNnkmBGTUWu7NUCb7gAUIlCaDOQzLa7jiG kC/YSeRXLgHtEy3SH3nJL7jpqfE+cf7Snf7KlvXlsRpbwZ7AogCspOT/blf9QErL48Id vbd26h+BEv8Go0GHy8Ul3l3eoxDaZOIFaYmlTT/X/yVQwhaW60Cu7lFzIXhcVy5Xjn2g gY0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dk2Ura4QRUYq4OfGhCjuiJiTdsch+c3zilubabnaDK4=; b=2cKFlrrzgNOYWc0SrYhuqPW7W+hmVpWiQ0W4JjZM5AXfq+RXO1wLmzkXsgOJLiWswc jVPy6+TgA5KldG7jV0Z0SF/6cIoMUoUh04zVnUW7KOD87ZgGvwJh4t+ncjyfnwx46WFY d+6k4CpxJudkkiOrNyk1zR/w93PzHxinytok0ybrTP4xFpSThkg0A0JKt09misN79gAm +cpmEzyxD/Kkdh1/Q+yY+bUveDyFWBpe7KC0ZvRXOs17GDC9/I89ZVk7i5/2yysK1LD0 voGiGUuQ53Lrw3CTxmzCUUYS6bJ74r00ntOx7jb2AFlPF2uE+tYD7ChSws0gJncEDBaL EIww== X-Gm-Message-State: AO0yUKUvEhOydCCs/3mJ17waAVImZCbwFn7pdqT418gXKM2gK33mIStQ V7MZt2v5wjhhAoFj7vIVTVajGwYLVpUBFBDy X-Received: by 2002:a5d:690e:0:b0:2c7:1e52:c5a8 with SMTP id t14-20020a5d690e000000b002c71e52c5a8mr9151539wru.21.1677507161997; Mon, 27 Feb 2023 06:12:41 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id l16-20020adfe590000000b002c70e60eb40sm7247590wrm.11.2023.02.27.06.12.41 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:12:41 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 125/126] dump: Add create_win_dump() stub for non-x86 targets Date: Mon, 27 Feb 2023 15:02:12 +0100 Message-Id: <20230227140213.35084-116-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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: 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 Implement the non-x86 create_win_dump(). We can remove the last TARGET_X86_64 #ifdef'ry in dump.c, which thus becomes target-independent. Update meson accordingly. Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Marc-André Lureau Message-Id: <20230225094903.53167-6-philmd@linaro.org> --- dump/dump.c | 2 -- dump/meson.build | 4 +--- dump/win_dump.c | 5 +++++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index fa650980d8..544d5bce3a 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -2018,9 +2018,7 @@ static void dump_process(DumpState *s, Error **errp) DumpQueryResult *result = NULL; if (s->has_format && s->format == DUMP_GUEST_MEMORY_FORMAT_WIN_DMP) { -#ifdef TARGET_X86_64 create_win_dump(s, errp); -#endif } else if (s->has_format && s->format != DUMP_GUEST_MEMORY_FORMAT_ELF) { create_kdump_vmcore(s, errp); } else { diff --git a/dump/meson.build b/dump/meson.build index f13b29a849..df52ee4268 100644 --- a/dump/meson.build +++ b/dump/meson.build @@ -1,4 +1,2 @@ -softmmu_ss.add(files('dump-hmp-cmds.c')) - -specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: [files('dump.c'), snappy, lzo]) +softmmu_ss.add([files('dump.c', 'dump-hmp-cmds.c'), snappy, lzo]) specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: files('win_dump.c')) diff --git a/dump/win_dump.c b/dump/win_dump.c index ff9c5bd339..0152f7330a 100644 --- a/dump/win_dump.c +++ b/dump/win_dump.c @@ -487,4 +487,9 @@ bool win_dump_available(Error **errp) return false; } +void create_win_dump(DumpState *s, Error **errp) +{ + win_dump_available(errp); +} + #endif