Skip to contentSkip to conversation

pc-dimm: Add description for device list.

PATCH Superseded Paulo Vital 2 participants 2 messages Mar 10, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pc-dimm: Add description for device list.

The pc-dimm option presented on device list (by argument "-device \?") is the unique option that don't have any information about it. This patch adds a description for the pc-dimm device to help users to identify it.

---
 hw/mem/pc-dimm.c | 1 +
 1 file changed, 1 insertion(+)
hw/mem/pc-dimm.c +1 -0
index de81b9c..d3f7b5b 100644
@@ -351,6 +351,7 @@ static void pc_dimm_class_init(ObjectClass *oc, void *data)
 
     dc->realize = pc_dimm_realize;
     dc->props = pc_dimm_properties;
+    dc->desc = "Dimm device for Memory Hotplug";
 
     ddc->get_memory_region = pc_dimm_get_memory_region;
 }
Signature · 1 line
2.1.4
#1 lore raw
Quoted 15 lines · On Tue, 10 Mar 2015 11:42:57 +0100 Paulo Vital <[email protected]>…

The pc-dimm option presented on device list (by argument "-device \?") is the unique option that don't have any information about it. This patch adds a description for the pc-dimm device to help users to identify it.

---
 hw/mem/pc-dimm.c | 1 +
 1 file changed, 1 insertion(+)
hw/mem/pc-dimm.c +0 -0
index de81b9c..d3f7b5b 100644

hw/mem/pc-dimm.c static void pc_dimm_class_init(ObjectClass *oc, void *data) · line 354

Quoted 4 lines
hw/mem/pc-dimm.c +1 -0
@@ -351,6 +351,7 @@ static void pc_dimm_class_init(ObjectClass *oc, void *data)
 
     dc->realize = pc_dimm_realize;
     dc->props = pc_dimm_properties;
+    dc->desc = "Dimm device for Memory Hotplug";

it's not necessarily only for hotplug, I'd suggest:
"DIMM memory module"

Quoted 3 lines
hw/mem/pc-dimm.c +0 -0
     ddc->get_memory_region = pc_dimm_get_memory_region;
 }