mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[HVM] Save/restore: more state propagation in xend
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
1 parent
60cf5b7783
commit
bf8fc36917
4 files changed
+10
-9
No files matched your search
@@ -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:
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||