aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Jackson <Ian.Jackson@eu.citrix.com>2012-07-25 17:39:17 +0100
committerIan Jackson <Ian.Jackson@eu.citrix.com>2012-07-25 17:39:17 +0100
commit5033f9553c8378a72f6aa725dc24ee835bf92dce (patch)
treec7911f4d70fd80081f0fc9ff15f56785c861c86e
parent00a12a9d167ca8d7771f3f957e85c6cdc580a43f (diff)
downloadxen-5033f9553c8378a72f6aa725dc24ee835bf92dce.tar.gz
xen-5033f9553c8378a72f6aa725dc24ee835bf92dce.tar.bz2
xen-5033f9553c8378a72f6aa725dc24ee835bf92dce.zip
libxl: fix comment regarding bootloader disk lifetime
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
-rw-r--r--tools/libxl/libxl_internal.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index 728d6c0af2..9ffb9d4dbf 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -2133,9 +2133,11 @@ struct libxl__bootloader_state {
/* Should be zeroed by caller on entry. Will be filled in by
* bootloader machinery; represents the local attachment of the
* disk for the benefit of the bootloader. Must be detached by
- * the caller using libxl__device_disk_local_detach, but only
- * after the domain's kernel and initramfs have been loaded into
- * memory and the file references disposed of. */
+ * the caller using libxl__device_disk_local_detach.
+ * (This is safe to do after ->callback() has happened since
+ * the domain's kernel and initramfs will have been copied
+ * out of the guest's disk into a temporary directory, mapped
+ * as file references, and deleted. */
libxl_device_disk localdisk;
uint32_t domid;
/* outputs: