Skip to contentSkip to conversation

Small Fix for HVM/HAP Flags

PATCH New Yosuke Iwamatsu 1 participant 1 message Jan 30, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Small Fix for HVM/HAP Flags

Small fix for hvm/hap flags.
HVM restore fails without this.

Regards,
-------------------
Yosuke Iwamatsu
NEC Corporation

# HG changeset patch
# User [email protected]
# Date 1201681105 -32400
# Node ID c7422d17f74a176dfee01b1c1ce75e8bfd50355d # Parent 1a357a1504b26755edfac3fe0a37ea805d071d3a Small fix for hvm/hap flags.

tools/python/xen/xend/XendDomainInfo.py +1 -1
diff -r 1a357a1504b2 -r c7422d17f74a tools/python/xen/xend/XendDomainInfo.py
@@ -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

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel