debuggers.hg

changeset 21994:fdf12cb3e2d1

Do not try to retrieve userdata for dom0

There is no userdata available regarding dom0, do not try to retrieve it

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
author Stefano Stabellini <sstabellini@xensource.com>
date Mon Aug 09 17:20:39 2010 +0100 (2010-08-09)
parents 493d70234c97
children 1d67dd785ef4
files tools/libxl/xl_cmdimpl.c
line diff
     1.1 --- a/tools/libxl/xl_cmdimpl.c	Mon Aug 09 17:07:50 2010 +0100
     1.2 +++ b/tools/libxl/xl_cmdimpl.c	Mon Aug 09 17:20:39 2010 +0100
     1.3 @@ -2127,6 +2127,9 @@ void list_domains_details(const libxl_do
     1.4      libxl_device_model_info dm_info;
     1.5  
     1.6      for (i = 0; i < nb_domain; i++) {
     1.7 +        /* no detailed info available on dom0 */
     1.8 +        if (info[i].domid == 0)
     1.9 +            continue;
    1.10          rc = libxl_userdata_retrieve(&ctx, info[i].domid, "xl", &data, &len);
    1.11          if (rc)
    1.12              continue;