From patchwork Thu May 6 16:39:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Mateus Martins Araujo e Castro X-Patchwork-Id: 1475169 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) 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 ozlabs.org (Postfix) with ESMTPS id 4FbfYy4zSXz9sCD for ; Fri, 7 May 2021 02:44:38 +1000 (AEST) Received: from localhost ([::1]:36434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leh76-0007sT-Lg for incoming@patchwork.ozlabs.org; Thu, 06 May 2021 12:44:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leh2Z-0004ix-9c; Thu, 06 May 2021 12:39:55 -0400 Received: from [201.28.113.2] (port=23611 helo=outlook.eldorado.org.br) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leh2X-0001sf-Nw; Thu, 06 May 2021 12:39:55 -0400 Received: from power9a ([10.10.71.235]) by outlook.eldorado.org.br with Microsoft SMTPSVC(8.5.9600.16384); Thu, 6 May 2021 13:39:49 -0300 Received: from eldorado.org.br (unknown [10.10.71.235]) by power9a (Postfix) with ESMTP id 0DF7E800E42; Thu, 6 May 2021 13:39:49 -0300 (-03) From: "Lucas Mateus Castro (alqotel)" To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH v3 0/4] hw/ppc: code motion to compile without TCG Date: Thu, 6 May 2021 13:39:37 -0300 Message-Id: <20210506163941.106984-1-lucas.araujo@eldorado.org.br> X-Mailer: git-send-email 2.17.1 X-OriginalArrivalTime: 06 May 2021 16:39:49.0180 (UTC) FILETIME=[6E2EAFC0:01D74296] X-Host-Lookup-Failed: Reverse DNS lookup failed for 201.28.113.2 (failed) Received-SPF: pass client-ip=201.28.113.2; envelope-from=lucas.araujo@eldorado.org.br; helo=outlook.eldorado.org.br X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no 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: bruno.larsen@eldorado.org.br, "Lucas Mateus Castro \(alqotel\)" , farosas@linux.ibm.com, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" After the feedback from v2 I changed: * The name _tcg or _tcg_only to _softmmu in spapr_softmmu, * Divided h_resize_hpt_prepare and h_resize_hpt_commit into a KVM and softmmu parts, * How to register some hypercalls in a !TCG environment in spapr_hcall.c, * Where to move the functions ppc_hash64_filter_pagesizes and ppc_store_lpcr, * Changed registration verification in pnv_dt_core and spapr_dt_cpu. This patch aims to move and change some functions to make some progress toward enabling the disable-tcg option on PPC. Lucas Mateus Castro (alqotel) (4): hw/ppc: Moved hypercalls that depend on softmmu to new file target/ppc: moved function out of mmu-hash64 target/ppc: moved ppc_store_lpcr to misc_helper.c hw/ppc: Altered calls from oea_read to read hw/ppc/meson.build | 3 + hw/ppc/pnv.c | 2 +- hw/ppc/spapr.c | 4 +- hw/ppc/spapr_caps.c | 59 ++++ hw/ppc/spapr_hcall.c | 608 ++----------------------------------- hw/ppc/spapr_softmmu.c | 627 +++++++++++++++++++++++++++++++++++++++ include/hw/ppc/spapr.h | 6 + target/ppc/cpu.h | 1 + target/ppc/misc_helper.c | 10 + target/ppc/mmu-hash64.c | 67 ----- target/ppc/mmu-hash64.h | 4 - 11 files changed, 741 insertions(+), 650 deletions(-) create mode 100644 hw/ppc/spapr_softmmu.c