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.6 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 814D8C35DEB for ; Mon, 24 Feb 2020 23:39:01 +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 4EC5D2084E for ; Mon, 24 Feb 2020 23:39:01 +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="DXkuB8AE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4EC5D2084E 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]:46106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6NJT-00086l-Gy for qemu-devel@archiver.kernel.org; Mon, 24 Feb 2020 18:38:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47036) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6NIF-0006DZ-21 for qemu-devel@nongnu.org; Mon, 24 Feb 2020 18:37:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6NID-00081e-OB for qemu-devel@nongnu.org; Mon, 24 Feb 2020 18:37:42 -0500 Received: from ozlabs.org ([203.11.71.1]:44273) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j6NIC-0007mG-Ri; Mon, 24 Feb 2020 18:37:41 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 48RJQ14NPLz9sQt; Tue, 25 Feb 2020 10:37:29 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1582587449; bh=oFITgY0EVz6a8Qvz7LUejHqMbN+eBMDQ3oUKNL29O/s=; h=From:To:Cc:Subject:Date:From; b=DXkuB8AE/GVnIKIKGybZzJKutekdDlcl5C54agG1sUwh0bBKW215Ro+9WfFiDmOg9 C2bvJT4qr/ZqbrU6PhQrtS8heOMx5S7MBG1zUOXMhLVSoPBxL3JGujfHDiNEosl+Rc DwLZoMXV6EnlcxfUPu8HgCwHxtGUf/gwiZ8CXlX8= From: David Gibson To: groug@kaod.org, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, clg@kaod.org Subject: [PATCH v6 00/18] target/ppc: Correct some errors with real mode handling Date: Tue, 25 Feb 2020 10:37:06 +1100 Message-Id: <20200224233724.46415-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: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 203.11.71.1 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: lvivier@redhat.com, Thomas Huth , Xiao Guangrong , "Michael S. Tsirkin" , aik@ozlabs.ru, farosas@linux.ibm.com, Mark Cave-Ayland , Igor Mammedov , paulus@samba.org, Paolo Bonzini , "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. Some of those limitations caused problems with calculating the size of the Real Mode Area of pseries guests, so continue on to clean up and correct those calculations as well. Changes since v5: * Fixed an error in the sense of a test (pointed out by Fabiano Rosas) Changes since v4: * Some tiny cosmetic fixes to the original patches * Added a bunch of extra patches correcting RMA calculation 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 Alexey Kardashevskiy (1): pseries: Update SLOF firmware image David Gibson (17): 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: Don't store VRMA SLBE persistently spapr: Don't use weird units for MIN_RMA_SLOF spapr,ppc: Simplify signature of kvmppc_rma_size() spapr: Don't attempt to clamp RMA to VRMA constraint spapr: Don't clamp RMA to 16GiB on new machine types spapr: Clean up RMA size calculation spapr: Fold spapr_node0_size() into its only caller hw/ppc/spapr.c | 124 ++++++------ hw/ppc/spapr_cpu_core.c | 6 +- hw/ppc/spapr_hcall.c | 4 +- include/hw/ppc/spapr.h | 4 +- pc-bios/README | 2 +- pc-bios/slof.bin | Bin 931032 -> 968616 bytes roms/SLOF | 2 +- target/ppc/cpu-qom.h | 1 + target/ppc/cpu.h | 25 +-- target/ppc/kvm.c | 5 +- target/ppc/kvm_ppc.h | 7 +- target/ppc/mmu-hash64.c | 327 ++++++++++++-------------------- target/ppc/translate_init.inc.c | 63 ++++-- 13 files changed, 254 insertions(+), 316 deletions(-) --=20 2.24.1