mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[XEND] Two small fixes/improvements from Glauber de Oliveira Costa.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
da161aeaa8
commit
22323d5911
2 files changed
+5
No files matched your search
@@ -392,6 +392,8 @@ def parseConfig(config):
|
||||
log.warn("Ignoring malformed and deprecated config option "
|
||||
"restart = %s", restart)
|
||||
|
||||
result['start_time'] = get_cfg('start_time', float)
|
||||
|
||||
log.debug("parseConfig: result is %s", result)
|
||||
return result
|
||||
|
||||
|
||||
@@ -81,6 +81,9 @@ class BlkifController(DevController):
|
||||
'acm_policy' : policy})
|
||||
|
||||
devid = blkif.blkdev_name_to_number(dev)
|
||||
if not devid:
|
||||
raise VmError('Unable to find number for device (%s)' % (dev))
|
||||
|
||||
front = { 'virtual-device' : "%i" % devid,
|
||||
'device-type' : dev_type
|
||||
}
|
||||
|
||||