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