From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yosuke Iwamatsu Subject: [PATCH] Small Fix for HVM/HAP Flags Date: Wed, 30 Jan 2008 17:37:05 +0900 Message-ID: <47A03731.2000702@ab.jp.nec.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000509090202020400000304" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000509090202020400000304 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Small fix for hvm/hap flags. HVM restore fails without this. Regards, ------------------- Yosuke Iwamatsu NEC Corporation --------------000509090202020400000304 Content-Type: all/allfiles; name="fix_hap_flags.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix_hap_flags.patch" # HG changeset patch # User y-iwamatsu@ab.jp.nec.com # Date 1201681105 -32400 # Node ID c7422d17f74a176dfee01b1c1ce75e8bfd50355d # Parent 1a357a1504b26755edfac3fe0a37ea805d071d3a Small fix for hvm/hap flags. Signed-off-by: Yosuke Iwamatsu diff -r 1a357a1504b2 -r c7422d17f74a tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Tue Jan 29 15:18:27 2008 +0000 +++ b/tools/python/xen/xend/XendDomainInfo.py Wed Jan 30 17:18:25 2008 +0900 @@ -1658,7 +1658,7 @@ class XendDomainInfo: domid = 0, ssidref = ssidref, handle = uuid.fromString(self.info['uuid']), - flags = int((hvm << 0) | (hap << 1)), + flags = (int(hvm) << 0) | (int(hap) << 1), target = self.info.target()) except Exception, e: # may get here if due to ACM the operation is not permitted --------------000509090202020400000304 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000509090202020400000304--