[HVM] Save/restore: more state propagation in xend

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
Tim Deegan committed 2007-03-13 15:55:37 +00:00
1 parent 60cf5b7783
commit bf8fc36917
4 files changed
+10 -9

No files matched your search

+2 -2
View File
@@ -192,8 +192,8 @@ def restore(xd, fd, dominfo = None, paused = False):
is_hvm = dominfo.info.is_hvm()
if is_hvm:
hvm = dominfo.info['memory_static_min']
apic = dominfo.info['image']['hvm'].get('apic', 0)
pae = dominfo.info['image']['hvm'].get('pae', 0)
apic = dominfo.info['platform'].get('apic', 0)
pae = dominfo.info['platform'].get('pae', 0)
log.info("restore hvm domain %d, mem=%d, apic=%d, pae=%d",
dominfo.domid, hvm, apic, pae)
else:
+6 -5
View File
@@ -118,11 +118,12 @@ XENAPI_CFG_TO_LEGACY_CFG = {
LEGACY_CFG_TO_XENAPI_CFG = reverse_dict(XENAPI_CFG_TO_LEGACY_CFG)
# Platform configuration keys.
XENAPI_PLATFORM_CFG = [ 'acpi', 'apic', 'device_model', 'display', 'fda',
'fdb', 'keymap', 'isa', 'localtime', 'nographic',
'pae', 'serial', 'sdl', 'soundhw','stdvga', 'usb',
'usbdevice', 'vnc', 'vncconsole', 'vncdisplay',
'vnclisten', 'vncpasswd', 'vncunused', 'xauthority']
XENAPI_PLATFORM_CFG = [ 'acpi', 'apic', 'boot', 'device_model', 'display',
'fda', 'fdb', 'keymap', 'isa', 'localtime',
'nographic', 'pae', 'serial', 'sdl',
'soundhw','stdvga', 'usb', 'usbdevice', 'vnc',
'vncconsole', 'vncdisplay', 'vnclisten',
'vncpasswd', 'vncunused', 'xauthority']
# List of XendConfig configuration keys that have no direct equivalent
# in the old world.
+1 -1
View File
@@ -392,7 +392,7 @@ class HVMImageHandler(ImageHandler):
# Find RFB console device, and if it exists, make QEMU enable
# the VNC console.
#
if vmConfig['platform'].get('nographic'):
if int(vmConfig['platform'].get('nographic', 0)) != 0:
# skip vnc init if nographic is set
ret.append('-nographic')
return ret
+1 -1
View File
@@ -46,7 +46,7 @@ class VfbifController(DevController):
def createDevice(self, config):
DevController.createDevice(self, config)
if self.vm.info.get('HVM_boot_policy'):
if self.vm.info.is_hvm():
# is HVM, so qemu-dm will handle the vfb.
return
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.