From: Andres Lagar-Cavilla <andres@lagarcavilla.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
xen-devel@lists.xensource.com
Subject: [PATCH 06/14]: libxenlight, set domain handle
Date: Mon, 30 Nov 2009 14:13:08 -0500 [thread overview]
Message-ID: <4B141944.5030202@lagarcavilla.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 208 bytes --]
Set domain handle much like xend does, identical to
the uuid. This allows obtaining the uuid of a domain
from the handle in the dominfo struct.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.com>
[-- Attachment #2: 06_set_domain_handle_uuid.patch --]
[-- Type: text/x-patch, Size: 1164 bytes --]
# HG changeset patch
# User Andres Lagar-Cavilla <andres@lagarcavilla.com>
# Date 1259601195 18000
# Node ID 0b8510293912d2f33481e3529aec12193b5b40d2
# Parent 7e246208b1bfc0d3c11a5ea90eb40b6a19273170
Set domain handle much like xend does, identical to
the uuid. This allows obtaining the uuid of a domain
from the handle in the dominfo struct.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.com>
diff -r 7e246208b1bf -r 0b8510293912 libxl.c
--- a/libxl.c
+++ b/libxl.c
@@ -101,7 +101,7 @@ int libxl_domain_make(struct libxl_ctx *
flags |= info->hap ? XEN_DOMCTL_CDF_hap : 0;
*domid = 0;
- /* XXX handle has to be initialised here.
+ /*
* info->uuid != xen_domain_handle_t
* See:
* http://www.opengroup.org/dce/info/draft-leach-uuids-guids-01.txt
@@ -118,6 +118,8 @@ int libxl_domain_make(struct libxl_ctx *
* uint8_t node[_UUID_NODE_LEN];
* };
*/
+ /* Ultimately, handle is an array of 16 uint8_t, same as uuid */
+ memcpy(handle, info->uuid, sizeof(xen_domain_handle_t));
ret = xc_domain_create(ctx->xch, info->ssidref, handle, flags, domid);
if (ret < 0) {
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2009-11-30 19:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B141944.5030202@lagarcavilla.com \
--to=andres@lagarcavilla.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.