All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marcos E. Matsunaga" <Marcos.Matsunaga@oracle.com>
To: Matt Wilson <msw@amazon.com>
Cc: xen-devel@lists.xensource.com, ian.campbell@citrix.com,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: [PATCH] xend: Fix xm list bug reporting incorrect memory size
Date: Thu, 27 Jun 2013 05:29:54 -0400	[thread overview]
Message-ID: <51CC0612.50804@oracle.com> (raw)
In-Reply-To: <20130605190124.GA5470@u109add4315675089e695.ant.amazon.com>

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

Hi Matt,

I have corrected the tab problem and re-created the patch.

It is attached.

 From aec170275bef7f371d9a195f49a3e8790160dd0f Mon Sep 17 00:00:00 2001
From: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
Date: Thu, 27 Jun 2013 05:25:42 -0400
Subject: [PATCH] xend: Fix xm list bug reporting incorrect memory size

This change allows xend to double-check the xcinfo info (which
hypercall it had already do) and use the up-to-date contents.

'xl' already does this by using the xcinfo.

Oracle-Bug: 14553104 ( MEM(K) IN XENTOP MISMATCH MEMTOTAL IN 
/PROC/MEMINFO AND MEM IN "XM LIST")
Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
  tools/python/xen/xend/XendConfig.py | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/python/xen/xend/XendConfig.py 
b/tools/python/xen/xend/XendConfig.py
index 5568d35..eb433a7 100644
--- a/tools/python/xen/xend/XendConfig.py
+++ b/tools/python/xen/xend/XendConfig.py
@@ -1042,7 +1042,10 @@ class XendConfig(dict):
          @param dominfo: Domain information via xc.domain_getinfo()
          @type dominfo: dict
          """
-        self._dominfo_to_xapi(dominfo)
+        if dominfo['paused']:
+           self._dominfo_to_xapi(dominfo)
+        else:
+           self._dominfo_to_xapi(dominfo, update_mem = True)
          self.validate()

      def update_with_xenapi_config(self, xapi):
-- 
1.8.1.2


On 06/05/2013 03:01 PM, Matt Wilson wrote:
> This change allows xend to double-check the xcinfo info (which
> >hypercall it had already do) and use the up-to-date contents.
> >
> >'xl' already does this by using the xcinfo.
> >
> >Oracle-Bug: 14553104 ( MEM(K) IN XENTOP MISMATCH MEMTOTAL IN /PROC/MEMINFO AND MEM IN "XM LIST")
> >Signed-off-by: Marcos Matsunaga<Marcos.Matsunaga@oracle.com>
> >Signed-off-by: Konrad Rzeszutek Wilk<konrad.wilk@oracle.com>


[-- Attachment #2: 0001-xend-Fix-xm-list-bug-reporting-incorrect-memory-size.patch --]
[-- Type: text/x-patch, Size: 1364 bytes --]

>From aec170275bef7f371d9a195f49a3e8790160dd0f Mon Sep 17 00:00:00 2001
From: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
Date: Thu, 27 Jun 2013 05:25:42 -0400
Subject: [PATCH] xend: Fix xm list bug reporting incorrect memory size

This change allows xend to double-check the xcinfo info (which
hypercall it had already do) and use the up-to-date contents.

'xl' already does this by using the xcinfo.

Oracle-Bug: 14553104 ( MEM(K) IN XENTOP MISMATCH MEMTOTAL IN /PROC/MEMINFO AND MEM IN "XM LIST")
Signed-off-by: Marcos Matsunaga <Marcos.Matsunaga@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
---
 tools/python/xen/xend/XendConfig.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py
index 5568d35..eb433a7 100644
--- a/tools/python/xen/xend/XendConfig.py
+++ b/tools/python/xen/xend/XendConfig.py
@@ -1042,7 +1042,10 @@ class XendConfig(dict):
         @param dominfo: Domain information via xc.domain_getinfo()
         @type dominfo: dict
         """
-        self._dominfo_to_xapi(dominfo)
+        if dominfo['paused']:
+           self._dominfo_to_xapi(dominfo)
+        else:
+           self._dominfo_to_xapi(dominfo, update_mem = True)
         self.validate()
 
     def update_with_xenapi_config(self, xapi):
-- 
1.8.1.2


[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2013-06-27  9:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-02 17:38 [PATCH] xend: Fix xm list bug reporting incorrect memory size Konrad Rzeszutek Wilk
2013-04-08 17:06 ` Ian Jackson
2013-04-12 15:15   ` Marcos E. Matsunaga
2013-05-06 20:31     ` Konrad Rzeszutek Wilk
2013-06-05 19:01 ` Matt Wilson
2013-06-27  9:29   ` Marcos E. Matsunaga [this message]

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=51CC0612.50804@oracle.com \
    --to=marcos.matsunaga@oracle.com \
    --cc=ian.campbell@citrix.com \
    --cc=konrad.wilk@oracle.com \
    --cc=msw@amazon.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.