2017-03-29 17:54 GMT+02:00 Wei Liu <wei.l...@citrix.com>: > On Wed, Mar 29, 2017 at 04:24:15PM +0200, Felix Schmoll wrote: > > Hi, > > > > here the final patch for the domain_id: > > Please have a look at > > https://wiki.xenproject.org/wiki/Submitting_Xen_Project_Patches > > And follow the instructions to submit patches. >
Hi, was that right this time? It didn't seem to make sense to add this to the patch, so I'm appending the program I used for testing the hypercall patch here just for completeness: #include <stdio.h> #include <errno.h> #include <xenctrl.h> int main(void) { xc_interface *xch = xc_interface_open(NULL, NULL, 0); int ver = xc_version(xch, XENVER_version, NULL); printf("Xen Version %d.%d\n", ver >> 16, ver & 0xffff); int domid = xc_domid(xch); printf("Xen domain: %d\n", domid); if(domid == -1) { printf("errno=%d (%s)\n", errno, xc_strerror(xch, errno)); } xc_interface_close(xch); return 0; } Felix
_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel