'virQEMUCapsAddCPUDefinitions' is used solely to populate fake cpu
models for the fake-caps tests. Note that and also populate the 'type'
field so that default cpu type can be propagated properly.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
}
+/* Note that this function is invoked only by test code for faking supported cpu
+ * models */
int
virQEMUCapsAddCPUDefinitions(virQEMUCaps *qemuCaps,
virDomainVirtType type,
cpu->usable = usable;
cpu->name = g_strdup(name[i]);
+ /* while the type name doesn't correspond with reality, this is just for fake cpu models */
+ cpu->type = g_strdup(name[i]);
}
return 0;