@raise: VmError on error
"""
- hvm_bit_offset = 0
-
- hap_bit_offset = 1
-
log.debug('XendDomainInfo.constructDomain')
self.shutdownStartTime = None
+ hap = 0
hvm = self.info.is_hvm()
-
- hap = self.info.is_hap()
-
if hvm:
+ hap = self.info.is_hap()
info = xc.xeninfo()
if 'hvm' not in info['xen_caps']:
raise VmError("HVM guest support is unavailable: is VT/AMD-V "
domid = 0,
ssidref = ssidref,
handle = uuid.fromString(self.info['uuid']),
- flags = int((hvm << hvm_bit_offset) | (hap << hap_bit_offset)),
+ flags = int((hvm << 0) | (hap << 1)),
target = self.info.target())
except Exception, e:
# may get here if due to ACM the operation is not permitted