Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EC6EC34031 for ; Wed, 19 Feb 2020 02:15:35 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DECEF207FD for ; Wed, 19 Feb 2020 02:15:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.b="QZ7rSGvi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DECEF207FD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4Eti-0005jX-0j for qemu-devel@archiver.kernel.org; Tue, 18 Feb 2020 21:15:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42944) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4EsU-0003y9-3p for qemu-devel@nongnu.org; Tue, 18 Feb 2020 21:14:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4EsT-00011j-41 for qemu-devel@nongnu.org; Tue, 18 Feb 2020 21:14:18 -0500 Received: from ozlabs.org ([2401:3900:2:1::2]:35477) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j4EsS-0000z4-Py; Tue, 18 Feb 2020 21:14:17 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 48Mh9f2pGHz9sSD; Wed, 19 Feb 2020 13:14:14 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1582078454; bh=9Vl5kb2z+w3qlwpTjNYUwWcx/DhdJluC3saDRVBLnKE=; h=From:To:Cc:Subject:Date:From; b=QZ7rSGviEulCDm/HCkxi0USMk+QwKHYt5Vg4zzNRMohmaK6IJ492rZjwxH00ganOI xeZps8QTXii6WiQWsdtMTXp+9NBUsHvB/Zo2pwtLkZyBdSvlYmq2GXjl4ypGtr+MOE fqUyFDnutKzujzuW0/8689JRf/M4kDZqf9n/fxMQ= From: David Gibson To: groug@kaod.org, clg@kaod.org, philmd@redhat.com, qemu-devel@nongnu.org Subject: [PATCH v4 00/12] target/ppc: Correct some errors with real mode handling Date: Wed, 19 Feb 2020 13:13:57 +1100 Message-Id: <20200219021409.21332-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 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: Laurent Vivier , qemu-ppc@nongnu.org, Thomas Huth , Xiao Guangrong , "Michael S. Tsirkin" , aik@ozlabs.ru, Mark Cave-Ayland , paulus@samba.org, Paolo Bonzini , Igor Mammedov , "Edgar E. Iglesias" , David Gibson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" POWER "book S" (server class) cpus have a concept of "real mode" where MMU translation is disabled... sort of. In fact this can mean a bunch of slightly different things when hypervisor mode and other considerations are present. We had some errors in edge cases here, so clean some things up and correct them. Changes since v3: * Fix style errors reported by checkpatch Changes since v2: * Removed 32-bit hypervisor stubs more completely * Minor polish based on review comments Changes since RFCv1: * Add a number of extra patches taking advantage of the initial cleanups David Gibson (12): ppc: Remove stub support for 32-bit hypervisor mode ppc: Remove stub of PPC970 HID4 implementation target/ppc: Correct handling of real mode accesses with vhyp on hash MMU target/ppc: Introduce ppc_hash64_use_vrma() helper spapr, ppc: Remove VPM0/RMLS hacks for POWER9 target/ppc: Remove RMOR register from POWER9 & POWER10 target/ppc: Use class fields to simplify LPCR masking target/ppc: Streamline calculation of RMA limit from LPCR[RMLS] target/ppc: Correct RMLS table target/ppc: Only calculate RMLS derived RMA limit on demand target/ppc: Streamline construction of VRMA SLB entry target/ppc: Don't store VRMA SLBE persistently hw/ppc/spapr_cpu_core.c | 6 +- target/ppc/cpu-qom.h | 1 + target/ppc/cpu.h | 25 +-- target/ppc/mmu-hash64.c | 331 ++++++++++++-------------------- target/ppc/translate_init.inc.c | 63 ++++-- 5 files changed, 179 insertions(+), 247 deletions(-) --=20 2.24.1