]> Git Repo - qemu.git/commitdiff
machine: rename MemoryHotplugState to DeviceMemoryState
authorDavid Hildenbrand <[email protected]>
Mon, 23 Apr 2018 16:51:23 +0000 (18:51 +0200)
committerEduardo Habkost <[email protected]>
Mon, 7 May 2018 13:00:02 +0000 (10:00 -0300)
Rename it to better match the new terminology.

Signed-off-by: David Hildenbrand <[email protected]>
Message-Id: <20180423165126[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Eduardo Habkost <[email protected]>
hw/ppc/spapr_hcall.c
hw/ppc/spapr_rtas_ddw.c
include/hw/boards.h

index 52b8f4095536e01debc7b17bbc50fddb30bfd967..022f6d8101822e937988d24ec7d5521e7feefdf9 100644 (file)
@@ -67,13 +67,13 @@ static inline bool valid_ptex(PowerPCCPU *cpu, target_ulong ptex)
 static bool is_ram_address(sPAPRMachineState *spapr, hwaddr addr)
 {
     MachineState *machine = MACHINE(spapr);
-    MemoryHotplugState *hpms = machine->device_memory;
+    DeviceMemoryState *dms = machine->device_memory;
 
     if (addr < machine->ram_size) {
         return true;
     }
-    if ((addr >= hpms->base)
-        && ((addr - hpms->base) < memory_region_size(&hpms->mr))) {
+    if ((addr >= dms->base)
+        && ((addr - dms->base) < memory_region_size(&dms->mr))) {
         return true;
     }
 
index d3666c192145412d66a2999d40458abd71b543ff..329feb148fbf0f4c664b660cabfdc4e81a6d7180 100644 (file)
@@ -122,9 +122,8 @@ static void rtas_ibm_query_pe_dma_window(PowerPCCPU *cpu,
     if (machine->ram_size == machine->maxram_size) {
         max_window_size = machine->ram_size;
     } else {
-        MemoryHotplugState *hpms = machine->device_memory;
-
-        max_window_size = hpms->base + memory_region_size(&hpms->mr);
+        max_window_size = machine->device_memory->base +
+                          memory_region_size(&machine->device_memory->mr);
     }
 
     avail = SPAPR_PCI_DMA_MAX_WINDOWS - spapr_phb_get_active_win_num(sphb);
index e27c28b514abb98d1511b2a88679d1322c2c3a7a..ef7457f5dde3bee59e0e1a3cbf7404ea40bb57dc 100644 (file)
@@ -214,15 +214,15 @@ struct MachineClass {
 };
 
 /**
- * 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;
 
 /**
  * MachineState:
@@ -254,7 +254,7 @@ struct MachineState {
     bool enforce_config_section;
     bool enable_graphics;
     char *memory_encryption;
-    MemoryHotplugState *device_memory;
+    DeviceMemoryState *device_memory;
 
     ram_addr_t ram_size;
     ram_addr_t maxram_size;
This page took 0.034244 seconds and 4 git commands to generate.