[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/2] xl: uptime: skip dom0 when calling print_domU_uptime
On Wed, 2016-02-17 at 10:34 +0000, Ian Campbell wrote: > Dom0 is handled separately (via print_dom0_uptime) and the domU > variant doesn't work for dom0 since libxl_vm_get_start_time() doesn't. > > Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Ping? (and for 2/2 "xl: NULL terminate buf when reading dom0 /proc/uptime") > --- > Âtools/libxl/xl_cmdimpl.c | 4 +++- > Â1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c > index f38e3dd..89fa42c 100644 > --- a/tools/libxl/xl_cmdimpl.c > +++ b/tools/libxl/xl_cmdimpl.c > @@ -7055,8 +7055,10 @@ static void print_uptime(int short_mode, uint32_t > doms[], int nb_doms) > ÂÂÂÂÂÂÂÂÂÂÂÂÂfprintf(stderr, "Could not list vms.\n"); > ÂÂÂÂÂÂÂÂÂÂÂÂÂreturn; > ÂÂÂÂÂÂÂÂÂ} > -ÂÂÂÂÂÂÂÂfor (i = 0; i < nb_vm; i++) > +ÂÂÂÂÂÂÂÂfor (i = 0; i < nb_vm; i++) { > +ÂÂÂÂÂÂÂÂÂÂÂÂif (info[i].domid == 0) continue; > ÂÂÂÂÂÂÂÂÂÂÂÂÂprint_domU_uptime(info[i].domid, short_mode, now); > +ÂÂÂÂÂÂÂÂ} > ÂÂÂÂÂÂÂÂÂlibxl_vminfo_list_free(info, nb_vm); > ÂÂÂÂÂ} else { > ÂÂÂÂÂÂÂÂÂfor (i = 0; i < nb_doms; i++) { _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |