From nobody Thu Nov 14 18:03:07 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1708703753; cv=none; d=zohomail.com; s=zohoarc; b=CDxRFzBXjoZsEr8laxhRcdQFAwYdiid7xU2nlXN8ZZwqHwt5/8ALmEGuj+uuuNioZKbqM5oYp/AtkCCoe/bhNLlOeQcisVEE+ToNJWi7iC9kdWx6nhWJoTb7nO25Wi4UQpR7IMTuaFzcOdvZUVvSmIVvK6142ZNCSIa4/KeKv90= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1708703753; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=7/DLuXky9FQDqFdM2qoHQOMo5LuNUVQuzkj5LQTCSNQ=; b=O2EbWkv+OIz0zNRDgYboQ55ZyOuLaT7w+yJg0hbQrwxYSwEFbSISezH9dbNrXxY9sOimTx+axvhmX7JOTDx8PddPaCw+OgNjJAxHLDqM5AIDMpD8PyOe+ryIWxfZxxdQqXECEV5yoEP0nMp+e1nkejWOX9sMg7xjrdkI9tdJdQQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1708703753392574.4963318312906; Fri, 23 Feb 2024 07:55:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdXrd-0006QL-Ob; Fri, 23 Feb 2024 10:53:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rdXie-0005aM-Ue; Fri, 23 Feb 2024 10:44:13 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rdXid-0006Gx-Al; Fri, 23 Feb 2024 10:44:12 -0500 Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1d94b222a3aso9669245ad.2; Fri, 23 Feb 2024 07:44:10 -0800 (PST) Received: from wheely.local0.net (220-235-194-103.tpgi.com.au. [220.235.194.103]) by smtp.gmail.com with ESMTPSA id h18-20020a170902f2d200b001d913992d8csm11808208plc.242.2024.02.23.07.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 07:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708703049; x=1709307849; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7/DLuXky9FQDqFdM2qoHQOMo5LuNUVQuzkj5LQTCSNQ=; b=FeYfRhPmlXB3swxxkoUljgpVo5bsujoMcq03bTznh0phSNrBWr5jYMMmw7/09sIRxo ym18ecibSFlkq5M8w9mhv3eiTsh1AIYh4bYqvWd5N3jo7Y/GRH5urvJhpgImu1Cotgw8 OWuhq8ijw3Hxhr1ZvhwvGGJMYBKVuSTG4VEp4T9/GJzUJj/Iq4BZvkzX/1kN7iGnHsv3 Pu8KOkF4aQyDJaZ3P8PU9nJx7ALLtMRn5NjJ+GLIMFOGwBjcCigf+Q6ZUTp0PuBWIU6J yNoVYl4bg/pi1SvRwz9B32r5HtvHNDa0RM73//bezdmnU3ckn/kYKPu+3Z57VATYOoWH VITQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708703049; x=1709307849; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7/DLuXky9FQDqFdM2qoHQOMo5LuNUVQuzkj5LQTCSNQ=; b=fgKi5dbQ16cDBBND/j0YrSROHesOfF6xRQ1Ew931zhDsuqkIN8cGbWpXTbFq6JE6ZD taEshJs0fG7uIBxA5l1/8+ggYYROvyz8lUqmPa9KEFtO09SzZP2SXKlY9pkIbfYYAjIK DJiqFLPHiMQQ02oHixKYeIlUJncQatBmzsn9VbkXQ5ZN18tp8z5HCNtZiOkh0ErC43E6 6C20SJ/qKqrZgC04WUkt9TKFXmSqMXh3K8VnGYo+GSW+E1pzWoVWxAkxi8jxr8NuEXXX bAR/SbSXA3FwmQf0tg8YB0FPYuC4S963QuwEGioZjkjDq9J0JhHDQAxT9fcgfy6O6Z6p SP1Q== X-Forwarded-Encrypted: i=1; AJvYcCUKB6JlVSVsx4xi+qtRXZhtoGEBmpdxV+SuWMivNiuS32VzJvCeznn7uxDE2VHB3Z5fUox4YUI4hLNjCIvaKQXFUQ22 X-Gm-Message-State: AOJu0Yz7G1QxPAfy/p3cLyevkEPSjg5paO8ZRWXAACDwNa+J+O6un0W8 Q7xl0YhylZ/+FpXlIgfgq6WlaPbdahppPuAAUWzzVYGS3J1BYTnzQS5qYhEB X-Google-Smtp-Source: AGHT+IHVyYaMEkKqeFxrbQOAB26AVwyn89npTd/z2SpZTGmMw3+wCM1gaqH6ZEVR8/1F7W8ev/Z8qw== X-Received: by 2002:a17:903:8c7:b0:1dc:78cc:176a with SMTP id lk7-20020a17090308c700b001dc78cc176amr213178plb.61.1708703049497; Fri, 23 Feb 2024 07:44:09 -0800 (PST) From: Nicholas Piggin To: qemu-devel@nongnu.org Cc: Nicholas Piggin , qemu-ppc@nongnu.org, Daniel Henrique Barboza , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Harsh Prateek Bora , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 14/47] hw/ppc/spapr_hcall: Rename {softmmu -> vhyp_mmu}_resize_hpt_pr Date: Sat, 24 Feb 2024 01:41:33 +1000 Message-ID: <20240223154211.1001692-15-npiggin@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240223154211.1001692-1-npiggin@gmail.com> References: <20240223154211.1001692-1-npiggin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=npiggin@gmail.com; helo=mail-pl1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1708703755169100003 From: Philippe Mathieu-Daud=C3=A9 Since 'softmmu' is quite a loaded term in QEMU, rename the vhyp MMU facilities to use the vhyp_mmu_ prefix rather than softmmu_. vhyp_mmu_ is chosen because the code that manipulates the hash table via guest software hypercalls is QEMU's implementation of the PAPR hypervisor interface, called vhyp. Reviewed-by: Nicholas Piggin Signed-off-by: Philippe Mathieu-Daud=C3=A9 [npiggin: Pick a different name, explain it in changelog.] Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Nicholas Piggin --- hw/ppc/spapr_hcall.c | 4 ++-- hw/ppc/spapr_softmmu.c | 4 ++-- include/hw/ppc/spapr.h | 9 ++++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index 0d7d523e6d..75c2d12978 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -124,7 +124,7 @@ static target_ulong h_resize_hpt_prepare(PowerPCCPU *cp= u, if (kvm_enabled()) { return H_HARDWARE; } else if (tcg_enabled()) { - return softmmu_resize_hpt_prepare(cpu, spapr, shift); + return vhyp_mmu_resize_hpt_prepare(cpu, spapr, shift); } else { g_assert_not_reached(); } @@ -194,7 +194,7 @@ static target_ulong h_resize_hpt_commit(PowerPCCPU *cpu, if (kvm_enabled()) { return H_HARDWARE; } else if (tcg_enabled()) { - return softmmu_resize_hpt_commit(cpu, spapr, flags, shift); + return vhyp_mmu_resize_hpt_commit(cpu, spapr, flags, shift); } else { g_assert_not_reached(); } diff --git a/hw/ppc/spapr_softmmu.c b/hw/ppc/spapr_softmmu.c index 2fade94029..b3dd8b3a59 100644 --- a/hw/ppc/spapr_softmmu.c +++ b/hw/ppc/spapr_softmmu.c @@ -378,7 +378,7 @@ static void cancel_hpt_prepare(SpaprMachineState *spapr) free_pending_hpt(pending); } =20 -target_ulong softmmu_resize_hpt_prepare(PowerPCCPU *cpu, +target_ulong vhyp_mmu_resize_hpt_prepare(PowerPCCPU *cpu, SpaprMachineState *spapr, target_ulong shift) { @@ -562,7 +562,7 @@ static int rehash_hpt(PowerPCCPU *cpu, return H_SUCCESS; } =20 -target_ulong softmmu_resize_hpt_commit(PowerPCCPU *cpu, +target_ulong vhyp_mmu_resize_hpt_commit(PowerPCCPU *cpu, SpaprMachineState *spapr, target_ulong flags, target_ulong shift) diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h index e91791a1a9..5b5ba9ef77 100644 --- a/include/hw/ppc/spapr.h +++ b/include/hw/ppc/spapr.h @@ -634,10 +634,13 @@ void spapr_register_hypercall(target_ulong opcode, sp= apr_hcall_fn fn); target_ulong spapr_hypercall(PowerPCCPU *cpu, target_ulong opcode, target_ulong *args); =20 -target_ulong softmmu_resize_hpt_prepare(PowerPCCPU *cpu, SpaprMachineState= *spapr, +target_ulong vhyp_mmu_resize_hpt_prepare(PowerPCCPU *cpu, + SpaprMachineState *spapr, target_ulong shift); -target_ulong softmmu_resize_hpt_commit(PowerPCCPU *cpu, SpaprMachineState = *spapr, - target_ulong flags, target_ulong s= hift); +target_ulong vhyp_mmu_resize_hpt_commit(PowerPCCPU *cpu, + SpaprMachineState *spapr, + target_ulong flags, + target_ulong shift); bool is_ram_address(SpaprMachineState *spapr, hwaddr addr); void push_sregs_to_kvm_pr(SpaprMachineState *spapr); =20 --=20 2.42.0