mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
cpu: Detect arch when parsing CPU data
A CPU data XML file already contains the architecture, let the parser use it to detect which CPU driver should be used to parse the rest of the file. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
@@ -98,7 +98,7 @@ typedef char *
|
||||
(*cpuArchDataFormat)(const virCPUData *data);
|
||||
|
||||
typedef virCPUDataPtr
|
||||
(*cpuArchDataParse) (const char *xmlStr);
|
||||
(*cpuArchDataParse) (xmlXPathContextPtr ctxt);
|
||||
|
||||
typedef int
|
||||
(*cpuArchGetModels) (char ***models);
|
||||
@@ -207,8 +207,7 @@ cpuGetModels(const char *arch, char ***models)
|
||||
*/
|
||||
char *cpuDataFormat(const virCPUData *data)
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
virCPUDataPtr cpuDataParse(virArch arch,
|
||||
const char *xmlStr)
|
||||
ATTRIBUTE_NONNULL(2);
|
||||
virCPUDataPtr cpuDataParse(const char *xmlStr)
|
||||
ATTRIBUTE_NONNULL(1);
|
||||
|
||||
#endif /* __VIR_CPU_H__ */
|
||||
|
||||
Reference in New Issue
Block a user