From nobody Tue Feb 10 20:29:58 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1591449917; cv=none; d=zohomail.com; s=zohoarc; b=MKu9K22WkefWTdO4jn0jH5ejlSSEyuQShjQmI+QHw46KublCNdTyjgF3AdoEm8+mhvAF6p7r1U04bfnPSM5abf7SmP3OwXfUj8a/WMN5Dlq0o36ePReubCq1uYhhJ40YQIfLRb/R6w+7TaBUMh+TwqgWS38MjdDpvj2a7spi91Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591449917; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=NvHb0eM5plL2bDmiOIK1Jrb+pjtXtXO/h6/vzXSpvps=; b=P48PjH9fIltgFdu0C5KSfIGUOS9TOpp1ltcIOba8EnPcRw7UrJjqR6hSwFIvlFLVM6nCr9liLGifdl4gIwVytOUGt0Os6yUCZDwADIZ02/cSyrnpoaWqdtpkPgQRSrV3STQ4ivm+vuNKZ3OaCrme3kqoULonNm7MwZqoBpzecgA= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1591449917300468.90177766383135; Sat, 6 Jun 2020 06:25:17 -0700 (PDT) Received: from localhost ([::1]:40128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhYp1-0006Bb-VA for importer@patchew.org; Sat, 06 Jun 2020 09:25:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhYgX-0007Hg-J0 for qemu-devel@nongnu.org; Sat, 06 Jun 2020 09:16:29 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:48871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhYgW-0007fc-CV for qemu-devel@nongnu.org; Sat, 06 Jun 2020 09:16:29 -0400 Received: from localhost.localdomain ([82.252.135.106]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N8GdE-1iv6vP2Pdg-014A1G; Sat, 06 Jun 2020 15:16:23 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL v2 18/19] hw/core: Restrict CpuClass::get_crash_info() to system-mode Date: Sat, 6 Jun 2020 15:16:06 +0200 Message-Id: <20200606131607.1250819-19-laurent@vivier.eu> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200606131607.1250819-1-laurent@vivier.eu> References: <20200606131607.1250819-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:GZZSYLrSs7M0urx3dC04OAdGxc8HgaFQr1CphinUO/x2RDeOx0+ MkPLmNUo0Y/dy625VBsoMyasAAwcnWuTmmcwttTdtcZFeXumfB3wYbmW3JlFzPIwsk//40I ZUUmDEuRzMgFNNFKrHveVQ/pFZgY96d0ngKNimcwI+BpmLdWHJGtKaZkvgPzqM7mSUJ6I1R XJeesQzSpnXbF63sgSFqw== X-UI-Out-Filterresults: notjunk:1;V03:K0:XZdTX8sJvSs=:c4b8xpKfWx0os2crdNivhZ lMVAIGkJT4EG7AdnDiLYyPAilzlovKSaaIqPJrduHwNOiVbVpGZp8qYcYT2ylvMFJK7SbAegk duI6EPn1+wyKD46prq9N6ml07JXAWzOWehnRtUWJtjS6uHNpMIExwSx4iHmnW2YSFUiePsqB4 Ax73pa5qS1sRik34eg32AX9sRE39VgukKhvSTO9to06U+gBI1rn7JaGv0cbSHcdlQ9aNRLzvF d7f88+Z8kPmyAfKkmCJao+KUWYNfx9F+cbcbOR3qug7vESU0xkpGbO9aCQs8On8UJGmXfuocu /6rMyRmVw025W0sKByHwrSnHYy+0pfA+7VieyDI0xxUXcpodJHeooIp5LWUzd5BD+QrasdeU6 9VKgDkMvFsNBpsIvQPd5YhUOSm30mvt7sQMC4YQWcL/3m7IWDcCBaQwQzr7DS+GMB+wlBiGtS MoKwQB4hV5gYgYSFLxsawzQQu/USWH7L1vlUsk2fzDQCVyc5hp89om2swywpIr/nYXf9bUduW KEOeKKOP9r02+q/VguVlNkMyfpSSEBnIun85VNdHqZaEL9HVhPGUwv6i78sLdsg7WJvYnDTvW uBufT6UowOeGfsK2jPXqy4YJfB7ZKMYLPUsH6G2Rbc/faS/z0kimWWF53ieFIzsTTpeB9aofQ tEIySvqiuqfUcQDmb3qt5Czroax3Cy3qK3ZGEWBc0vqGMFdLuzcOfaCipkadJlsbJG2yk/T9e QbZzSKW5UhmxigvOur3oTrf51+mZOlujM4OHxRJy401Z6LqygMhGciGxFDWDMHxD1d0fdrAFU 8kd1WwZw/2QuAisb1F9Lnlm53ITJDNm4PwiUhaZEPw8vD/sLbMf5N6/45OYVOwkoaqMM2OD Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=212.227.126.135; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/06 09:16:27 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Henderson , Riku Voipio , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Laurent Vivier Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Reviewed-by: Laurent Vivier Tested-by: Laurent Vivier Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20200522172510.25784-13-philmd@redhat.com> Signed-off-by: Laurent Vivier --- hw/core/cpu.c | 2 ++ include/hw/core/cpu.h | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/core/cpu.c b/hw/core/cpu.c index 5284d384fb6b..f31ec48ee61e 100644 --- a/hw/core/cpu.c +++ b/hw/core/cpu.c @@ -209,6 +209,7 @@ static bool cpu_common_exec_interrupt(CPUState *cpu, in= t int_req) return false; } =20 +#if !defined(CONFIG_USER_ONLY) GuestPanicInformation *cpu_get_crash_info(CPUState *cpu) { CPUClass *cc =3D CPU_GET_CLASS(cpu); @@ -219,6 +220,7 @@ GuestPanicInformation *cpu_get_crash_info(CPUState *cpu) } return res; } +#endif =20 void cpu_dump_state(CPUState *cpu, FILE *f, int flags) { diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 07f769815502..497600c49efa 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -490,6 +490,8 @@ bool cpu_paging_enabled(const CPUState *cpu); void cpu_get_memory_mapping(CPUState *cpu, MemoryMappingList *list, Error **errp); =20 +#if !defined(CONFIG_USER_ONLY) + /** * cpu_write_elf64_note: * @f: pointer to a function that writes memory to a file @@ -539,6 +541,8 @@ int cpu_write_elf32_qemunote(WriteCoreDumpFunction f, C= PUState *cpu, */ GuestPanicInformation *cpu_get_crash_info(CPUState *cpu); =20 +#endif /* !CONFIG_USER_ONLY */ + /** * CPUDumpFlags: * @CPU_DUMP_CODE: @@ -632,7 +636,8 @@ static inline int cpu_asidx_from_attrs(CPUState *cpu, M= emTxAttrs attrs) } return ret; } -#endif + +#endif /* CONFIG_USER_ONLY */ =20 /** * cpu_list_add: --=20 2.26.2