All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] Fix xm list <Domname> so that it triggers an internal state update in Xend
Date: Wed, 31 Aug 2005 17:29:55 -0500	[thread overview]
Message-ID: <43162F63.70800@us.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 103 bytes --]

Fix xm list <Domname> so that it triggers an internal state update in Xend.

Regards,

Anthony Liguori

[-- Attachment #2: 6553_xm.diff --]
[-- Type: text/x-patch, Size: 994 bytes --]

# HG changeset patch
# User Anthony Liguori <aliguori@us.ibm.com>
# Node ID eb6ce6e19ac4eb1bde83eaae8cea7a35ed6350e7
# Parent  8af8ddf9107832cfe509ffe8e9f7ee65856b2fa3
Fix xm list so that we trigger Xend to update its internal state even when
info is requested for individual domains.

Signed-off-by: Anthony Liguori

diff -r 8af8ddf91078 -r eb6ce6e19ac4 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py	Wed Aug 31 14:53:43 2005
+++ b/tools/python/xen/xm/main.py	Wed Aug 31 22:43:31 2005
@@ -222,11 +222,16 @@
 
     domsinfo = []
     from xen.xend.XendClient import server
-    if n == 0:
-        doms = server.xend_domains()
-        doms.sort()
-    else:
+
+    # FIXME
+    # a bit of a hack, we need to call xend_domains to refresh xend's internal
+    # domain state.
+    doms = server.xend_domains()
+    doms.sort()
+
+    if n != 0:
         doms = params
+
     for dom in doms:
         info = server.xend_domain(dom)
         domsinfo.append(parse_doms_info(info))

[-- 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:[~2005-08-31 22:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-31 22:29 Anthony Liguori [this message]
2005-08-31 22:34 ` [PATCH] Fix xm list <Domname> so that it triggers an internal state update in Xend Anthony Liguori
2005-09-01 10:21 ` Christian Limpach
2005-09-01 15:15   ` Anthony Liguori

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=43162F63.70800@us.ibm.com \
    --to=aliguori@us.ibm.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.