pc-dimm: rename pc_dimm_memory_* to pc_dimm_*
Let's rename it to make it look more consistent. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20180619134141.29478-4-david@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
bb6e2f7a54
commit
284878ee98
@ -1713,7 +1713,7 @@ static void pc_memory_plug(HotplugHandler *hotplug_dev,
|
||||
goto out;
|
||||
}
|
||||
|
||||
pc_dimm_memory_plug(dev, MACHINE(pcms), align, &local_err);
|
||||
pc_dimm_plug(dev, MACHINE(pcms), align, &local_err);
|
||||
if (local_err) {
|
||||
goto out;
|
||||
}
|
||||
@ -1773,7 +1773,7 @@ static void pc_memory_unplug(HotplugHandler *hotplug_dev,
|
||||
goto out;
|
||||
}
|
||||
|
||||
pc_dimm_memory_unplug(dev, MACHINE(pcms));
|
||||
pc_dimm_unplug(dev, MACHINE(pcms));
|
||||
object_unparent(OBJECT(dev));
|
||||
|
||||
out:
|
||||
|
@ -27,8 +27,8 @@
|
||||
#include "sysemu/numa.h"
|
||||
#include "trace.h"
|
||||
|
||||
void pc_dimm_memory_plug(DeviceState *dev, MachineState *machine,
|
||||
uint64_t align, Error **errp)
|
||||
void pc_dimm_plug(DeviceState *dev, MachineState *machine, uint64_t align,
|
||||
Error **errp)
|
||||
{
|
||||
int slot;
|
||||
PCDIMMDevice *dimm = PC_DIMM(dev);
|
||||
@ -84,7 +84,7 @@ out:
|
||||
error_propagate(errp, local_err);
|
||||
}
|
||||
|
||||
void pc_dimm_memory_unplug(DeviceState *dev, MachineState *machine)
|
||||
void pc_dimm_unplug(DeviceState *dev, MachineState *machine)
|
||||
{
|
||||
PCDIMMDevice *dimm = PC_DIMM(dev);
|
||||
PCDIMMDeviceClass *ddc = PC_DIMM_GET_CLASS(dimm);
|
||||
|
@ -3160,7 +3160,7 @@ static void spapr_memory_plug(HotplugHandler *hotplug_dev, DeviceState *dev,
|
||||
align = memory_region_get_alignment(mr);
|
||||
size = memory_region_size(mr);
|
||||
|
||||
pc_dimm_memory_plug(dev, MACHINE(ms), align, &local_err);
|
||||
pc_dimm_plug(dev, MACHINE(ms), align, &local_err);
|
||||
if (local_err) {
|
||||
goto out;
|
||||
}
|
||||
@ -3183,7 +3183,7 @@ static void spapr_memory_plug(HotplugHandler *hotplug_dev, DeviceState *dev,
|
||||
return;
|
||||
|
||||
out_unplug:
|
||||
pc_dimm_memory_unplug(dev, MACHINE(ms));
|
||||
pc_dimm_unplug(dev, MACHINE(ms));
|
||||
out:
|
||||
error_propagate(errp, local_err);
|
||||
}
|
||||
@ -3332,7 +3332,7 @@ static void spapr_memory_unplug(HotplugHandler *hotplug_dev, DeviceState *dev)
|
||||
sPAPRMachineState *spapr = SPAPR_MACHINE(hotplug_dev);
|
||||
sPAPRDIMMState *ds = spapr_pending_dimm_unplugs_find(spapr, PC_DIMM(dev));
|
||||
|
||||
pc_dimm_memory_unplug(dev, MACHINE(hotplug_dev));
|
||||
pc_dimm_unplug(dev, MACHINE(hotplug_dev));
|
||||
object_unparent(OBJECT(dev));
|
||||
spapr_pending_dimm_unplugs_remove(spapr, ds);
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ typedef struct PCDIMMDeviceClass {
|
||||
|
||||
int pc_dimm_get_free_slot(const int *hint, int max_slots, Error **errp);
|
||||
|
||||
void pc_dimm_memory_plug(DeviceState *dev, MachineState *machine,
|
||||
uint64_t align, Error **errp);
|
||||
void pc_dimm_memory_unplug(DeviceState *dev, MachineState *machine);
|
||||
void pc_dimm_plug(DeviceState *dev, MachineState *machine, uint64_t align,
|
||||
Error **errp);
|
||||
void pc_dimm_unplug(DeviceState *dev, MachineState *machine);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user