Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Devel

[PATCH] libxl: fix comment regarding bootloader disk lifetime

 

 

Xen devel RSS feed   Index | Next | Previous | View Threaded


Ian.Jackson at eu

Jul 24, 2012, 9:24 AM

Post #1 of 3 (64 views)
Permalink
[PATCH] libxl: fix comment regarding bootloader disk lifetime

Signed-off-by: Ian Jackson <ian.jackson [at] eu>

---
tools/libxl/libxl_internal.h | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index 43bb69b..02625a6 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -2011,9 +2011,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:
--
tg: (a41a65f..) t/xen/xl.fix.bootloader-disk-detach-comment (depends on: t/xen/xl.fix.logdirty-trans-leak)

_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
http://lists.xen.org/xen-devel


Ian.Campbell at citrix

Jul 25, 2012, 9:43 AM

Post #2 of 3 (57 views)
Permalink
Re: [PATCH] libxl: fix comment regarding bootloader disk lifetime [In reply to]

On Tue, 2012-07-24 at 17:24 +0100, Ian Jackson wrote:
> Signed-off-by: Ian Jackson <ian.jackson [at] eu>

Acked-by: Ian Campbell <ian.campbell [at] citrix>

and applied, thanks.

>
> ---
> tools/libxl/libxl_internal.h | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
> index 43bb69b..02625a6 100644
> --- a/tools/libxl/libxl_internal.h
> +++ b/tools/libxl/libxl_internal.h
> @@ -2011,9 +2011,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:



_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
http://lists.xen.org/xen-devel


Ian.Campbell at citrix

Jul 25, 2012, 9:44 AM

Post #3 of 3 (58 views)
Permalink
Re: [PATCH] libxl: fix comment regarding bootloader disk lifetime [In reply to]

On Tue, 2012-07-24 at 17:24 +0100, Ian Jackson wrote:
> Signed-off-by: Ian Jackson <ian.jackson [at] eu>

Acked+applied, thanks
>
> ---
> tools/libxl/libxl_internal.h | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
> index 43bb69b..02625a6 100644
> --- a/tools/libxl/libxl_internal.h
> +++ b/tools/libxl/libxl_internal.h
> @@ -2011,9 +2011,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:



_______________________________________________
Xen-devel mailing list
Xen-devel [at] lists
http://lists.xen.org/xen-devel

Xen devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.