From patchwork Thu Feb 23 23:17:53 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: 656017 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp601077wrb; Thu, 23 Feb 2023 15:19:28 -0800 (PST) X-Google-Smtp-Source: AK7set9YfqJr/wCiOQ1A8B2T8zGgXi3qDyJ71n1O0Ttcbb1qFALkItZmwDQzzUQHcXA6faapJZCe X-Received: by 2002:a05:6214:518f:b0:56e:b1e0:3ff2 with SMTP id kl15-20020a056214518f00b0056eb1e03ff2mr21527469qvb.9.1677194368649; Thu, 23 Feb 2023 15:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677194368; cv=none; d=google.com; s=arc-20160816; b=pErQQDHmvncSDHFnBFyuL7/wbjFxD/69/mCl6L8OY3UO1E747rZ2uZiYUAWGMTAals yrQkybW4u75Tlee4swVFZ+V/m53pcTQSFxFrehl1z5sHEpzP62gDCVRwMlkao2zCefP7 BK+tIIh397SF0HCq2mLzRMHff2og7VOVhUmqo9M6I51FbRk8rmYddrFIpx4uRb94x/3Z Xu4q5zDaMnzMb2Y5jpoYM66d6Zh140RVDxw5eD3e5SipZ0xdQbzqDJQoop5p4CIM4es6 dSNv1L7E/aswUYowHp0QjBc7MskZJa1zHClMdfMRwZLmYQTenTIhzOdwVM9t+9OojF+z 9eGQ== 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:cc:to :from:dkim-signature; bh=/SzNes+PKphnz/4Kg6fNH0K4F/X2m+UTPTjILWJZzx8=; b=gKNgkY2or3VT/SWkn9jSpmoj6mIZESZDacIdpGy+rJ4qtKzFLz1Mtm5vqk9GLiICDC EwZNKNGvJyURqcX8W52M3e2fhe+Pck33pUkHhmolWEpD0wmPRqTMlPTPZtB3FHSK6A+C IqKhyKGcpfntpyJ5rgKNePbj/hBc0mItZdKrMSQ8htZMWThYc3XnPPopL95aB8TqVnKB kmpTA6d4EOegHbpmeYZXKaONQIMsNhmBCL9dWsUdIvpjwzSUOzS0s0TnTCmO5f0MGIO9 ZqymWy3dyek1mzjPUbY/NXyl1NKXDre/D4d3UQtFwmeVbNWISr7LZPB443Nhq6sKhYbo is9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tUvZxM0X; 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 a9-20020a0cca89000000b0056eff66f678si1921425qvk.261.2023.02.23.15.19.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 15:19:28 -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=tUvZxM0X; 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 1pVKr8-00007B-Ei; Thu, 23 Feb 2023 18:18:30 -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 1pVKr6-00006h-1k for qemu-devel@nongnu.org; Thu, 23 Feb 2023 18:18:28 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVKr4-0000VJ-Jk for qemu-devel@nongnu.org; Thu, 23 Feb 2023 18:18:27 -0500 Received: by mail-wm1-x336.google.com with SMTP id iv11-20020a05600c548b00b003dc52fed235so640341wmb.1 for ; Thu, 23 Feb 2023 15:18:26 -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:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/SzNes+PKphnz/4Kg6fNH0K4F/X2m+UTPTjILWJZzx8=; b=tUvZxM0XEzoCE0vAdl/M0nfQSMZD/Sx3q0J1YkuKkF/dIgo5e072Bq1W932SuCQijM bgzSxflSR0LPZ3KVBRwkTFrgbVslOpYIys/MwsJ8iM/iR0aOtNuBtcPhFHD/tl41f68F ExqdhGmhROzmiRkbkAu5ohWytEa7E7xVM90K1ZNsOnMNL794aamWdTtBtF8vi7Acu1px ki210O3qBec84UUHeHSzmBZNiwxjEgXNjVsBwClYr/lfQTb6Fo7bPStrQ21dy6jpp6sQ q3KSNZOn1KWpEsEuIH+H9LbGkqQS0CCybEOqCn7kfY7WPEK+BfUtj/Czwjnq6OAL/9/r J3YA== 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:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/SzNes+PKphnz/4Kg6fNH0K4F/X2m+UTPTjILWJZzx8=; b=DCjUODN4os7pKw95Ne3p6lyCNKY84PgKI8RE2Dhwjc6NxW58INnLUxjuy44Nwp8/ej WjF0cCFHA4IAbyd+Ac10fahZWmbVcJWsrBRxD4Nwl9BGiWc5obzxACx3vz9ruxfIcPPG +/eabzkOI29ej6FH/9n91NHSXrEFHrwf7CH45VmuOd+K765TjLXoGfPanSoOkHWS5SPz zY+PFnW691JWnVl4bKfGAMcHgySLVVfiUK5lL7rR1FH6a+6jaVqHXQjYtOst0LE5UJ28 96uc/g5ekjjw4do5zkSjFeS9jtGccUxjfhSRIq8EmtEIyUhQ3z/4xiM6+08ZB7rsL4sF fmoA== X-Gm-Message-State: AO0yUKXdS0vHWxh0vEURO5XTgcvlxaCz/3Vx2fCylDWAxOPA+j+OPHOx VWnVyEuR7eqNCqaEOtW4W8bI0cWM/pxU4N1h X-Received: by 2002:a05:600c:3420:b0:3e2:c67:1c7f with SMTP id y32-20020a05600c342000b003e20c671c7fmr10389765wmp.10.1677194304933; Thu, 23 Feb 2023 15:18:24 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id az11-20020a05600c600b00b003e1202744f2sm753577wmb.31.2023.02.23.15.18.23 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 23 Feb 2023 15:18:24 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Janosch Frank , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Marc-Andr?= =?utf-8?q?=C3=A9_Lureau?= , =?utf-8?q?Philippe?= =?utf-8?q?_Mathieu-Daud=C3=A9?= Subject: [PATCH v4 5/7] dump: Introduce create_win_dump() Date: Fri, 24 Feb 2023 00:17:53 +0100 Message-Id: <20230223231755.81633-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230223231755.81633-1-philmd@linaro.org> References: <20230223231755.81633-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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 Remove another TARGET_X86_64 #ifdef'ry by introducing a create_win_dump() stub. We'll extract it to a stub file for non-x86 targets in the next commit. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth --- dump/dump.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index c356a88be1..b33a613d45 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -39,6 +39,11 @@ bool win_dump_available(Error **errp) return false; } + +void create_win_dump(DumpState *s, Error **errp) +{ + win_dump_available(errp); +} #endif #include @@ -2031,9 +2036,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 {