|
|
6ae9ed |
From 847361f1eeda21c6dd8dcf73821b4ecf341095b1 Mon Sep 17 00:00:00 2001
|
|
|
6ae9ed |
Message-Id: <847361f1eeda21c6dd8dcf73821b4ecf341095b1@dist-git>
|
|
|
6ae9ed |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
6ae9ed |
Date: Wed, 24 Aug 2016 16:10:44 -0400
|
|
|
6ae9ed |
Subject: [PATCH] conf: Rename virDomainVcpuInfoPtr to virDomainVcpuDefPtr
|
|
|
6ae9ed |
|
|
|
6ae9ed |
https://bugzilla.redhat.com/show_bug.cgi?id=1097930
|
|
|
6ae9ed |
https://bugzilla.redhat.com/show_bug.cgi?id=1224341
|
|
|
6ae9ed |
|
|
|
6ae9ed |
(cherry picked from commit c7d5dd3974df1edb6a1cd8fce989eea43d72527f)
|
|
|
6ae9ed |
---
|
|
|
6ae9ed |
src/conf/domain_conf.c | 22 +++++++++++-----------
|
|
|
6ae9ed |
src/conf/domain_conf.h | 10 +++++-----
|
|
|
6ae9ed |
src/libxl/libxl_domain.c | 2 +-
|
|
|
6ae9ed |
src/libxl/libxl_driver.c | 2 +-
|
|
|
6ae9ed |
src/qemu/qemu_cgroup.c | 2 +-
|
|
|
6ae9ed |
src/qemu/qemu_driver.c | 14 +++++++-------
|
|
|
6ae9ed |
src/qemu/qemu_process.c | 4 ++--
|
|
|
6ae9ed |
src/test/test_driver.c | 4 ++--
|
|
|
6ae9ed |
src/vz/vz_sdk.c | 2 +-
|
|
|
6ae9ed |
9 files changed, 31 insertions(+), 31 deletions(-)
|
|
|
6ae9ed |
|
|
|
6ae9ed |
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
|
|
|
6ae9ed |
index 9571ee3..a923b60 100644
|
|
|
6ae9ed |
--- a/src/conf/domain_conf.c
|
|
|
6ae9ed |
+++ b/src/conf/domain_conf.c
|
|
|
6ae9ed |
@@ -1313,7 +1313,7 @@ void virDomainLeaseDefFree(virDomainLeaseDefPtr def)
|
|
|
6ae9ed |
|
|
|
6ae9ed |
|
|
|
6ae9ed |
static void
|
|
|
6ae9ed |
-virDomainVcpuInfoClear(virDomainVcpuInfoPtr info)
|
|
|
6ae9ed |
+virDomainVcpuDefClear(virDomainVcpuDefPtr info)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
if (!info)
|
|
|
6ae9ed |
return;
|
|
|
6ae9ed |
@@ -1337,7 +1337,7 @@ virDomainDefSetVcpusMax(virDomainDefPtr def,
|
|
|
6ae9ed |
return -1;
|
|
|
6ae9ed |
} else {
|
|
|
6ae9ed |
for (i = maxvcpus; i < def->maxvcpus; i++)
|
|
|
6ae9ed |
- virDomainVcpuInfoClear(&def->vcpus[i]);
|
|
|
6ae9ed |
+ virDomainVcpuDefClear(&def->vcpus[i]);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
VIR_SHRINK_N(def->vcpus, def->maxvcpus, def->maxvcpus - maxvcpus);
|
|
|
6ae9ed |
}
|
|
|
6ae9ed |
@@ -1429,7 +1429,7 @@ virDomainDefGetOnlineVcpumap(const virDomainDef *def)
|
|
|
6ae9ed |
}
|
|
|
6ae9ed |
|
|
|
6ae9ed |
|
|
|
6ae9ed |
-virDomainVcpuInfoPtr
|
|
|
6ae9ed |
+virDomainVcpuDefPtr
|
|
|
6ae9ed |
virDomainDefGetVcpu(virDomainDefPtr def,
|
|
|
6ae9ed |
unsigned int vcpu)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
@@ -1448,7 +1448,7 @@ static virDomainThreadSchedParamPtr
|
|
|
6ae9ed |
virDomainDefGetVcpuSched(virDomainDefPtr def,
|
|
|
6ae9ed |
unsigned int vcpu)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpuinfo;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpuinfo;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (!(vcpuinfo = virDomainDefGetVcpu(def, vcpu)))
|
|
|
6ae9ed |
return NULL;
|
|
|
6ae9ed |
@@ -1514,7 +1514,7 @@ virDomainDefGetVcpuPinInfoHelper(virDomainDefPtr def,
|
|
|
6ae9ed |
virBitmapSetAll(allcpumap);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < maxvcpus && i < ncpumaps; i++) {
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu = virDomainDefGetVcpu(def, i);
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu = virDomainDefGetVcpu(def, i);
|
|
|
6ae9ed |
virBitmapPtr bitmap = NULL;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (vcpu->cpumask)
|
|
|
6ae9ed |
@@ -2530,7 +2530,7 @@ void virDomainDefFree(virDomainDefPtr def)
|
|
|
6ae9ed |
virDomainResourceDefFree(def->resource);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < def->maxvcpus; i++)
|
|
|
6ae9ed |
- virDomainVcpuInfoClear(&def->vcpus[i]);
|
|
|
6ae9ed |
+ virDomainVcpuDefClear(&def->vcpus[i]);
|
|
|
6ae9ed |
VIR_FREE(def->vcpus);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
/* hostdevs must be freed before nets (or any future "intelligent
|
|
|
6ae9ed |
@@ -4270,7 +4270,7 @@ static void
|
|
|
6ae9ed |
virDomainDefRemoveOfflineVcpuPin(virDomainDefPtr def)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
size_t i;
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < virDomainDefGetVcpusMax(def); i++) {
|
|
|
6ae9ed |
vcpu = virDomainDefGetVcpu(def, i);
|
|
|
6ae9ed |
@@ -14975,7 +14975,7 @@ static int
|
|
|
6ae9ed |
virDomainVcpuPinDefParseXML(virDomainDefPtr def,
|
|
|
6ae9ed |
xmlNodePtr node)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu;
|
|
|
6ae9ed |
unsigned int vcpuid;
|
|
|
6ae9ed |
char *tmp = NULL;
|
|
|
6ae9ed |
int ret = -1;
|
|
|
6ae9ed |
@@ -18638,8 +18638,8 @@ virDomainDefVcpuCheckAbiStability(virDomainDefPtr src,
|
|
|
6ae9ed |
}
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < src->maxvcpus; i++) {
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr svcpu = &src->vcpus[i];
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr dvcpu = &dst->vcpus[i];
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr svcpu = &src->vcpus[i];
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr dvcpu = &dst->vcpus[i];
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (svcpu->online != dvcpu->online) {
|
|
|
6ae9ed |
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
|
|
6ae9ed |
@@ -22823,7 +22823,7 @@ virDomainCputuneDefFormat(virBufferPtr buf,
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < def->maxvcpus; i++) {
|
|
|
6ae9ed |
char *cpumask;
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu = def->vcpus + i;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu = def->vcpus + i;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (!vcpu->cpumask)
|
|
|
6ae9ed |
continue;
|
|
|
6ae9ed |
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
|
|
|
6ae9ed |
index 6eed30e..c20ea79 100644
|
|
|
6ae9ed |
--- a/src/conf/domain_conf.h
|
|
|
6ae9ed |
+++ b/src/conf/domain_conf.h
|
|
|
6ae9ed |
@@ -2035,10 +2035,10 @@ struct _virDomainCputune {
|
|
|
6ae9ed |
};
|
|
|
6ae9ed |
|
|
|
6ae9ed |
|
|
|
6ae9ed |
-typedef struct _virDomainVcpuInfo virDomainVcpuInfo;
|
|
|
6ae9ed |
-typedef virDomainVcpuInfo *virDomainVcpuInfoPtr;
|
|
|
6ae9ed |
+typedef struct _virDomainVcpuDef virDomainVcpuDef;
|
|
|
6ae9ed |
+typedef virDomainVcpuDef *virDomainVcpuDefPtr;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
-struct _virDomainVcpuInfo {
|
|
|
6ae9ed |
+struct _virDomainVcpuDef {
|
|
|
6ae9ed |
bool online;
|
|
|
6ae9ed |
virBitmapPtr cpumask;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
@@ -2132,7 +2132,7 @@ struct _virDomainDef {
|
|
|
6ae9ed |
virDomainBlkiotune blkio;
|
|
|
6ae9ed |
virDomainMemtune mem;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpus;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpus;
|
|
|
6ae9ed |
size_t maxvcpus;
|
|
|
6ae9ed |
int placement_mode;
|
|
|
6ae9ed |
virBitmapPtr cpumask;
|
|
|
6ae9ed |
@@ -2267,7 +2267,7 @@ unsigned int virDomainDefGetVcpusMax(const virDomainDef *def);
|
|
|
6ae9ed |
int virDomainDefSetVcpus(virDomainDefPtr def, unsigned int vcpus);
|
|
|
6ae9ed |
unsigned int virDomainDefGetVcpus(const virDomainDef *def);
|
|
|
6ae9ed |
virBitmapPtr virDomainDefGetOnlineVcpumap(const virDomainDef *def);
|
|
|
6ae9ed |
-virDomainVcpuInfoPtr virDomainDefGetVcpu(virDomainDefPtr def, unsigned int vcpu)
|
|
|
6ae9ed |
+virDomainVcpuDefPtr virDomainDefGetVcpu(virDomainDefPtr def, unsigned int vcpu)
|
|
|
6ae9ed |
ATTRIBUTE_RETURN_CHECK;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
unsigned long long virDomainDefGetMemoryInitial(const virDomainDef *def);
|
|
|
6ae9ed |
diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c
|
|
|
6ae9ed |
index 9feba08..0e26b91 100644
|
|
|
6ae9ed |
--- a/src/libxl/libxl_domain.c
|
|
|
6ae9ed |
+++ b/src/libxl/libxl_domain.c
|
|
|
6ae9ed |
@@ -841,7 +841,7 @@ int
|
|
|
6ae9ed |
libxlDomainSetVcpuAffinities(libxlDriverPrivatePtr driver, virDomainObjPtr vm)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
libxlDriverConfigPtr cfg = libxlDriverConfigGet(driver);
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu;
|
|
|
6ae9ed |
libxl_bitmap map;
|
|
|
6ae9ed |
virBitmapPtr cpumask = NULL;
|
|
|
6ae9ed |
size_t i;
|
|
|
6ae9ed |
diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c
|
|
|
6ae9ed |
index 3189f1c..be6017a 100644
|
|
|
6ae9ed |
--- a/src/libxl/libxl_driver.c
|
|
|
6ae9ed |
+++ b/src/libxl/libxl_driver.c
|
|
|
6ae9ed |
@@ -2284,7 +2284,7 @@ libxlDomainPinVcpuFlags(virDomainPtr dom, unsigned int vcpu,
|
|
|
6ae9ed |
libxlDriverConfigPtr cfg = libxlDriverConfigGet(driver);
|
|
|
6ae9ed |
virDomainDefPtr targetDef = NULL;
|
|
|
6ae9ed |
virBitmapPtr pcpumap = NULL;
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpuinfo;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpuinfo;
|
|
|
6ae9ed |
virDomainObjPtr vm;
|
|
|
6ae9ed |
int ret = -1;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c
|
|
|
6ae9ed |
index 1e04a68..2dca874 100644
|
|
|
6ae9ed |
--- a/src/qemu/qemu_cgroup.c
|
|
|
6ae9ed |
+++ b/src/qemu/qemu_cgroup.c
|
|
|
6ae9ed |
@@ -874,7 +874,7 @@ qemuRestoreCgroupState(virDomainObjPtr vm)
|
|
|
6ae9ed |
goto error;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < virDomainDefGetVcpusMax(vm->def); i++) {
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu = virDomainDefGetVcpu(vm->def, i);
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu = virDomainDefGetVcpu(vm->def, i);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (!vcpu->online)
|
|
|
6ae9ed |
continue;
|
|
|
6ae9ed |
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
|
|
|
6ae9ed |
index 9c6c1cf..b4ab095 100644
|
|
|
6ae9ed |
--- a/src/qemu/qemu_driver.c
|
|
|
6ae9ed |
+++ b/src/qemu/qemu_driver.c
|
|
|
6ae9ed |
@@ -1475,7 +1475,7 @@ qemuDomainHelperGetVcpus(virDomainObjPtr vm,
|
|
|
6ae9ed |
memset(cpumaps, 0, sizeof(*cpumaps) * maxinfo);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < virDomainDefGetVcpusMax(vm->def) && ncpuinfo < maxinfo; i++) {
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu = virDomainDefGetVcpu(vm->def, i);
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu = virDomainDefGetVcpu(vm->def, i);
|
|
|
6ae9ed |
pid_t vcpupid = qemuDomainGetVcpuPid(vm, i);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (!vcpu->online)
|
|
|
6ae9ed |
@@ -4620,7 +4620,7 @@ qemuDomainHotplugAddVcpu(virQEMUDriverPtr driver,
|
|
|
6ae9ed |
unsigned int vcpu)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
qemuDomainObjPrivatePtr priv = vm->privateData;
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpuinfo;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpuinfo;
|
|
|
6ae9ed |
int ret = -1;
|
|
|
6ae9ed |
int rc;
|
|
|
6ae9ed |
int oldvcpus = virDomainDefGetVcpus(vm->def);
|
|
|
6ae9ed |
@@ -4672,7 +4672,7 @@ qemuDomainHotplugDelVcpu(virQEMUDriverPtr driver,
|
|
|
6ae9ed |
unsigned int vcpu)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
qemuDomainObjPrivatePtr priv = vm->privateData;
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpuinfo;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpuinfo;
|
|
|
6ae9ed |
int ret = -1;
|
|
|
6ae9ed |
int rc;
|
|
|
6ae9ed |
int oldvcpus = virDomainDefGetVcpus(vm->def);
|
|
|
6ae9ed |
@@ -4919,7 +4919,7 @@ qemuDomainPinVcpuLive(virDomainObjPtr vm,
|
|
|
6ae9ed |
virBitmapPtr cpumap)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
virBitmapPtr tmpmap = NULL;
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpuinfo;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpuinfo;
|
|
|
6ae9ed |
qemuDomainObjPrivatePtr priv = vm->privateData;
|
|
|
6ae9ed |
virCgroupPtr cgroup_vcpu = NULL;
|
|
|
6ae9ed |
char *str = NULL;
|
|
|
6ae9ed |
@@ -5006,7 +5006,7 @@ qemuDomainPinVcpuFlags(virDomainPtr dom,
|
|
|
6ae9ed |
virDomainDefPtr persistentDef;
|
|
|
6ae9ed |
int ret = -1;
|
|
|
6ae9ed |
virBitmapPtr pcpumap = NULL;
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpuinfo = NULL;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpuinfo = NULL;
|
|
|
6ae9ed |
virQEMUDriverConfigPtr cfg = NULL;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
virCheckFlags(VIR_DOMAIN_AFFECT_LIVE |
|
|
|
6ae9ed |
@@ -9365,7 +9365,7 @@ qemuDomainSetNumaParamsLive(virDomainObjPtr vm,
|
|
|
6ae9ed |
virCgroupFree(&cgroup_temp);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < virDomainDefGetVcpusMax(vm->def); i++) {
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu = virDomainDefGetVcpu(vm->def, i);
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu = virDomainDefGetVcpu(vm->def, i);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (!vcpu->online)
|
|
|
6ae9ed |
continue;
|
|
|
6ae9ed |
@@ -9776,7 +9776,7 @@ qemuSetVcpusBWLive(virDomainObjPtr vm, virCgroupPtr cgroup,
|
|
|
6ae9ed |
return 0;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < virDomainDefGetVcpusMax(vm->def); i++) {
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu = virDomainDefGetVcpu(vm->def, i);
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu = virDomainDefGetVcpu(vm->def, i);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (!vcpu->online)
|
|
|
6ae9ed |
continue;
|
|
|
6ae9ed |
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
|
|
|
6ae9ed |
index 2f0ef2b..6062f2a 100644
|
|
|
6ae9ed |
--- a/src/qemu/qemu_process.c
|
|
|
6ae9ed |
+++ b/src/qemu/qemu_process.c
|
|
|
6ae9ed |
@@ -4577,7 +4577,7 @@ qemuProcessSetupVcpu(virDomainObjPtr vm,
|
|
|
6ae9ed |
unsigned int vcpuid)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
pid_t vcpupid = qemuDomainGetVcpuPid(vm, vcpuid);
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu = virDomainDefGetVcpu(vm->def, vcpuid);
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu = virDomainDefGetVcpu(vm->def, vcpuid);
|
|
|
6ae9ed |
qemuDomainObjPrivatePtr priv = vm->privateData;
|
|
|
6ae9ed |
char *mem_mask = NULL;
|
|
|
6ae9ed |
virDomainNumatuneMemMode mem_mode;
|
|
|
6ae9ed |
@@ -4658,7 +4658,7 @@ qemuProcessSetupVcpu(virDomainObjPtr vm,
|
|
|
6ae9ed |
static int
|
|
|
6ae9ed |
qemuProcessSetupVcpus(virDomainObjPtr vm)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu;
|
|
|
6ae9ed |
unsigned int maxvcpus = virDomainDefGetVcpusMax(vm->def);
|
|
|
6ae9ed |
size_t i;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
|
|
|
6ae9ed |
index baff085..e7bca81 100644
|
|
|
6ae9ed |
--- a/src/test/test_driver.c
|
|
|
6ae9ed |
+++ b/src/test/test_driver.c
|
|
|
6ae9ed |
@@ -2457,7 +2457,7 @@ static int testDomainGetVcpus(virDomainPtr domain,
|
|
|
6ae9ed |
memset(cpumaps, 0, maxinfo * maplen);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < maxinfo; i++) {
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu = virDomainDefGetVcpu(def, i);
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu = virDomainDefGetVcpu(def, i);
|
|
|
6ae9ed |
virBitmapPtr bitmap = NULL;
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (!vcpu->online)
|
|
|
6ae9ed |
@@ -2493,7 +2493,7 @@ static int testDomainPinVcpu(virDomainPtr domain,
|
|
|
6ae9ed |
unsigned char *cpumap,
|
|
|
6ae9ed |
int maplen)
|
|
|
6ae9ed |
{
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpuinfo;
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpuinfo;
|
|
|
6ae9ed |
virDomainObjPtr privdom;
|
|
|
6ae9ed |
virDomainDefPtr def;
|
|
|
6ae9ed |
int ret = -1;
|
|
|
6ae9ed |
diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
|
|
|
6ae9ed |
index ae218e9..9d0bc0d 100644
|
|
|
6ae9ed |
--- a/src/vz/vz_sdk.c
|
|
|
6ae9ed |
+++ b/src/vz/vz_sdk.c
|
|
|
6ae9ed |
@@ -2284,7 +2284,7 @@ prlsdkCheckUnsupportedParams(PRL_HANDLE sdkdom, virDomainDefPtr def)
|
|
|
6ae9ed |
}
|
|
|
6ae9ed |
|
|
|
6ae9ed |
for (i = 0; i < virDomainDefGetVcpusMax(def); i++) {
|
|
|
6ae9ed |
- virDomainVcpuInfoPtr vcpu = virDomainDefGetVcpu(def, i);
|
|
|
6ae9ed |
+ virDomainVcpuDefPtr vcpu = virDomainDefGetVcpu(def, i);
|
|
|
6ae9ed |
|
|
|
6ae9ed |
if (vcpu->cpumask &&
|
|
|
6ae9ed |
!virBitmapEqual(def->cpumask, vcpu->cpumask)) {
|
|
|
6ae9ed |
--
|
|
|
6ae9ed |
2.10.0
|
|
|
6ae9ed |
|