+Wed Dec 6 15:06:28 CET 2006 Daniel Veillard <veillard@redhat.com>
+
+ * src/xen_internal.c: the structure passed to the vcpuinfo hypercall
+ had changed between version 1 and version 2 too, the leading domain
+ field disapeared since it goes in the including op. Fixes redhat
+ bugs #217370 and #217743
+
Mon Dec 4 17:47:03 CET 2006 Daniel Veillard <veillard@redhat.com>
* po/ca.po po/fr.po po/hi.po: merging more localizations coming
typedef struct xen_v0_vcpuinfo xen_v1_vcpuinfo;
struct xen_v2_vcpuinfo {
- domid_t domain; /* owner's domain */
uint32_t vcpu; /* the vcpu number */
uint8_t online; /* seen as on line */
uint8_t blocked; /* blocked on event */
memset(&op, 0, sizeof(op));
op.cmd = XEN_V2_OP_GETVCPUINFO;
op.domain = (domid_t) id;
- op.u.setvcpumap.vcpu = vcpu;
+ op.u.getvcpuinfo.vcpu = (uint16_t) vcpu;
ret = xenHypervisorDoV2Dom(handle, &op);
if (ret < 0)
return(-1);