提交 80a59b4a 编写于 作者: P Peter Krempa

conf: Turn def->maxvcpus into size_t

Later on this will also be used to track size of the vcpu data array.
Use size_t so that we can utilize the memory allocation helpers.
上级 71c89ac9
......@@ -1317,7 +1317,7 @@ virDomainDefSetVcpus(virDomainDefPtr def,
{
if (vcpus > def->maxvcpus) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("maxvcpus must not be less than current vcpus (%u < %u)"),
_("maxvcpus must not be less than current vcpus (%u < %zu)"),
vcpus, def->maxvcpus);
return -1;
}
......
......@@ -2219,7 +2219,7 @@ struct _virDomainDef {
virDomainMemtune mem;
unsigned int vcpus;
unsigned int maxvcpus;
size_t maxvcpus;
int placement_mode;
virBitmapPtr cpumask;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册