[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [GSoC] GSoC Introduction : Fuzzing Xen hypercall interface



On Mon, Mar 20, 2017 at 05:47:32PM +0100, Felix Schmoll wrote:
 
> #include <stdio.h>
> #include <xenctrl.h>
> 
> int main(void) {
>     xc_interface *xch = xc_interface_open(NULL, NULL, 0);
> 
>     int ver = xc_version(xch, XENVER_version, NULL);
> 

Did this succeed?

>     printf("Xen Version %d.%d\n", ver >> 16, ver & 0xffff);
> 
>     int domid = xc_domid(xch, 0, NULL);
> 
>     printf("Xen domain: %d\n", domid);
> 

Please check the error number for more information.

>     xc_interface_close(xch);
> 
>     return 0;
> }
> 
> Wei.
> >
> > > Any comments greatly appreciated.
> > >
> > > Felix
> >

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.