From: David Scott Date: Fri, 27 Nov 2009 22:51:15 +0000 (+0000) Subject: [XIU]: add HVM and HAP flags to the hypercall simulator. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1e7aae28375660d6c2af1e2ce57f786745fba2f2;p=xcp%2Fxen-api-libs.git [XIU]: add HVM and HAP flags to the hypercall simulator. Signed-off-by: David Scott --- diff --git a/xc/xc_lib_injection.c b/xc/xc_lib_injection.c index 5e0e51d..6cf3dfe 100644 --- a/xc/xc_lib_injection.c +++ b/xc/xc_lib_injection.c @@ -71,9 +71,10 @@ static int fake_xen_domctl(int handle, struct xen_domctl *domctl) marshall_command(handle, "%s,%d,%d\n", DOMCTLcmd, domctl->cmd, domctl->domain); return unmarshall_return(handle); case XEN_DOMCTL_createdomain: /* W ssidref */ - marshall_command(handle, "%s,%d,%d," DOMAINHANDLE "\n", DOMCTLcmd, + marshall_command(handle, "%s,%d,%d,%d," DOMAINHANDLE "\n", DOMCTLcmd, domctl->cmd, - domctl->u.createdomain.flags, + (domctl->u.createdomain.flags|XEN_DOMCTL_CDF_hvm_guest)?1:0, + (domctl->u.createdomain.flags|XEN_DOMCTL_CDF_hap)?1:0, domctl->u.createdomain.handle[0], domctl->u.createdomain.handle[1], domctl->u.createdomain.handle[2],