Re: [Libvir] New vs old-style hypercalls

2007-06-12 Thread Daniel Veillard
On Tue, Jun 12, 2007 at 03:34:04PM +0100, Richard W.M. Jones wrote: > In xen_internal.c we've got code which claims to sniff out whether we > are using new-style hypercall ioctls or old-style hypercall ioctls. > > hc.op = __HYPERVISOR_xen_version; > hc.arg[0] = (unsigned long) XENVER_vers

[Libvir] New vs old-style hypercalls

2007-06-12 Thread Richard W.M. Jones
In xen_internal.c we've got code which claims to sniff out whether we are using new-style hypercall ioctls or old-style hypercall ioctls. hc.op = __HYPERVISOR_xen_version; hc.arg[0] = (unsigned long) XENVER_version; hc.arg[1] = 0; cmd = IOCTL_PRIVCMD_HYPERCALL; ret = ioctl(f