From 1e7aae28375660d6c2af1e2ce57f786745fba2f2 Mon Sep 17 00:00:00 2001 From: David Scott Date: Fri, 27 Nov 2009 22:51:15 +0000 Subject: [PATCH] [XIU]: add HVM and HAP flags to the hypercall simulator. Signed-off-by: David Scott --- xc/xc_lib_injection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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], -- 2.39.5