mirror of https://gitee.com/openkylin/libvirt.git
* src/xen_internal.c: applied patch from Philippe Berthault
fixing the vcpu number initialization Daniel
This commit is contained in:
parent
d9388dbfbd
commit
321c24bb00
|
@ -1,3 +1,8 @@
|
|||
Thu Oct 12 13:37:24 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/xen_internal.c: applied patch from Philippe Berthault
|
||||
fixing the vcpu number initialization
|
||||
|
||||
Wed Oct 11 17:16:44 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||
|
||||
* src/xen_internal.c: applied patch from Peter Vetere so that
|
||||
|
|
|
@ -1036,7 +1036,7 @@ virXen_getvcpusinfo(int handle, int id, unsigned int vcpu, virVcpuInfoPtr ipt,
|
|||
ret = xenHypervisorDoV2Dom(handle, &op);
|
||||
if (ret < 0)
|
||||
return(-1);
|
||||
ipt->number = id;
|
||||
ipt->number = vcpu;
|
||||
if (op.u.getvcpuinfo.online) {
|
||||
if (op.u.getvcpuinfo.running) ipt->state = VIR_VCPU_RUNNING;
|
||||
if (op.u.getvcpuinfo.blocked) ipt->state = VIR_VCPU_BLOCKED;
|
||||
|
@ -1078,7 +1078,7 @@ virXen_getvcpusinfo(int handle, int id, unsigned int vcpu, virVcpuInfoPtr ipt,
|
|||
ret = xenHypervisorDoV1Op(handle, &op);
|
||||
if (ret < 0)
|
||||
return(-1);
|
||||
ipt->number = id;
|
||||
ipt->number = vcpu;
|
||||
if (op.u.getvcpuinfo.online) {
|
||||
if (op.u.getvcpuinfo.running) ipt->state = VIR_VCPU_RUNNING;
|
||||
if (op.u.getvcpuinfo.blocked) ipt->state = VIR_VCPU_BLOCKED;
|
||||
|
@ -1102,7 +1102,7 @@ virXen_getvcpusinfo(int handle, int id, unsigned int vcpu, virVcpuInfoPtr ipt,
|
|||
ret = xenHypervisorDoV0Op(handle, &op);
|
||||
if (ret < 0)
|
||||
return(-1);
|
||||
ipt->number = id;
|
||||
ipt->number = vcpu;
|
||||
if (op.u.getvcpuinfo.online) {
|
||||
if (op.u.getvcpuinfo.running) ipt->state = VIR_VCPU_RUNNING;
|
||||
if (op.u.getvcpuinfo.blocked) ipt->state = VIR_VCPU_BLOCKED;
|
||||
|
|
Loading…
Reference in New Issue