From nobody Sun Feb 8 22:34:03 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1524502703917652.0417227962533; Mon, 23 Apr 2018 09:58:23 -0700 (PDT) Received: from localhost ([::1]:54544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAenC-00040O-3B for importer@patchew.org; Mon, 23 Apr 2018 12:58:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fAehI-0007nw-KD for qemu-devel@nongnu.org; Mon, 23 Apr 2018 12:52:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fAehH-0008T1-NL for qemu-devel@nongnu.org; Mon, 23 Apr 2018 12:52:12 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51430 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fAehH-0008SX-Ho; Mon, 23 Apr 2018 12:52:11 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0CAF4FA46C; Mon, 23 Apr 2018 16:52:11 +0000 (UTC) Received: from t460s.redhat.com (unknown [10.36.118.87]) by smtp.corp.redhat.com (Postfix) with ESMTP id A07EB7C5E; Mon, 23 Apr 2018 16:52:06 +0000 (UTC) From: David Hildenbrand To: qemu-devel@nongnu.org Date: Mon, 23 Apr 2018 18:51:23 +0200 Message-Id: <20180423165126.15441-9-david@redhat.com> In-Reply-To: <20180423165126.15441-1-david@redhat.com> References: <20180423165126.15441-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 23 Apr 2018 16:52:11 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 23 Apr 2018 16:52:11 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.187.233.73 Subject: [Qemu-devel] [PATCH v4 08/11] machine: rename MemoryHotplugState to DeviceMemoryState X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pankaj Gupta , Eduardo Habkost , "Michael S . Tsirkin" , David Hildenbrand , Markus Armbruster , Alexander Graf , qemu-s390x@nongnu.org, qemu-ppc@nongnu.org, Paolo Bonzini , Marcel Apfelbaum , Igor Mammedov , David Gibson , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Rename it to better match the new terminology. Signed-off-by: David Hildenbrand --- hw/ppc/spapr_hcall.c | 6 +++--- hw/ppc/spapr_rtas_ddw.c | 5 ++--- include/hw/boards.h | 8 ++++---- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/hw/ppc/spapr_hcall.c b/hw/ppc/spapr_hcall.c index e99686389d..3b3d927c98 100644 --- a/hw/ppc/spapr_hcall.c +++ b/hw/ppc/spapr_hcall.c @@ -64,13 +64,13 @@ static inline bool valid_ptex(PowerPCCPU *cpu, target_u= long ptex) static bool is_ram_address(sPAPRMachineState *spapr, hwaddr addr) { MachineState *machine =3D MACHINE(spapr); - MemoryHotplugState *hpms =3D machine->device_memory; + DeviceMemoryState *dms =3D machine->device_memory; =20 if (addr < machine->ram_size) { return true; } - if ((addr >=3D hpms->base) - && ((addr - hpms->base) < memory_region_size(&hpms->mr))) { + if ((addr >=3D dms->base) + && ((addr - dms->base) < memory_region_size(&dms->mr))) { return true; } =20 diff --git a/hw/ppc/spapr_rtas_ddw.c b/hw/ppc/spapr_rtas_ddw.c index d3666c1921..329feb148f 100644 --- a/hw/ppc/spapr_rtas_ddw.c +++ b/hw/ppc/spapr_rtas_ddw.c @@ -122,9 +122,8 @@ static void rtas_ibm_query_pe_dma_window(PowerPCCPU *cp= u, if (machine->ram_size =3D=3D machine->maxram_size) { max_window_size =3D machine->ram_size; } else { - MemoryHotplugState *hpms =3D machine->device_memory; - - max_window_size =3D hpms->base + memory_region_size(&hpms->mr); + max_window_size =3D machine->device_memory->base + + memory_region_size(&machine->device_memory->mr); } =20 avail =3D SPAPR_PCI_DMA_MAX_WINDOWS - spapr_phb_get_active_win_num(sph= b); diff --git a/include/hw/boards.h b/include/hw/boards.h index ffc1ee782f..8748964e6f 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -215,15 +215,15 @@ struct MachineClass { }; =20 /** - * MemoryHotplugState: + * DeviceMemoryState: * @base: address in guest physical address space where the memory * address space for memory devices starts * @mr: address space container for memory devices */ -typedef struct MemoryHotplugState { +typedef struct DeviceMemoryState { hwaddr base; MemoryRegion mr; -} MemoryHotplugState; +} DeviceMemoryState; =20 /** * MachineState: @@ -255,7 +255,7 @@ struct MachineState { bool enforce_config_section; bool enable_graphics; char *memory_encryption; - MemoryHotplugState *device_memory; + DeviceMemoryState *device_memory; =20 ram_addr_t ram_size; ram_addr_t maxram_size; --=20 2.14.3