WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] avoid wasteful storing to xenstore

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] avoid wasteful storing to xenstore
From: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Date: 2007年8月16日 13:28:08 +0900
Delivery-date: 2007年8月15日 21:29:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Looking at xend.log, I found wasteful storing to xenstore.
Type of rtc/timeoffset is not 'int' but 'str'.
Thanks,
Kouya
Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
diff -r cd51fa91956b tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Sun Aug 12 14:50:02 2007 -0600
+++ b/tools/python/xen/xend/XendDomainInfo.py Thu Aug 16 11:56:20 2007 +0900
@@ -909,7 +909,7 @@ class XendDomainInfo:
 changed = True
 
 # Check if the rtc offset has changes
- if vm_details.get("rtc/timeoffset", 0) != 
self.info["platform"].get("rtc_timeoffset", 0):
+ if vm_details.get("rtc/timeoffset", "0") != 
self.info["platform"].get("rtc_timeoffset", "0"):
 self.info["platform"]["rtc_timeoffset"] = 
vm_details.get("rtc/timeoffset", 0)
 changed = True
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] avoid wasteful storing to xenstore, Kouya Shimura <=
Previous by Date: [Xen-devel] Copy big file from usb disk will hang under Linux when using OHCI in QEMU to do full-virtualization , Steven Hu
Next by Date: Re: [Xen-devel] [PATCH] Fix 64-bit foreign header check , Keir Fraser
Previous by Thread: [Xen-devel] Copy big file from usb disk will hang under Linux when using OHCI in QEMU to do full-virtualization , Steven Hu
Next by Thread: [Xen-devel] Building on FreeBSD , Julian Stecklina
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /