[PATCH 13/36] cpu_x86: Rename virCPUx86DataAddCPUID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's called virCPUx86DataAdd now.

Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
 src/cpu/cpu_x86.c              | 46 +++++++++++++++++-----------------
 src/cpu/cpu_x86.h              |  4 +--
 src/libvirt_private.syms       |  2 +-
 src/libxl/libxl_capabilities.c |  2 +-
 src/qemu/qemu_monitor_json.c   |  2 +-
 5 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index 21f58a8c3f..492839496e 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -1506,7 +1506,7 @@ virCPUx86DataParse(xmlXPathContextPtr ctxt)
                            _("failed to parse cpuid[%zu]"), i);
             goto error;
         }
-        if (virCPUx86DataAddCPUID(cpuData, &item) < 0)
+        if (virCPUx86DataAdd(cpuData, &item) < 0)
             goto error;
     }
 
@@ -2154,7 +2154,7 @@ x86Encode(virArch arch,
         if (!(data_vendor = virCPUDataNew(arch)))
             goto error;
 
-        if (v && virCPUx86DataAddCPUID(data_vendor, &v->data) < 0)
+        if (v && virCPUx86DataAdd(data_vendor, &v->data) < 0)
             goto error;
     }
 
@@ -2230,13 +2230,13 @@ cpuidSetLeaf4(virCPUDataPtr data,
     virCPUx86DataItem item = *subLeaf0;
     virCPUx86CPUIDPtr cpuid = &item.cpuid;
 
-    if (virCPUx86DataAddCPUID(data, subLeaf0) < 0)
+    if (virCPUx86DataAdd(data, subLeaf0) < 0)
         return -1;
 
     while (cpuid->eax & 0x1f) {
         cpuid->ecx_in++;
         cpuidCall(cpuid);
-        if (virCPUx86DataAddCPUID(data, &item) < 0)
+        if (virCPUx86DataAdd(data, &item) < 0)
             return -1;
     }
     return 0;
@@ -2255,13 +2255,13 @@ cpuidSetLeaf7(virCPUDataPtr data,
     virCPUx86CPUIDPtr cpuid = &item.cpuid;
     uint32_t sub;
 
-    if (virCPUx86DataAddCPUID(data, subLeaf0) < 0)
+    if (virCPUx86DataAdd(data, subLeaf0) < 0)
         return -1;
 
     for (sub = 1; sub <= subLeaf0->cpuid.eax; sub++) {
         cpuid->ecx_in = sub;
         cpuidCall(cpuid);
-        if (virCPUx86DataAddCPUID(data, &item) < 0)
+        if (virCPUx86DataAdd(data, &item) < 0)
             return -1;
     }
     return 0;
@@ -2283,7 +2283,7 @@ cpuidSetLeafB(virCPUDataPtr data,
     virCPUx86CPUIDPtr cpuid = &item.cpuid;
 
     while (cpuid->ecx & 0xff00) {
-        if (virCPUx86DataAddCPUID(data, &item) < 0)
+        if (virCPUx86DataAdd(data, &item) < 0)
             return -1;
         cpuid->ecx_in++;
         cpuidCall(cpuid);
@@ -2310,12 +2310,12 @@ cpuidSetLeafD(virCPUDataPtr data,
     virCPUx86CPUID sub1;
     uint32_t sub;
 
-    if (virCPUx86DataAddCPUID(data, subLeaf0) < 0)
+    if (virCPUx86DataAdd(data, subLeaf0) < 0)
         return -1;
 
     cpuid->ecx_in = 1;
     cpuidCall(cpuid);
-    if (virCPUx86DataAddCPUID(data, &item) < 0)
+    if (virCPUx86DataAdd(data, &item) < 0)
         return -1;
 
     sub0 = subLeaf0->cpuid;
@@ -2332,7 +2332,7 @@ cpuidSetLeafD(virCPUDataPtr data,
 
         cpuid->ecx_in = sub;
         cpuidCall(cpuid);
-        if (virCPUx86DataAddCPUID(data, &item) < 0)
+        if (virCPUx86DataAdd(data, &item) < 0)
             return -1;
     }
     return 0;
@@ -2357,7 +2357,7 @@ cpuidSetLeafResID(virCPUDataPtr data,
     virCPUx86CPUIDPtr cpuid = &item.cpuid;
     uint32_t sub;
 
-    if (virCPUx86DataAddCPUID(data, subLeaf0) < 0)
+    if (virCPUx86DataAdd(data, subLeaf0) < 0)
         return -1;
 
     for (sub = 1; sub < 32; sub++) {
@@ -2365,7 +2365,7 @@ cpuidSetLeafResID(virCPUDataPtr data,
             continue;
         cpuid->ecx_in = sub;
         cpuidCall(cpuid);
-        if (virCPUx86DataAddCPUID(data, &item) < 0)
+        if (virCPUx86DataAdd(data, &item) < 0)
             return -1;
     }
     return 0;
@@ -2389,19 +2389,19 @@ cpuidSetLeaf12(virCPUDataPtr data,
         !(leaf7->cpuid.ebx & (1 << 2)))
         return 0;
 
-    if (virCPUx86DataAddCPUID(data, subLeaf0) < 0)
+    if (virCPUx86DataAdd(data, subLeaf0) < 0)
         return -1;
 
     cpuid->eax_in = 0x12;
     cpuid->ecx_in = 1;
     cpuidCall(cpuid);
-    if (virCPUx86DataAddCPUID(data, &item) < 0)
+    if (virCPUx86DataAdd(data, &item) < 0)
         return -1;
 
     cpuid->ecx_in = 2;
     cpuidCall(cpuid);
     while (cpuid->eax & 0xf) {
-        if (virCPUx86DataAddCPUID(data, &item) < 0)
+        if (virCPUx86DataAdd(data, &item) < 0)
             return -1;
         cpuid->ecx_in++;
         cpuidCall(cpuid);
@@ -2422,13 +2422,13 @@ cpuidSetLeaf14(virCPUDataPtr data,
     virCPUx86CPUIDPtr cpuid = &item.cpuid;
     uint32_t sub;
 
-    if (virCPUx86DataAddCPUID(data, subLeaf0) < 0)
+    if (virCPUx86DataAdd(data, subLeaf0) < 0)
         return -1;
 
     for (sub = 1; sub <= subLeaf0->cpuid.eax; sub++) {
         cpuid->ecx_in = sub;
         cpuidCall(cpuid);
-        if (virCPUx86DataAddCPUID(data, &item) < 0)
+        if (virCPUx86DataAdd(data, &item) < 0)
             return -1;
     }
     return 0;
@@ -2451,13 +2451,13 @@ cpuidSetLeaf17(virCPUDataPtr data,
     if (subLeaf0->cpuid.eax < 3)
         return 0;
 
-    if (virCPUx86DataAddCPUID(data, subLeaf0) < 0)
+    if (virCPUx86DataAdd(data, subLeaf0) < 0)
         return -1;
 
     for (sub = 1; sub <= subLeaf0->cpuid.eax; sub++) {
         cpuid->ecx_in = sub;
         cpuidCall(cpuid);
-        if (virCPUx86DataAddCPUID(data, &item) < 0)
+        if (virCPUx86DataAdd(data, &item) < 0)
             return -1;
     }
     return 0;
@@ -2503,7 +2503,7 @@ cpuidSet(uint32_t base, virCPUDataPtr data)
         else if (leaf == 0x17)
             rc = cpuidSetLeaf17(data, &item);
         else
-            rc = virCPUx86DataAddCPUID(data, &item);
+            rc = virCPUx86DataAdd(data, &item);
 
         if (rc < 0)
             return -1;
@@ -3078,8 +3078,8 @@ virCPUx86ValidateFeatures(virCPUDefPtr cpu)
 
 
 int
-virCPUx86DataAddCPUID(virCPUDataPtr cpuData,
-                      const virCPUx86DataItem *item)
+virCPUx86DataAdd(virCPUDataPtr cpuData,
+                 const virCPUx86DataItem *item)
 {
     return virCPUx86DataAddItem(&cpuData->data.x86, item);
 }
@@ -3118,7 +3118,7 @@ virCPUx86DataSetVendor(virCPUDataPtr cpuData,
     if (virCPUx86VendorToCPUID(vendor, &item) < 0)
         return -1;
 
-    return virCPUx86DataAddCPUID(cpuData, &item);
+    return virCPUx86DataAdd(cpuData, &item);
 }
 
 
diff --git a/src/cpu/cpu_x86.h b/src/cpu/cpu_x86.h
index 166d4703aa..cd44cbe4f3 100644
--- a/src/cpu/cpu_x86.h
+++ b/src/cpu/cpu_x86.h
@@ -26,8 +26,8 @@
 
 extern struct cpuArchDriver cpuDriverX86;
 
-int virCPUx86DataAddCPUID(virCPUDataPtr cpuData,
-                          const virCPUx86DataItem *cpuid);
+int virCPUx86DataAdd(virCPUDataPtr cpuData,
+                     const virCPUx86DataItem *cpuid);
 
 int virCPUx86DataSetSignature(virCPUDataPtr cpuData,
                               unsigned int family,
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 212adf53c1..132ee3cae9 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -1238,7 +1238,7 @@ virCPUValidateFeatures;
 
 
 # cpu/cpu_x86.h
-virCPUx86DataAddCPUID;
+virCPUx86DataAdd;
 virCPUx86DataAddFeature;
 virCPUx86DataGetSignature;
 virCPUx86DataSetSignature;
diff --git a/src/libxl/libxl_capabilities.c b/src/libxl/libxl_capabilities.c
index c19d05326d..7ab556af3c 100644
--- a/src/libxl/libxl_capabilities.c
+++ b/src/libxl/libxl_capabilities.c
@@ -72,7 +72,7 @@ libxlCapsAddCPUID(virCPUDataPtr data, virCPUx86CPUID *cpuid, ssize_t ncaps)
     for (i = 0; i < ncaps; i++) {
         item.cpuid = cpuid[i];
 
-        if (virCPUx86DataAddCPUID(data, &item) < 0) {
+        if (virCPUx86DataAdd(data, &item) < 0) {
             VIR_DEBUG("Failed to add CPUID(%x,%x)",
                       cpuid[i].eax_in, cpuid[i].ecx_in);
             return -1;
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index bee1b33f2a..a9ba6cf4f6 100644
--- a/src/qemu/qemu_monitor_json.c
+++ b/src/qemu/qemu_monitor_json.c
@@ -7195,7 +7195,7 @@ qemuMonitorJSONParseCPUx86Features(virJSONValuePtr data)
     for (i = 0; i < virJSONValueArraySize(data); i++) {
         if (qemuMonitorJSONParseCPUx86FeatureWord(virJSONValueArrayGet(data, i),
                                                   &item.cpuid) < 0 ||
-            virCPUx86DataAddCPUID(cpudata, &item) < 0)
+            virCPUx86DataAdd(cpudata, &item) < 0)
             goto error;
     }
 
-- 
2.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux