提交 661307b4 编写于 作者: J Jiri Denemark

cpu_x86: Add virCPUx86DataGetSignature for tests

The function exports the functionality of x86DataToSignatureFull and
x86MakeSignature to the test suite.
Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 793a9293
...@@ -3070,6 +3070,18 @@ virCPUx86DataSetSignature(virCPUDataPtr cpuData, ...@@ -3070,6 +3070,18 @@ virCPUx86DataSetSignature(virCPUDataPtr cpuData,
} }
uint32_t
virCPUx86DataGetSignature(virCPUDataPtr cpuData,
unsigned int *family,
unsigned int *model,
unsigned int *stepping)
{
x86DataToSignatureFull(&cpuData->data.x86, family, model, stepping);
return x86MakeSignature(*family, *model, *stepping);
}
int int
virCPUx86DataSetVendor(virCPUDataPtr cpuData, virCPUx86DataSetVendor(virCPUDataPtr cpuData,
const char *vendor) const char *vendor)
......
...@@ -34,6 +34,11 @@ int virCPUx86DataSetSignature(virCPUDataPtr cpuData, ...@@ -34,6 +34,11 @@ int virCPUx86DataSetSignature(virCPUDataPtr cpuData,
unsigned int model, unsigned int model,
unsigned int stepping); unsigned int stepping);
uint32_t virCPUx86DataGetSignature(virCPUDataPtr cpuData,
unsigned int *family,
unsigned int *model,
unsigned int *stepping);
int virCPUx86DataSetVendor(virCPUDataPtr cpuData, int virCPUx86DataSetVendor(virCPUDataPtr cpuData,
const char *vendor); const char *vendor);
......
...@@ -1210,6 +1210,7 @@ virCPUValidateFeatures; ...@@ -1210,6 +1210,7 @@ virCPUValidateFeatures;
# cpu/cpu_x86.h # cpu/cpu_x86.h
virCPUx86DataAddCPUID; virCPUx86DataAddCPUID;
virCPUx86DataAddFeature; virCPUx86DataAddFeature;
virCPUx86DataGetSignature;
virCPUx86DataSetSignature; virCPUx86DataSetSignature;
virCPUx86DataSetVendor; virCPUx86DataSetVendor;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册