|
|
c313de |
From 39da1d7fe9d2bd12c10c40de62c36724556797be Mon Sep 17 00:00:00 2001
|
|
|
c313de |
Message-Id: <39da1d7fe9d2bd12c10c40de62c36724556797be@dist-git>
|
|
|
c313de |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c313de |
Date: Fri, 21 Jun 2019 09:25:28 +0200
|
|
|
c313de |
Subject: [PATCH] cpu_x86: Rename virCPUx86DataAddCPUIDInt
|
|
|
c313de |
MIME-Version: 1.0
|
|
|
c313de |
Content-Type: text/plain; charset=UTF-8
|
|
|
c313de |
Content-Transfer-Encoding: 8bit
|
|
|
c313de |
|
|
|
c313de |
The new name is virCPUx86DataAddItem.
|
|
|
c313de |
|
|
|
c313de |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c313de |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c313de |
(cherry picked from commit ce42042577ada2616a7b062f890677f9797c7bf9)
|
|
|
c313de |
|
|
|
c313de |
https://bugzilla.redhat.com/show_bug.cgi?id=1697627
|
|
|
c313de |
|
|
|
c313de |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c313de |
Message-Id: <631af83ec447522318e8169b0b9ef607b764befa.1561068591.git.jdenemar@redhat.com>
|
|
|
c313de |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c313de |
---
|
|
|
c313de |
src/cpu/cpu_x86.c | 20 ++++++++++----------
|
|
|
c313de |
1 file changed, 10 insertions(+), 10 deletions(-)
|
|
|
c313de |
|
|
|
c313de |
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
|
|
|
c313de |
index efb2a3bb07..7e077577d3 100644
|
|
|
c313de |
--- a/src/cpu/cpu_x86.c
|
|
|
c313de |
+++ b/src/cpu/cpu_x86.c
|
|
|
c313de |
@@ -378,8 +378,8 @@ x86DataCopy(virCPUx86Data *dst, const virCPUx86Data *src)
|
|
|
c313de |
|
|
|
c313de |
|
|
|
c313de |
static int
|
|
|
c313de |
-virCPUx86DataAddCPUIDInt(virCPUx86Data *data,
|
|
|
c313de |
- const virCPUx86DataItem *item)
|
|
|
c313de |
+virCPUx86DataAddItem(virCPUx86Data *data,
|
|
|
c313de |
+ const virCPUx86DataItem *item)
|
|
|
c313de |
{
|
|
|
c313de |
virCPUx86DataItemPtr existing;
|
|
|
c313de |
|
|
|
c313de |
@@ -412,7 +412,7 @@ x86DataAdd(virCPUx86Data *data1,
|
|
|
c313de |
if (item1) {
|
|
|
c313de |
x86cpuidSetBits(&item1->cpuid, &item2->cpuid);
|
|
|
c313de |
} else {
|
|
|
c313de |
- if (virCPUx86DataAddCPUIDInt(data1, item2) < 0)
|
|
|
c313de |
+ if (virCPUx86DataAddItem(data1, item2) < 0)
|
|
|
c313de |
return -1;
|
|
|
c313de |
}
|
|
|
c313de |
}
|
|
|
c313de |
@@ -641,7 +641,7 @@ x86DataAddSignature(virCPUx86Data *data,
|
|
|
c313de |
{
|
|
|
c313de |
virCPUx86DataItem leaf1 = CPUID(.eax_in = 0x1, .eax = signature);
|
|
|
c313de |
|
|
|
c313de |
- return virCPUx86DataAddCPUIDInt(data, &leaf1);
|
|
|
c313de |
+ return virCPUx86DataAddItem(data, &leaf1);
|
|
|
c313de |
}
|
|
|
c313de |
|
|
|
c313de |
|
|
|
c313de |
@@ -948,7 +948,7 @@ x86FeatureParse(xmlXPathContextPtr ctxt,
|
|
|
c313de |
i, feature->name);
|
|
|
c313de |
goto cleanup;
|
|
|
c313de |
}
|
|
|
c313de |
- if (virCPUx86DataAddCPUIDInt(&feature->data, &item))
|
|
|
c313de |
+ if (virCPUx86DataAddItem(&feature->data, &item))
|
|
|
c313de |
goto cleanup;
|
|
|
c313de |
}
|
|
|
c313de |
|
|
|
c313de |
@@ -1664,8 +1664,8 @@ x86Compute(virCPUDefPtr host,
|
|
|
c313de |
goto error;
|
|
|
c313de |
|
|
|
c313de |
if (cpu->vendor && host_model->vendor &&
|
|
|
c313de |
- virCPUx86DataAddCPUIDInt(&guest_model->data,
|
|
|
c313de |
- &host_model->vendor->data) < 0)
|
|
|
c313de |
+ virCPUx86DataAddItem(&guest_model->data,
|
|
|
c313de |
+ &host_model->vendor->data) < 0)
|
|
|
c313de |
goto error;
|
|
|
c313de |
|
|
|
c313de |
if (host_model->signatures &&
|
|
|
c313de |
@@ -2650,7 +2650,7 @@ virCPUx86Baseline(virCPUDefPtr *cpus,
|
|
|
c313de |
}
|
|
|
c313de |
|
|
|
c313de |
if (vendor &&
|
|
|
c313de |
- virCPUx86DataAddCPUIDInt(&base_model->data, &vendor->data) < 0)
|
|
|
c313de |
+ virCPUx86DataAddItem(&base_model->data, &vendor->data) < 0)
|
|
|
c313de |
goto error;
|
|
|
c313de |
|
|
|
c313de |
if (x86Decode(cpu, &base_model->data, models, modelName, migratable) < 0)
|
|
|
c313de |
@@ -2949,7 +2949,7 @@ virCPUx86Translate(virCPUDefPtr cpu,
|
|
|
c313de |
goto cleanup;
|
|
|
c313de |
|
|
|
c313de |
if (model->vendor &&
|
|
|
c313de |
- virCPUx86DataAddCPUIDInt(&model->data, &model->vendor->data) < 0)
|
|
|
c313de |
+ virCPUx86DataAddItem(&model->data, &model->vendor->data) < 0)
|
|
|
c313de |
goto cleanup;
|
|
|
c313de |
|
|
|
c313de |
if (model->signatures &&
|
|
|
c313de |
@@ -3080,7 +3080,7 @@ int
|
|
|
c313de |
virCPUx86DataAddCPUID(virCPUDataPtr cpuData,
|
|
|
c313de |
const virCPUx86DataItem *item)
|
|
|
c313de |
{
|
|
|
c313de |
- return virCPUx86DataAddCPUIDInt(&cpuData->data.x86, item);
|
|
|
c313de |
+ return virCPUx86DataAddItem(&cpuData->data.x86, item);
|
|
|
c313de |
}
|
|
|
c313de |
|
|
|
c313de |
|
|
|
c313de |
--
|
|
|
c313de |
2.22.0
|
|
|
c313de |
|