From: Jiri Denemark <jdenemar(a)redhat.com>
This makes virCPUx86DataAddCPUID, virCPUx86DataFree, and
virCPUx86MakeData available for direct usage outside of cpu driver.
---
src/cpu/cpu_x86.c | 6 +++---
src/cpu/cpu_x86.h | 9 +++++++++
src/libvirt_private.syms | 6 ++++++
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index 8427555..539d8b2 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -203,7 +203,7 @@ x86DataCpuid(const virCPUx86Data *data,
}
-static void
+void
virCPUx86DataFree(virCPUx86Data *data)
{
if (data == NULL)
@@ -215,7 +215,7 @@ virCPUx86DataFree(virCPUx86Data *data)
}
-static virCPUDataPtr
+virCPUDataPtr
virCPUx86MakeData(virArch arch, virCPUx86Data **data)
{
virCPUDataPtr cpuData;
@@ -295,7 +295,7 @@ x86DataExpand(virCPUx86Data *data,
}
-static int
+int
virCPUx86DataAddCPUID(virCPUx86Data *data,
const virCPUx86CPUID *cpuid)
{
diff --git a/src/cpu/cpu_x86.h b/src/cpu/cpu_x86.h
index 77965b7..af0fa23 100644
--- a/src/cpu/cpu_x86.h
+++ b/src/cpu/cpu_x86.h
@@ -25,7 +25,16 @@
# define __VIR_CPU_X86_H__
# include "cpu.h"
+# include "cpu_x86_data.h"
extern struct cpuArchDriver cpuDriverX86;
+int virCPUx86DataAddCPUID(virCPUx86Data *data,
+ const virCPUx86CPUID *cpuid);
+
+void virCPUx86DataFree(virCPUx86Data *data);
+
+virCPUDataPtr virCPUx86MakeData(virArch arch,
+ virCPUx86Data **data);
+
#endif /* __VIR_CPU_X86_H__ */
diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
index 84c1c28..cb80700 100644
--- a/src/libvirt_private.syms
+++ b/src/libvirt_private.syms
@@ -733,6 +733,12 @@ cpuNodeData;
cpuUpdate;
+# cpu/cpu_x86.h
+virCPUx86DataAddCPUID;
+virCPUx86DataFree;
+virCPUx86MakeData;
+
+
# datatypes.h
virConnectClass;
virDomainClass;
--
1.8.3.2