From nobody Tue Feb 10 11:33:15 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=1591449733; cv=none; d=zohomail.com; s=zohoarc; b=E+VMM0shYswqj1EK2+fxP43ZnPIw8GHPH04fmaXeQM0lTv1zkFChBTj2bx8SbZC5jdaBX9hTdYKeLY+PjmWL2p2BZlX+2kJs1PuKFNlldLQcxGrSsqc52ZAIIdgZSeXyHPCURs1Os7Kxq7RY0JMPc1WRaRgQ1IZnwObSbuiboK4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591449733; 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=qLUOlgFkanhzocm+qOTocWI+v5EMz6HJAj0uAUkn98c=; b=GS94fmcJx6ueZaCPW5lh6gJfMVQ9CMLp899fmDjaihXFNay5QW/YLejB0JpGgrYeud4pbFEst9GORD+r4UTwsEjJcQtHt68uXqiDr5831cZo/RoKD0lFo1VzIi4mgGNqSY0aMceDUR47GpbGx+kLw1lnkyrr/mzzFP0P6bTOc40= 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 1591449733902411.94782359252804; Sat, 6 Jun 2020 06:22:13 -0700 (PDT) Received: from localhost ([::1]:51230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhYm4-0007ZD-8p for importer@patchew.org; Sat, 06 Jun 2020 09:22:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhYgV-0007CD-6N for qemu-devel@nongnu.org; Sat, 06 Jun 2020 09:16:27 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:54137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhYgU-0007fC-2V for qemu-devel@nongnu.org; Sat, 06 Jun 2020 09:16:26 -0400 Received: from localhost.localdomain ([82.252.135.106]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Myb4H-1ikuC31Eyb-00yy0x; Sat, 06 Jun 2020 15:16:22 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL v2 16/19] target/i386: Restrict CpuClass::get_crash_info() to system-mode Date: Sat, 6 Jun 2020 15:16:04 +0200 Message-Id: <20200606131607.1250819-17-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:hGmWWUrnidlbqWrM475Qa7LsXTKgep3+u42mFTEx0ReD1frOOm6 5d+6hDuGSIh6wspZYRl1iKGNCRGJw/iE8G4u39JAGyuYUjWIys6w5MRFTiplDIGpz8vnC3M gMUvEs8zVDJ12VuP5klqfZFERC4FiWJJELxhPhz2HyzLIGiujk37gx2+EnCNfFPxEooMBja d/NQ6Uzvu2wyhWm8QtCpw== X-UI-Out-Filterresults: notjunk:1;V03:K0:mEjE+vpSH+c=:VZ82BG56nTrURGRfUbGBgf j5xHOxLL76KtbrUpx2dgkWvrZcQgakMuOCmgrpfUWyuR3nGC8WKr2MQNe68yll1y/d8ucTELx 6zNBeiNrKMZogjmpu8akuEJVeBKlMOhk1+lTzMOKcBn1z6tKLuztvaclSjkh/mseyH1mnyUJR LSeLeN+J/pixzmmcofWq0Y5ZLqFjZK9qaTzI2qv+NaP6XCoA1bGyapzcY9s9W9r2uOzzEnFhU 08tUinBcWdFTyBY0EzglRT31mJLA/bVmysGwayGQzcPTGgGl1LyVDBh03Ep7P3uW+DrAGMKYC x6eNEZTZdB0iWFFUzl2v3xxapSZu9MyWK0ru417lEp/c5QlO/92iEk/0sfUGkjAF9oplUXdNr USrYNukcams/fBE3qTnGh8I/RNJ2mKHWafN7bxGL+pzW7+V8wQNir9TZWydRQawVrENVg2Abs aiyTbi9ePGKN1+wpKdJvquCTg+0urAEEuQ0l1kJnw+T6enO6NsgMrIagFGFnewjkpzM7JQoZW e91FQL35foN0tdbU6fBYCgyUE3DOBE3m5Lye5uFBIZ8Fzusd6a23h7cSWO0OhmqeYA3ogBTCo hIzX63MsJ676vK5NCsnL//fjN2vXwHbbyF0dCkLhYqKbd3fxLs624BEezfsskNCyOgVTFvTXu XAno2yUhZDhskVpYwN5KNAmQg9UQAi5W0NLeTYo3zgfAq6YlU7vItMOoJMIH5HDLbCLR3RMgJ SBAI6y0QBeX3j87fzeTj82ddx5cCiHzsecPAccidaMgArrZBIX7w97bFzQusIo25WMDVHNGm9 WUmv2xjd6GxgzRptODdI8wOIzoh+3dc/xoyAZdl2c3Y9I8BS3fYGoBCPSUhnrhfufaYlihO 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.187; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/06 09:16:17 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, RCVD_IN_MSPIKE_H2=-0.001, 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-11-philmd@redhat.com> Signed-off-by: Laurent Vivier --- target/i386/cpu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 7a4a8e3847f0..dd31c1de5f2b 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -6843,6 +6843,7 @@ static void x86_cpu_register_feature_bit_props(X86CPU= *cpu, x86_cpu_register_bit_prop(cpu, name, w, bitnr); } =20 +#if !defined(CONFIG_USER_ONLY) static GuestPanicInformation *x86_cpu_get_crash_info(CPUState *cs) { X86CPU *cpu =3D X86_CPU(cs); @@ -6886,6 +6887,7 @@ static void x86_cpu_get_crash_info_qom(Object *obj, V= isitor *v, errp); qapi_free_GuestPanicInformation(panic_info); } +#endif /* !CONFIG_USER_ONLY */ =20 static void x86_cpu_initfn(Object *obj) { @@ -6932,8 +6934,10 @@ static void x86_cpu_initfn(Object *obj) x86_cpu_get_unavailable_features, NULL, NULL, NULL); =20 +#if !defined(CONFIG_USER_ONLY) object_property_add(obj, "crash-information", "GuestPanicInformation", x86_cpu_get_crash_info_qom, NULL, NULL, NULL); +#endif =20 for (w =3D 0; w < FEATURE_WORDS; w++) { int bitnr; @@ -7245,7 +7249,6 @@ static void x86_cpu_common_class_init(ObjectClass *oc= , void *data) cc->cpu_exec_interrupt =3D x86_cpu_exec_interrupt; #endif cc->dump_state =3D x86_cpu_dump_state; - cc->get_crash_info =3D x86_cpu_get_crash_info; cc->set_pc =3D x86_cpu_set_pc; cc->synchronize_from_tb =3D x86_cpu_synchronize_from_tb; cc->gdb_read_register =3D x86_cpu_gdb_read_register; @@ -7256,6 +7259,7 @@ static void x86_cpu_common_class_init(ObjectClass *oc= , void *data) cc->asidx_from_attrs =3D x86_asidx_from_attrs; cc->get_memory_mapping =3D x86_cpu_get_memory_mapping; cc->get_phys_page_attrs_debug =3D x86_cpu_get_phys_page_attrs_debug; + cc->get_crash_info =3D x86_cpu_get_crash_info; cc->write_elf64_note =3D x86_cpu_write_elf64_note; cc->write_elf64_qemunote =3D x86_cpu_write_elf64_qemunote; cc->write_elf32_note =3D x86_cpu_write_elf32_note; --=20 2.26.2